Package | Description |
---|---|
com.azure.cosmos |
This package provides interfaces for interacting with Azure Cosmos DB.
|
Modifier and Type | Method and Description |
---|---|
<T> CosmosItemResponse<T> |
CosmosContainer.createItem(T item)
Creates a new item synchronously and returns its respective Cosmos item response.
|
<T> CosmosItemResponse<T> |
CosmosContainer.createItem(T item,
CosmosItemRequestOptions options)
Creates a new item synchronously and returns its respective Cosmos item response
while specifying additional options.
|
<T> CosmosItemResponse<T> |
CosmosContainer.createItem(T item,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Creates a new item synchronously and returns its respective Cosmos item response
while specifying additional options.
|
CosmosItemResponse<Object> |
CosmosContainer.deleteItem(String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Deletes an item in the current container.
|
<T> CosmosItemResponse<Object> |
CosmosContainer.deleteItem(T item,
CosmosItemRequestOptions options)
Deletes an item in the current container.
|
<T> CosmosItemResponse<T> |
CosmosContainer.patchItem(String itemId,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
Class<T> itemType)
Run patch operations on an Item.
|
<T> CosmosItemResponse<T> |
CosmosContainer.patchItem(String itemId,
PartitionKey partitionKey,
CosmosPatchOperations cosmosPatchOperations,
CosmosPatchItemRequestOptions options,
Class<T> itemType)
Run patch operations on an Item.
|
<T> CosmosItemResponse<T> |
CosmosContainer.readItem(String itemId,
PartitionKey partitionKey,
Class<T> itemType)
Reads an item in the current container.
|
<T> CosmosItemResponse<T> |
CosmosContainer.readItem(String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options,
Class<T> itemType)
Reads an item in the current container while specifying additional options.
|
<T> CosmosItemResponse<T> |
CosmosContainer.replaceItem(T item,
String itemId,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Replaces an item in the current container.
|
<T> CosmosItemResponse<T> |
CosmosContainer.upsertItem(T item)
Upserts an Cosmos item in the current container.
|
<T> CosmosItemResponse<T> |
CosmosContainer.upsertItem(T item,
CosmosItemRequestOptions options)
Upserts a item Cosmos sync item while specifying additional options.
|
<T> CosmosItemResponse<T> |
CosmosContainer.upsertItem(T item,
PartitionKey partitionKey,
CosmosItemRequestOptions options)
Upserts a item Cosmos sync item while specifying additional options.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.