public interface CosmosOperations
| Modifier and Type | Method and Description |
|---|---|
<T> long |
count(DocumentQuery query,
Class<T> domainType,
String containerName) |
long |
count(String containerName) |
com.azure.data.cosmos.CosmosContainerProperties |
createCollectionIfNotExists(CosmosEntityInformation<?,?> information)
Deprecated.
|
com.azure.data.cosmos.CosmosContainerProperties |
createContainerIfNotExists(CosmosEntityInformation<?,?> information) |
<T> List<T> |
delete(DocumentQuery query,
Class<T> domainType,
String containerName) |
void |
deleteAll(String containerName,
Class<?> domainType) |
void |
deleteById(String containerName,
Object id,
com.azure.data.cosmos.PartitionKey partitionKey) |
void |
deleteCollection(String containerName)
Deprecated.
|
void |
deleteContainer(String containerName) |
<T> Boolean |
exists(DocumentQuery query,
Class<T> domainType,
String containerName) |
<T> List<T> |
find(DocumentQuery query,
Class<T> domainType,
String containerName) |
<T> List<T> |
findAll(Class<T> domainType) |
<T> org.springframework.data.domain.Page<T> |
findAll(org.springframework.data.domain.Pageable pageable,
Class<T> domainType,
String containerName) |
<T> List<T> |
findAll(com.azure.data.cosmos.PartitionKey partitionKey,
Class<T> domainType) |
<T> List<T> |
findAll(String containerName,
Class<T> domainType) |
<T> T |
findById(Object id,
Class<T> domainType) |
<T> T |
findById(Object id,
Class<T> domainType,
com.azure.data.cosmos.PartitionKey partitionKey) |
<T> T |
findById(String containerName,
Object id,
Class<T> domainType) |
<T,ID> List<T> |
findByIds(Iterable<ID> ids,
Class<T> domainType,
String containerName) |
String |
getCollectionName(Class<?> domainType)
Deprecated.
|
String |
getContainerName(Class<?> domainType) |
MappingCosmosConverter |
getConverter() |
<T> T |
insert(String containerName,
T objectToSave,
com.azure.data.cosmos.PartitionKey partitionKey) |
<T> T |
insert(T objectToSave,
com.azure.data.cosmos.PartitionKey partitionKey) |
<T> org.springframework.data.domain.Page<T> |
paginationQuery(DocumentQuery query,
Class<T> domainType,
String containerName) |
<T> void |
upsert(String containerName,
T object,
com.azure.data.cosmos.PartitionKey partitionKey) |
<T> void |
upsert(T object,
com.azure.data.cosmos.PartitionKey partitionKey) |
<T> T |
upsertAndReturnEntity(String containerName,
T object,
com.azure.data.cosmos.PartitionKey partitionKey) |
@Deprecated String getCollectionName(Class<?> domainType)
domainType - class type@Deprecated com.azure.data.cosmos.CosmosContainerProperties createCollectionIfNotExists(CosmosEntityInformation<?,?> information)
information - cosmos entity informationcom.azure.data.cosmos.CosmosContainerProperties createContainerIfNotExists(CosmosEntityInformation<?,?> information)
<T> T findById(Object id, Class<T> domainType, com.azure.data.cosmos.PartitionKey partitionKey)
<T> T insert(T objectToSave,
com.azure.data.cosmos.PartitionKey partitionKey)
<T> T insert(String containerName, T objectToSave, com.azure.data.cosmos.PartitionKey partitionKey)
<T> void upsert(T object,
com.azure.data.cosmos.PartitionKey partitionKey)
<T> void upsert(String containerName, T object, com.azure.data.cosmos.PartitionKey partitionKey)
<T> T upsertAndReturnEntity(String containerName, T object, com.azure.data.cosmos.PartitionKey partitionKey)
void deleteById(String containerName, Object id, com.azure.data.cosmos.PartitionKey partitionKey)
@Deprecated void deleteCollection(String containerName)
containerName - container namevoid deleteContainer(String containerName)
<T> List<T> delete(DocumentQuery query, Class<T> domainType, String containerName)
<T> List<T> find(DocumentQuery query, Class<T> domainType, String containerName)
<T> Boolean exists(DocumentQuery query, Class<T> domainType, String containerName)
<T> org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable,
Class<T> domainType,
String containerName)
<T> org.springframework.data.domain.Page<T> paginationQuery(DocumentQuery query, Class<T> domainType, String containerName)
long count(String containerName)
<T> long count(DocumentQuery query, Class<T> domainType, String containerName)
MappingCosmosConverter getConverter()
Copyright © 2020 Microsoft. All rights reserved.