public class StoredProcedure extends Resource
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 and Description |
---|
StoredProcedure()
Constructor.
|
StoredProcedure(org.json.JSONObject jsonObject)
Constructor.
|
StoredProcedure(String jsonString)
Constructor.
|
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.
|
getETag, getId, getResourceId, getSelfLink, getTimestamp, setId, setResourceId
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toString
public StoredProcedure()
public StoredProcedure(String jsonString)
jsonString
- the json string that represents the stored procedure.public StoredProcedure(org.json.JSONObject jsonObject)
jsonObject
- the json object that represents the stored procedure.Copyright © 2018. All rights reserved.