UserDefinedFunction Class
- java.
lang. Object - JsonSerializable
- Resource
- com.
microsoft. azure. cosmosdb. UserDefinedFunction
- com.
public class UserDefinedFunction extends Resource
Represents a user defined function in the Azure Cosmos DB database service.
Cosmos DB supports JavaScript UDFs which can be used inside queries, stored procedures and triggers. For additional details, refer to the server-side JavaScript API documentation.
Constructor Summary
Constructor | Description |
---|---|
UserDefinedFunction() |
Constructor. |
UserDefinedFunction(String jsonString) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getBody()
Get the body of the user defined function. |
void |
setBody(String body)
Set the body of the user defined function. |
Inherited Members
JsonSerializable.get(String propertyName)
JsonSerializable.getBoolean(String propertyName)
JsonSerializable.getCollection(String propertyName)
JsonSerializable.getDouble(String propertyName)
Resource.getETag()
JsonSerializable.getHashMap()
Resource.getId()
JsonSerializable.getInt(String propertyName)
JsonSerializable.getLogger()
JsonSerializable.getLong(String propertyName)
JsonSerializable.getMapper()
JsonSerializable.getObject(String propertyName)
JsonSerializable.getObjectByPath(List<String> propertyNames)
Resource.getResourceId()
Resource.getSelfLink()
JsonSerializable.getString(String propertyName)
Resource.getTimestamp()
JsonSerializable.has(String propertyName)
JsonSerializable.JsonSerializable()
JsonSerializable.JsonSerializable(String jsonString, ObjectMapper objectMapper)
JsonSerializable.JsonSerializable(String jsonString)
JsonSerializable.remove(String propertyName)
Resource.Resource(Resource resource)
Resource.Resource()
Resource.Resource(String jsonString, ObjectMapper objectMapper)
Resource.Resource(String jsonString)
Resource.setId(String id)
Resource.setResourceId(String resourceId)
JsonSerializable.toJson()
JsonSerializable.toJson(SerializationFormattingPolicy formattingPolicy)
JsonSerializable.toString()
Constructor Details
UserDefinedFunction
public UserDefinedFunction()
Constructor.
UserDefinedFunction
public UserDefinedFunction(String jsonString)
Constructor.
Parameters:
jsonString
- the json string that represents the user defined function.
Method Details
getBody
public String getBody()
Get the body of the user defined function.
Returns:
the body.
setBody
public void setBody(String body)
Set the body of the user defined function.
Parameters:
body
- the body.