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(List<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 storedProcedureProperties)
Replace cosmos sync stored procedure.
|
CosmosStoredProcedureResponse |
replace(CosmosStoredProcedureProperties storedProcedureProperties,
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()
public CosmosStoredProcedureResponse read(CosmosStoredProcedureRequestOptions options)
options
- the optionspublic CosmosStoredProcedureResponse delete()
public CosmosStoredProcedureResponse execute(List<Object> procedureParams, CosmosStoredProcedureRequestOptions options)
procedureParams
- the procedure paramsoptions
- the optionspublic CosmosStoredProcedureResponse replace(CosmosStoredProcedureProperties storedProcedureProperties)
storedProcedureProperties
- the stored procedure settingspublic CosmosStoredProcedureResponse replace(CosmosStoredProcedureProperties storedProcedureProperties, CosmosStoredProcedureRequestOptions options)
storedProcedureProperties
- the stored procedure settingsoptions
- the optionsCopyright © 2021 Microsoft Corporation. All rights reserved.