ReactiveCosmosRepository<T,K> Interface
Type Parameters
- T
the type of the domain class.
- K
the type of the id of the entity the repository manages.
Implements
public interface ReactiveCosmosRepository<T,K>
extends org.springframework.data.repository.reactive.ReactiveSortingRepository<T,K>, org.springframework.data.repository.reactive.ReactiveCrudRepository<T,K>
Repository interface with search and delete operation
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract Mono<S> |
save(K id, PartitionKey partitionKey, Class<S> domainType, CosmosPatchOperations patchOperations)
Patches an entity by its id and partition key with Cosmos |
abstract Mono<S> |
save(K id, PartitionKey partitionKey, Class<S> domainType, CosmosPatchOperations patchOperations, CosmosPatchItemRequestOptions options)
Patches an entity by its id and partition key with Cosmos |
abstract Mono<Void> |
deleteById(K id, PartitionKey partitionKey)
Deletes an entity by its id and partition key. |
abstract Flux<T> |
findAll(PartitionKey partitionKey)
Returns Flux of items in a specific partition |
abstract Mono<T> |
findById(K id, PartitionKey partitionKey)
Retrieves an entity by its id and partition key. |
Method Details
save
public abstract Mono save(K id, PartitionKey partitionKey, Class domainType, CosmosPatchOperations patchOperations)
Patches an entity by its id and partition key with CosmosPatchItemRequestOptions
Parameters:
Returns:
save
public abstract Mono save(K id, PartitionKey partitionKey, Class domainType, CosmosPatchOperations patchOperations, CosmosPatchItemRequestOptions options)
Patches an entity by its id and partition key with CosmosPatchItemRequestOptions
Parameters:
Returns:
deleteById
public abstract Mono
Deletes an entity by its id and partition key.
Parameters:
Returns:
findAll
public abstract Flux
Returns Flux of items in a specific partition
Parameters:
Returns:
findById
public abstract Mono
Retrieves an entity by its id and partition key.
Parameters:
Returns:
Applies to
Azure SDK for Java