CosmosOperations Interface
public interface CosmosOperations
Interface for cosmosDB operations
Method Summary
Method Details
<S,T>deleteEntities
public abstract void deleteEntities(CosmosEntityInformation entities)
Delete using a list of entities with bulk
Parameters:
<S,T>insertAll
public abstract Iterable insertAll(CosmosEntityInformation entities)
Insert items using bulk operations.
Parameters:
Returns:
<T,ID>findByIds
public abstract Iterable
Find by ids
Parameters:
Returns:
count
public abstract long
Count
Parameters:
Returns:
count
public abstract long
Count
Parameters:
Returns:
delete
public abstract Iterable
Delete items matching query. Uses bulk if possible.
Parameters:
Returns:
deleteEntity
public abstract void
Delete using entity
Parameters:
exists
public abstract Boolean
Exists
Parameters:
Returns:
find
public abstract Iterable
Find query
Parameters:
Returns:
findAll
public abstract Iterable
Find the DocumentQuery, find all the items specified by domain type in the given container.
Parameters:
Returns:
findAll
public abstract Iterable
Find the DocumentQuery, find all the items specified by domain type.
Parameters:
Returns:
findAll
public abstract Iterable
Find the DocumentQuery, find all the items specified by domain type in the given container.
Parameters:
Returns:
findAll
public abstract Page
Find all items in a given container with partition key
Parameters:
Returns:
findById
public abstract T
Finds item by id
Parameters:
Returns:
findById
public abstract T
Finds item by id
Parameters:
Returns:
findById
public abstract T
Finds item by id
Parameters:
Returns:
insert
public abstract T
Inserts item
Parameters:
Returns:
insert
public abstract T
Inserts item
Parameters:
Returns:
insert
public abstract T
Inserts item
Parameters:
Returns:
paginationQuery
public abstract Page
Pagination query
Parameters:
Returns:
patch
public abstract T
patches item
Parameters:
Returns:
patch
public abstract T
patches item
Parameters:
Returns:
runPaginationQuery
public abstract Page
Run the query.
Parameters:
Returns:
runQuery
public abstract Iterable
Run the query.
Parameters:
Returns:
runQuery
public abstract Iterable
Run the query.
Parameters:
Returns:
runSliceQuery
public abstract Slice
Run custom SQL query
Parameters:
Returns:
sliceQuery
public abstract Slice
Slice query
Parameters:
Returns:
upsert
public abstract void
Upserts an item with partition key
Parameters:
upsert
public abstract void
Upserts an item into container with partition key
Parameters:
upsertAndReturnEntity
public abstract T
Upserts an item and return item properties
Parameters:
Returns:
count
public abstract long count(String containerName)
Count
Parameters:
Returns:
createContainerIfNotExists
public abstract CosmosContainerProperties createContainerIfNotExists(CosmosEntityInformation information)
Creates container if not exists
Parameters:
Returns:
deleteAll
public abstract void deleteAll(String containerName, Class domainType)
Delete all items in a container. Uses bulk if possible.
Parameters:
deleteById
public abstract void deleteById(String containerName, Object id, PartitionKey partitionKey)
Delete an item by id
Parameters:
deleteContainer
public abstract void deleteContainer(String containerName)
Delete container
Parameters:
getContainerName
public abstract String getContainerName(Class domainType)
To get container name by domainType
Parameters:
Returns:
getContainerProperties
public abstract CosmosContainerProperties getContainerProperties(String containerName)
Get properties for specified container
Parameters:
Returns:
getConverter
public abstract MappingCosmosConverter getConverter()
To get converter
Returns:
replaceContainerProperties
public abstract CosmosContainerProperties replaceContainerProperties(String containerName, CosmosContainerProperties properties)
Replace container properties for the specified container
Parameters:
Returns:
Applies to
Azure SDK for Java