UserDefinedFunction Class

public class UserDefinedFunction
extends Resource

Represents a user defined function in the Azure Cosmos DB database service.

Azure 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.

UserDefinedFunction(JSONObject jsonObject)

Constructor.

Method Summary

Modifier and Type Method and Description
java.lang.String getBody()

Get the body of the user defined function.

void setBody(String body)

Set the body of the user defined function.

Methods inherited from JsonSerializable

Methods inherited from Resource

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

UserDefinedFunction

public UserDefinedFunction()

Constructor.

UserDefinedFunction

public UserDefinedFunction(String jsonString)

Constructor.

Parameters:

jsonString - the json string that represents the user defined function.

UserDefinedFunction

public UserDefinedFunction(JSONObject jsonObject)

Constructor.

Parameters:

jsonObject - the json object 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.

Applies to