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

com.azure.cosmos.implementation.StoredProcedure 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.61.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.cosmos.implementation;

import com.azure.cosmos.BridgeInternal;

/**
 * Represents a stored procedure in the Azure Cosmos DB database service.
 * 

* 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. */ public class StoredProcedure extends Resource { /** * Constructor. */ public StoredProcedure() { super(); } /** * Constructor. * * @param jsonString the json string that represents the stored procedure. */ public StoredProcedure(String jsonString) { super(jsonString); } /** * Sets the id * @param id the name of the resource. * @return the current stored procedure */ public StoredProcedure setId(String id){ super.setId(id); return this; } /** * Get the body of the stored procedure. * * @return the body of the stored procedure. */ public String getBody() { return super.getString(Constants.Properties.BODY); } /** * Set the body of the stored procedure. * * @param body the body of the stored procedure. */ public void setBody(String body) { BridgeInternal.setProperty(this, Constants.Properties.BODY, body); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy