All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.cosmos.implementation.UserDefinedFunction Maven / Gradle / Ivy

Go to download

This Package contains Microsoft Azure Cosmos SDK (with Reactive Extension Reactor support) for Azure Cosmos DB SQL API

There is a newer version: 4.63.3
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.cosmos.implementation;

import com.azure.cosmos.CosmosItemSerializer;
import com.fasterxml.jackson.databind.node.ObjectNode;

/**
 * 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. */ public class UserDefinedFunction extends Resource { /** * Constructor. */ public UserDefinedFunction() { super(); } /** * Constructor. * * @param jsonNode the json node that represents the user defined function. */ public UserDefinedFunction(ObjectNode jsonNode) { super(jsonNode); } /** * Get the body of the user defined function. * * @return the body. */ public String getBody() { return super.getString(Constants.Properties.BODY); } /** * Set the body of the user defined function. * * @param body the body. */ public void setBody(String body) { this.set(Constants.Properties.BODY, body, CosmosItemSerializer.DEFAULT_SERIALIZER); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy