Partager via


CosmosScripts Class

  • java.lang.Object
    • com.azure.cosmos.CosmosScripts

public class CosmosScripts

The type Cosmos sync scripts.

Method Summary

Modifier and Type Method and Description
CosmosStoredProcedureResponse createStoredProcedure(CosmosStoredProcedureProperties properties)

Create stored procedure

CosmosStoredProcedureResponse createStoredProcedure(CosmosStoredProcedureProperties properties, CosmosStoredProcedureRequestOptions options)

Create stored procedure cosmos

CosmosTriggerResponse createTrigger(CosmosTriggerProperties properties)

Create trigger

CosmosUserDefinedFunctionResponse createUserDefinedFunction(CosmosUserDefinedFunctionProperties properties)

Create user defined function

CosmosStoredProcedure getStoredProcedure(String id)

Gets stored procedure.

CosmosTrigger getTrigger(String id)

Gets trigger.

CosmosUserDefinedFunction getUserDefinedFunction(String id)

Gets user defined function.

CosmosPagedIterable<CosmosStoredProcedureProperties> queryStoredProcedures(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)

Query stored procedures CosmosPagedIterable<T>.

CosmosPagedIterable<CosmosStoredProcedureProperties> queryStoredProcedures(String query, CosmosQueryRequestOptions options)

Query stored procedures CosmosPagedIterable<T>.

CosmosPagedIterable<CosmosTriggerProperties> queryTriggers(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)

Query triggers CosmosPagedIterable<T>.

CosmosPagedIterable<CosmosTriggerProperties> queryTriggers(String query, CosmosQueryRequestOptions options)

Query triggers CosmosPagedIterable<T>.

CosmosPagedIterable<CosmosUserDefinedFunctionProperties> queryUserDefinedFunctions(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)

Query user defined functions CosmosPagedIterable<T>.

CosmosPagedIterable<CosmosUserDefinedFunctionProperties> queryUserDefinedFunctions(String query, CosmosQueryRequestOptions options)

Query user defined functions CosmosPagedIterable<T>.

CosmosPagedIterable<CosmosStoredProcedureProperties> readAllStoredProcedures()

Read all stored procedures CosmosPagedIterable<T>.

CosmosPagedIterable<CosmosTriggerProperties> readAllTriggers()

Read all triggers CosmosPagedIterable<T>.

CosmosPagedIterable<CosmosUserDefinedFunctionProperties> readAllUserDefinedFunctions()

Read all user defined functions CosmosPagedIterable<T>.

Methods inherited from java.lang.Object

Method Details

createStoredProcedure

public CosmosStoredProcedureResponse createStoredProcedure(CosmosStoredProcedureProperties properties)

Create stored procedure

Parameters:

properties - the properties

Returns:

the cosmos stored procedure response

createStoredProcedure

public CosmosStoredProcedureResponse createStoredProcedure(CosmosStoredProcedureProperties properties, CosmosStoredProcedureRequestOptions options)

Create stored procedure cosmos

Parameters:

properties - the properties
options - the options

Returns:

the cosmos stored procedure response

createTrigger

public CosmosTriggerResponse createTrigger(CosmosTriggerProperties properties)

Create trigger

Parameters:

properties - the properties

Returns:

the cosmos trigger response

createUserDefinedFunction

public CosmosUserDefinedFunctionResponse createUserDefinedFunction(CosmosUserDefinedFunctionProperties properties)

Create user defined function

Parameters:

properties - the properties

Returns:

the cosmos user defined function response

getStoredProcedure

public CosmosStoredProcedure getStoredProcedure(String id)

Gets stored procedure.

Parameters:

id - the id

Returns:

the stored procedure

getTrigger

public CosmosTrigger getTrigger(String id)

Gets trigger.

Parameters:

id - the id

Returns:

the trigger

getUserDefinedFunction

public CosmosUserDefinedFunction getUserDefinedFunction(String id)

Gets user defined function.

Parameters:

id - the id

Returns:

the user defined function

queryStoredProcedures

public CosmosPagedIterable queryStoredProcedures(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)

Query stored procedures CosmosPagedIterable<T>.

Parameters:

querySpec - the query spec
options - the options

Returns:

queryStoredProcedures

public CosmosPagedIterable queryStoredProcedures(String query, CosmosQueryRequestOptions options)

Query stored procedures CosmosPagedIterable<T>.

Parameters:

query - the query
options - the options

Returns:

queryTriggers

public CosmosPagedIterable queryTriggers(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)

Query triggers CosmosPagedIterable<T>.

Parameters:

querySpec - the query spec
options - the options

Returns:

queryTriggers

public CosmosPagedIterable queryTriggers(String query, CosmosQueryRequestOptions options)

Query triggers CosmosPagedIterable<T>.

Parameters:

query - the query
options - the options

Returns:

queryUserDefinedFunctions

public CosmosPagedIterable queryUserDefinedFunctions(SqlQuerySpec querySpec, CosmosQueryRequestOptions options)

Query user defined functions CosmosPagedIterable<T>.

Parameters:

querySpec - the query spec
options - the options

Returns:

queryUserDefinedFunctions

public CosmosPagedIterable queryUserDefinedFunctions(String query, CosmosQueryRequestOptions options)

Query user defined functions CosmosPagedIterable<T>.

Parameters:

query - the query
options - the options

Returns:

readAllStoredProcedures

public CosmosPagedIterable readAllStoredProcedures()

Read all stored procedures CosmosPagedIterable<T>.

Returns:

readAllTriggers

public CosmosPagedIterable readAllTriggers()

Read all triggers CosmosPagedIterable<T>.

Returns:

readAllUserDefinedFunctions

public CosmosPagedIterable readAllUserDefinedFunctions()

Read all user defined functions CosmosPagedIterable<T>.

Returns:

Applies to