ReactiveCosmosTemplate Class
- java.
lang. Object - com.
azure. spring. data. cosmos. core. ReactiveCosmosTemplate
- com.
Implements
public class ReactiveCosmosTemplate
implements ReactiveCosmosOperations, org.springframework.context.ApplicationContextAware
Template class of reactive cosmos
Constructor Summary
Method Summary
Methods inherited from java.lang.Object
Constructor Details
ReactiveCosmosTemplate
public ReactiveCosmosTemplate(CosmosAsyncClient client, String databaseName, CosmosConfig cosmosConfig, MappingCosmosConverter mappingCosmosConverter)
Initialization
Parameters:
ReactiveCosmosTemplate
public ReactiveCosmosTemplate(CosmosAsyncClient client, String databaseName, CosmosConfig cosmosConfig, MappingCosmosConverter mappingCosmosConverter, IsNewAwareAuditingHandler cosmosAuditingHandler)
Initialization
Parameters:
ReactiveCosmosTemplate
public ReactiveCosmosTemplate(CosmosFactory cosmosFactory, CosmosConfig cosmosConfig, MappingCosmosConverter mappingCosmosConverter)
Initialization
Parameters:
ReactiveCosmosTemplate
public ReactiveCosmosTemplate(CosmosFactory cosmosFactory, CosmosConfig cosmosConfig, MappingCosmosConverter mappingCosmosConverter, IsNewAwareAuditingHandler cosmosAuditingHandler)
Constructor
Parameters:
Method Details
<S,T>deleteEntities
public MonodeleteEntities(CosmosEntityInformation entities)
Delete all items with bulk.
Parameters:
Returns:
<S,T>deleteEntities
public MonodeleteEntities(CosmosEntityInformation entities)
Delete all items with bulk.
Parameters:
Returns:
<S,T>insertAll
public Flux insertAll(CosmosEntityInformation entities)
Insert all items with bulk.
Parameters:
Returns:
<S,T>insertAll
public Flux insertAll(CosmosEntityInformation entities)
Insert all items with bulk.
Parameters:
Returns:
delete
public Flux
Delete items matching query with bulk if PK exists
Parameters:
Returns:
deleteEntity
public Mono
Deletes the entity
Parameters:
Returns:
find
public Flux
Find items
Parameters:
Returns:
findAll
public Flux
Find all items in a given container with partition key
Parameters:
findAll
public Flux
Find all items in a given container
Parameters:
Returns:
findAll
public Flux
Find all items in a given container
Parameters:
Returns:
findById
public Mono
Find by id
Parameters:
Returns:
findById
public Mono
Find by id
Parameters:
Returns:
findById
public Mono
Find by id
Parameters:
Returns:
insert
public Mono
Insert
Parameters:
Returns:
insert
public Mono
Insert
Parameters:
Returns:
insert
public Mono
Insert
Parameters:
Returns:
insert
public Mono
Insert
Parameters:
Returns:
patch
public Mono
Patches item applies partial update (patch) to an item
Parameters:
Returns:
patch
public Mono
applies partial update (patch) to an item with CosmosPatchItemRequestOptions
Parameters:
Returns:
runQuery
public Flux
Run the query.
Parameters:
runQuery
public Flux
Run the query.
Parameters:
upsert
public Mono
Upsert
Parameters:
Returns:
upsert
public Mono
Upsert
Parameters:
Returns:
count
public Mono
Count
Parameters:
Returns:
count
public Mono
Count
Parameters:
Returns:
count
public Mono
Count
Parameters:
Returns:
createContainerIfNotExists
public Mono
Creates a container if it doesn't already exist
Parameters:
Returns:
deleteAll
public Mono
Delete all items in a container
Parameters:
Returns:
deleteById
public Mono
Deletes the item with id and partition key.
Parameters:
deleteContainer
public void deleteContainer(String containerName)
Delete container with container name
Parameters:
exists
public Mono
Exists
Parameters:
Returns:
existsById
public Mono
Exists
Parameters:
Returns:
getContainerName
public String getContainerName(Class domainType)
Get container name
Parameters:
getContainerNameOverride
public String getContainerNameOverride(String containerName)
Check if an overridden version of containerName is present, and if so, return it
Parameters:
Returns:
getContainerProperties
public Mono
Get properties for specified container
Parameters:
getConverter
public MappingCosmosConverter getConverter()
To get converter
replaceContainerProperties
public Mono
Replace container properties for the specified container
Parameters:
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
Parameters:
Throws:
Applies to
Azure SDK for Java