Package com.azure.cosmos
Class CosmosStoredProcedure
java.lang.Object
com.azure.cosmos.CosmosStoredProcedure
The type Cosmos sync stored procedure.
-
Constructor Summary
ConstructorDescriptionCosmosStoredProcedure
(String id, CosmosContainer container, CosmosAsyncStoredProcedure storedProcedure) Instantiates a new Cosmos sync stored procedure. -
Method Summary
Modifier and TypeMethodDescriptiondelete()
Delete cosmos stored procedure.execute
(List<Object> procedureParams, CosmosStoredProcedureRequestOptions options) Execute cosmos sync stored procedure.getId()
Id string.read()
Read cosmos sync stored procedure.read
(CosmosStoredProcedureRequestOptions options) Read cosmos sync stored procedure.replace
(CosmosStoredProcedureProperties storedProcedureProperties) Replace cosmos sync stored procedure.replace
(CosmosStoredProcedureProperties storedProcedureProperties, CosmosStoredProcedureRequestOptions options) Replace cosmos sync stored procedure.
-
Constructor Details
-
CosmosStoredProcedure
public CosmosStoredProcedure(String id, CosmosContainer container, CosmosAsyncStoredProcedure storedProcedure) Instantiates a new Cosmos sync stored procedure.- Parameters:
id
- the idcontainer
- the containerstoredProcedure
- the stored procedure
-
-
Method Details
-
getId
Id string.- Returns:
- the string
-
read
Read cosmos sync stored procedure.- Returns:
- the cosmos stored procedure response
-
read
Read cosmos sync stored procedure.- Parameters:
options
- the options- Returns:
- the cosmos stored procedure response
-
delete
Delete cosmos stored procedure.- Returns:
- the cosmos response
-
execute
public CosmosStoredProcedureResponse execute(List<Object> procedureParams, CosmosStoredProcedureRequestOptions options) Execute cosmos sync stored procedure.- Parameters:
procedureParams
- the procedure paramsoptions
- the options- Returns:
- the cosmos stored procedure response
-
replace
public CosmosStoredProcedureResponse replace(CosmosStoredProcedureProperties storedProcedureProperties) Replace cosmos sync stored procedure.- Parameters:
storedProcedureProperties
- the stored procedure settings- Returns:
- the cosmos stored procedure response
-
replace
public CosmosStoredProcedureResponse replace(CosmosStoredProcedureProperties storedProcedureProperties, CosmosStoredProcedureRequestOptions options) Replace cosmos sync stored procedure.- Parameters:
storedProcedureProperties
- the stored procedure settingsoptions
- the options- Returns:
- the cosmos stored procedure response
-