public class CosmosStoredProcedure extends Object
Constructor and Description |
---|
CosmosStoredProcedure(String id,
CosmosContainer container,
CosmosAsyncStoredProcedure storedProcedure)
Instantiates a new Cosmos sync stored procedure.
|
Modifier and Type | Method and Description |
---|---|
CosmosStoredProcedureResponse |
delete()
Delete cosmos stored procedure.
|
CosmosStoredProcedureResponse |
execute(Object[] procedureParams,
CosmosStoredProcedureRequestOptions options)
Execute cosmos sync stored procedure.
|
String |
getId()
Id string.
|
CosmosStoredProcedureResponse |
read()
Read cosmos sync stored procedure.
|
CosmosStoredProcedureResponse |
read(CosmosStoredProcedureRequestOptions options)
Read cosmos sync stored procedure.
|
CosmosStoredProcedureResponse |
replace(CosmosStoredProcedureProperties storedProcedureSettings)
Replace cosmos sync stored procedure.
|
CosmosStoredProcedureResponse |
replace(CosmosStoredProcedureProperties storedProcedureSettings,
CosmosStoredProcedureRequestOptions options)
Replace cosmos sync stored procedure.
|
public CosmosStoredProcedure(String id, CosmosContainer container, CosmosAsyncStoredProcedure storedProcedure)
id
- the idcontainer
- the containerstoredProcedure
- the stored procedurepublic String getId()
public CosmosStoredProcedureResponse read() throws CosmosClientException
CosmosClientException
- the cosmos client exceptionpublic CosmosStoredProcedureResponse read(CosmosStoredProcedureRequestOptions options) throws CosmosClientException
options
- the optionsCosmosClientException
- the cosmos client exceptionpublic CosmosStoredProcedureResponse delete() throws CosmosClientException
CosmosClientException
- the cosmos client exceptionpublic CosmosStoredProcedureResponse execute(Object[] procedureParams, CosmosStoredProcedureRequestOptions options) throws CosmosClientException
procedureParams
- the procedure paramsoptions
- the optionsCosmosClientException
- the cosmos client exceptionpublic CosmosStoredProcedureResponse replace(CosmosStoredProcedureProperties storedProcedureSettings) throws CosmosClientException
storedProcedureSettings
- the stored procedure settingsCosmosClientException
- the cosmos client exceptionpublic CosmosStoredProcedureResponse replace(CosmosStoredProcedureProperties storedProcedureSettings, CosmosStoredProcedureRequestOptions options) throws CosmosClientException
storedProcedureSettings
- the stored procedure settingsoptions
- the optionsCosmosClientException
- the cosmos client exceptionCopyright © 2020 Microsoft Corporation. All rights reserved.