你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StoredProcedure Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. Resource - com.
microsoft. azure. documentdb. StoredProcedure
- com.
- com.
- com.
public class StoredProcedure
extends Resource
Represents a stored procedure in the Azure Cosmos DB database service.
Azure 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. |
StoredProcedure(JSONObject jsonObject) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody()
Get the body of the stored procedure. |
void |
setBody(String body)
Set the body of the stored procedure. |
Methods inherited from JsonSerializable
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
StoredProcedure
public StoredProcedure()
Constructor.
StoredProcedure
public StoredProcedure(String jsonString)
Constructor.
Parameters:
StoredProcedure
public StoredProcedure(JSONObject jsonObject)
Constructor.
Parameters:
Method Details
getBody
public String getBody()
Get the body of the stored procedure.
Returns:
setBody
public void setBody(String body)
Set the body of the stored procedure.
Parameters: