Sdílet prostřednictvím


StoredProcedure Class

public class StoredProcedure extends Resource

Represents a stored procedure in the Azure Cosmos DB database service.

Cosmos DB allows stored procedures to be executed in the storage tier, directly against a document collection. The script gets executed under ACID transactions on the primary storage partition of the specified collection. For additional details, refer to the server-side JavaScript API documentation.

Constructor Summary

Constructor Description
StoredProcedure()

Constructor.

StoredProcedure(String jsonString)

Constructor.

Method Summary

Modifier and Type Method and Description
String getBody()

Get the body of the stored procedure.

void setBody(String body)

Set the body of the stored procedure.

Inherited Members

Constructor Details

StoredProcedure

public StoredProcedure()

Constructor.

StoredProcedure

public StoredProcedure(String jsonString)

Constructor.

Parameters:

jsonString - the json string that represents the stored procedure.

Method Details

getBody

public String getBody()

Get the body of the stored procedure.

Returns:

the body of the stored procedure.

setBody

public void setBody(String body)

Set the body of the stored procedure.

Parameters:

body - the body of the stored procedure.

Applies to