Package com.azure.data.cosmos.sync
Class CosmosSyncScripts
- java.lang.Object
-
- com.azure.data.cosmos.sync.CosmosSyncScripts
-
public class CosmosSyncScripts extends Object
The type Cosmos sync scripts.
-
-
Method Summary
-
-
-
Method Detail
-
createStoredProcedure
public CosmosSyncStoredProcedureResponse createStoredProcedure(CosmosStoredProcedureProperties properties) throws CosmosClientException
Create stored procedure- Parameters:
properties
- the properties- Returns:
- the cosmos sync stored procedure response
- Throws:
CosmosClientException
- the cosmos client exception
-
createStoredProcedure
public CosmosSyncStoredProcedureResponse createStoredProcedure(CosmosStoredProcedureProperties properties, CosmosStoredProcedureRequestOptions options) throws CosmosClientException
Create stored procedure cosmos- Parameters:
properties
- the propertiesoptions
- the options- Returns:
- the cosmos sync stored procedure response
- Throws:
CosmosClientException
- the cosmos client exception
-
readAllStoredProcedures
public Iterator<FeedResponse<CosmosStoredProcedureProperties>> readAllStoredProcedures(FeedOptions options)
Read all stored procedures iterator.- Parameters:
options
- the options- Returns:
- the iterator
-
queryStoredProcedures
public Iterator<FeedResponse<CosmosStoredProcedureProperties>> queryStoredProcedures(String query, FeedOptions options)
Query stored procedures iterator.- Parameters:
query
- the queryoptions
- the options- Returns:
- the iterator
-
queryStoredProcedures
public Iterator<FeedResponse<CosmosStoredProcedureProperties>> queryStoredProcedures(SqlQuerySpec querySpec, FeedOptions options)
Query stored procedures iterator.- Parameters:
querySpec
- the query specoptions
- the options- Returns:
- the iterator
-
getStoredProcedure
public CosmosSyncStoredProcedure getStoredProcedure(String id)
Gets stored procedure.- Parameters:
id
- the id- Returns:
- the stored procedure
-
createUserDefinedFunction
public CosmosSyncUserDefinedFunctionResponse createUserDefinedFunction(CosmosUserDefinedFunctionProperties properties) throws CosmosClientException
Create user defined function- Parameters:
properties
- the properties- Returns:
- the cosmos sync user defined function response
- Throws:
CosmosClientException
- the cosmos client exception
-
readAllUserDefinedFunctions
public Iterator<FeedResponse<CosmosUserDefinedFunctionProperties>> readAllUserDefinedFunctions(FeedOptions options)
Read all user defined functions iterator.- Parameters:
options
- the options- Returns:
- the iterator
-
queryUserDefinedFunctions
public Iterator<FeedResponse<CosmosUserDefinedFunctionProperties>> queryUserDefinedFunctions(String query, FeedOptions options)
Query user defined functions iterator.- Parameters:
query
- the queryoptions
- the options- Returns:
- the iterator
-
queryUserDefinedFunctions
public Iterator<FeedResponse<CosmosUserDefinedFunctionProperties>> queryUserDefinedFunctions(SqlQuerySpec querySpec, FeedOptions options)
Query user defined functions iterator.- Parameters:
querySpec
- the query specoptions
- the options- Returns:
- the iterator
-
getUserDefinedFunction
public CosmosSyncUserDefinedFunction getUserDefinedFunction(String id)
Gets user defined function.- Parameters:
id
- the id- Returns:
- the user defined function
-
createTrigger
public CosmosSyncTriggerResponse createTrigger(CosmosTriggerProperties properties) throws CosmosClientException
Create trigger- Parameters:
properties
- the properties- Returns:
- the cosmos sync trigger response
- Throws:
CosmosClientException
- the cosmos client exception
-
readAllTriggers
public Iterator<FeedResponse<CosmosTriggerProperties>> readAllTriggers(FeedOptions options)
Read all triggers iterator.- Parameters:
options
- the options- Returns:
- the iterator
-
queryTriggers
public Iterator<FeedResponse<CosmosTriggerProperties>> queryTriggers(String query, FeedOptions options)
Query triggers iterator.- Parameters:
query
- the queryoptions
- the options- Returns:
- the iterator
-
queryTriggers
public Iterator<FeedResponse<CosmosTriggerProperties>> queryTriggers(SqlQuerySpec querySpec, FeedOptions options)
Query triggers iterator.- Parameters:
querySpec
- the query specoptions
- the options- Returns:
- the iterator
-
getTrigger
public CosmosSyncTrigger getTrigger(String id)
Gets trigger.- Parameters:
id
- the id- Returns:
- the trigger
-
-