Interface ReactiveCouchbaseOperations
- All Superinterfaces:
ReactiveExistsByIdOperation, ReactiveFindByAnalyticsOperation, ReactiveFindByIdOperation, ReactiveFindByQueryOperation, ReactiveFindFromReplicasByIdOperation, ReactiveFluentCouchbaseOperations, ReactiveInsertByIdOperation, ReactiveMutateInByIdOperation, ReactiveRangeScanOperation, ReactiveRemoveByIdOperation, ReactiveRemoveByQueryOperation, ReactiveReplaceByIdOperation, ReactiveUpsertByIdOperation
- All Known Implementing Classes:
ReactiveCouchbaseTemplate
Defines common operations on the Couchbase data source, most commonly implemented by
ReactiveCouchbaseTemplate.- Author:
- Michael Nitschinger, Michael Reiche
-
Nested Class Summary
Nested classes/interfaces inherited from interface ReactiveExistsByIdOperation
ReactiveExistsByIdOperation.ExistsByIdInCollection, ReactiveExistsByIdOperation.ExistsByIdInScope, ReactiveExistsByIdOperation.ExistsByIdWithOptions, ReactiveExistsByIdOperation.ReactiveExistsById, ReactiveExistsByIdOperation.TerminatingExistsByIdNested classes/interfaces inherited from interface ReactiveFindByAnalyticsOperation
ReactiveFindByAnalyticsOperation.FindByAnalyticsConsistentWith<T>, ReactiveFindByAnalyticsOperation.FindByAnalyticsInCollection<T>, ReactiveFindByAnalyticsOperation.FindByAnalyticsInScope<T>, ReactiveFindByAnalyticsOperation.FindByAnalyticsWithConsistency<T>, ReactiveFindByAnalyticsOperation.FindByAnalyticsWithOptions<T>, ReactiveFindByAnalyticsOperation.FindByAnalyticsWithProjection<T>, ReactiveFindByAnalyticsOperation.FindByAnalyticsWithQuery<T>, ReactiveFindByAnalyticsOperation.ReactiveFindByAnalytics<T>, ReactiveFindByAnalyticsOperation.TerminatingFindByAnalytics<T>Nested classes/interfaces inherited from interface ReactiveFindByIdOperation
ReactiveFindByIdOperation.FindByIdInCollection<T>, ReactiveFindByIdOperation.FindByIdInScope<T>, ReactiveFindByIdOperation.FindByIdWithExpiry<T>, ReactiveFindByIdOperation.FindByIdWithLock<T>, ReactiveFindByIdOperation.FindByIdWithOptions<T>, ReactiveFindByIdOperation.FindByIdWithProjection<T>, ReactiveFindByIdOperation.ReactiveFindById<T>, ReactiveFindByIdOperation.TerminatingFindById<T>Nested classes/interfaces inherited from interface ReactiveFindByQueryOperation
ReactiveFindByQueryOperation.FindByQueryConsistentWith<T>, ReactiveFindByQueryOperation.FindByQueryInCollection<T>, ReactiveFindByQueryOperation.FindByQueryInScope<T>, ReactiveFindByQueryOperation.FindByQueryWithConsistency<T>, ReactiveFindByQueryOperation.FindByQueryWithDistinct<T>, ReactiveFindByQueryOperation.FindByQueryWithOptions<T>, ReactiveFindByQueryOperation.FindByQueryWithProjecting<T>, ReactiveFindByQueryOperation.FindByQueryWithProjection<T>, ReactiveFindByQueryOperation.FindByQueryWithQuery<T>, ReactiveFindByQueryOperation.ReactiveFindByQuery<T>, ReactiveFindByQueryOperation.TerminatingFindByQuery<T>Nested classes/interfaces inherited from interface ReactiveFindFromReplicasByIdOperation
ReactiveFindFromReplicasByIdOperation.FindFromReplicasByIdInCollection<T>, ReactiveFindFromReplicasByIdOperation.FindFromReplicasByIdInScope<T>, ReactiveFindFromReplicasByIdOperation.FindFromReplicasByIdWithOptions<T>, ReactiveFindFromReplicasByIdOperation.ReactiveFindFromReplicasById<T>, ReactiveFindFromReplicasByIdOperation.TerminatingFindFromReplicasById<T>Nested classes/interfaces inherited from interface ReactiveInsertByIdOperation
ReactiveInsertByIdOperation.InsertByIdInCollection<T>, ReactiveInsertByIdOperation.InsertByIdInScope<T>, ReactiveInsertByIdOperation.InsertByIdWithDurability<T>, ReactiveInsertByIdOperation.InsertByIdWithExpiry<T>, ReactiveInsertByIdOperation.InsertByIdWithOptions<T>, ReactiveInsertByIdOperation.ReactiveInsertById<T>, ReactiveInsertByIdOperation.TerminatingInsertById<T>Nested classes/interfaces inherited from interface ReactiveMutateInByIdOperation
ReactiveMutateInByIdOperation.MutateInByIdInCollection<T>, ReactiveMutateInByIdOperation.MutateInByIdInScope<T>, ReactiveMutateInByIdOperation.MutateInByIdWithDurability<T>, ReactiveMutateInByIdOperation.MutateInByIdWithExpiry<T>, ReactiveMutateInByIdOperation.MutateInByIdWithOptions<T>, ReactiveMutateInByIdOperation.MutateInByIdWithPaths<T>, ReactiveMutateInByIdOperation.ReactiveMutateInById<T>, ReactiveMutateInByIdOperation.TerminatingMutateInById<T>Nested classes/interfaces inherited from interface ReactiveRangeScanOperation
ReactiveRangeScanOperation.RangeScanConsistentWith<T>, ReactiveRangeScanOperation.RangeScanInCollection<T>, ReactiveRangeScanOperation.RangeScanInScope<T>, ReactiveRangeScanOperation.RangeScanWithBatchByteLimit<T>, ReactiveRangeScanOperation.RangeScanWithBatchItemLimit<T>, ReactiveRangeScanOperation.RangeScanWithOptions<T>, ReactiveRangeScanOperation.RangeScanWithProjection<T>, ReactiveRangeScanOperation.RangeScanWithSort<T>, ReactiveRangeScanOperation.ReactiveRangeScan<T>, ReactiveRangeScanOperation.TerminatingRangeScan<T>Nested classes/interfaces inherited from interface ReactiveRemoveByIdOperation
ReactiveRemoveByIdOperation.ReactiveRemoveById, ReactiveRemoveByIdOperation.RemoveByIdInCollection, ReactiveRemoveByIdOperation.RemoveByIdInScope, ReactiveRemoveByIdOperation.RemoveByIdWithCas, ReactiveRemoveByIdOperation.RemoveByIdWithDurability, ReactiveRemoveByIdOperation.RemoveByIdWithOptions, ReactiveRemoveByIdOperation.TerminatingRemoveByIdNested classes/interfaces inherited from interface ReactiveRemoveByQueryOperation
ReactiveRemoveByQueryOperation.ReactiveRemoveByQuery<T>, ReactiveRemoveByQueryOperation.RemoveByQueryConsistentWith<T>, ReactiveRemoveByQueryOperation.RemoveByQueryInCollection<T>, ReactiveRemoveByQueryOperation.RemoveByQueryInScope<T>, ReactiveRemoveByQueryOperation.RemoveByQueryWithConsistency<T>, ReactiveRemoveByQueryOperation.RemoveByQueryWithOptions<T>, ReactiveRemoveByQueryOperation.RemoveByQueryWithQuery<T>, ReactiveRemoveByQueryOperation.TerminatingRemoveByQuery<T>Nested classes/interfaces inherited from interface ReactiveReplaceByIdOperation
ReactiveReplaceByIdOperation.ReactiveReplaceById<T>, ReactiveReplaceByIdOperation.ReplaceByIdInCollection<T>, ReactiveReplaceByIdOperation.ReplaceByIdInScope<T>, ReactiveReplaceByIdOperation.ReplaceByIdWithDurability<T>, ReactiveReplaceByIdOperation.ReplaceByIdWithExpiry<T>, ReactiveReplaceByIdOperation.ReplaceByIdWithOptions<T>, ReactiveReplaceByIdOperation.TerminatingReplaceById<T>Nested classes/interfaces inherited from interface ReactiveUpsertByIdOperation
ReactiveUpsertByIdOperation.ReactiveUpsertById<T>, ReactiveUpsertByIdOperation.TerminatingUpsertById<T>, ReactiveUpsertByIdOperation.UpsertByIdInCollection<T>, ReactiveUpsertByIdOperation.UpsertByIdInScope<T>, ReactiveUpsertByIdOperation.UpsertByIdWithDurability<T>, ReactiveUpsertByIdOperation.UpsertByIdWithExpiry<T>, ReactiveUpsertByIdOperation.UpsertByIdWithOptions<T> -
Method Summary
Modifier and TypeMethodDescriptionReturns the count of documents found by the query.The name of the bucket used.com.couchbase.client.java.query.QueryScanConsistencyReturns the converter used for this template/operations.Returns the underlying client factory.The name of the scope used, null if the default scope is used.<T> Mono<T> Save the entity to couchbase.
If there is no version property on the entity class, and this is in a transaction, use insert.Methods inherited from interface ReactiveExistsByIdOperation
existsById, existsByIdMethods inherited from interface ReactiveFindByAnalyticsOperation
findByAnalyticsMethods inherited from interface ReactiveFindByIdOperation
findByIdMethods inherited from interface ReactiveFindByQueryOperation
findByQueryMethods inherited from interface ReactiveFindFromReplicasByIdOperation
findFromReplicasByIdMethods inherited from interface ReactiveInsertByIdOperation
insertByIdMethods inherited from interface ReactiveMutateInByIdOperation
mutateInByIdMethods inherited from interface ReactiveRangeScanOperation
rangeScanMethods inherited from interface ReactiveRemoveByIdOperation
removeById, removeByIdMethods inherited from interface ReactiveRemoveByQueryOperation
removeByQueryMethods inherited from interface ReactiveReplaceByIdOperation
replaceByIdMethods inherited from interface ReactiveUpsertByIdOperation
upsertById
-
Method Details
-
getConverter
CouchbaseConverter getConverter()Returns the converter used for this template/operations. -
getBucketName
String getBucketName()The name of the bucket used. -
getScopeName
String getScopeName()The name of the scope used, null if the default scope is used. -
getCouchbaseClientFactory
CouchbaseClientFactory getCouchbaseClientFactory()Returns the underlying client factory. -
save
Save the entity to couchbase.
If there is no version property on the entity class, and this is in a transaction, use insert.
If there is no version property on the entity class, and this is not in a transaction, use upsert.
If there is a version property on the entity class, and it is non-zero, then this is an existing document, use replace.
Otherwise, there is a version property for the entity, but it is zero or null, use insert.- Type Parameters:
T- the entity class- Parameters:
entity- the entity to save in couchbasescopeAndCollection- for use by repositories only. these are varargs for the scope and collection.- Returns:
-
count
-
getConsistency
com.couchbase.client.java.query.QueryScanConsistency getConsistency()- Returns:
- the default consistency to use for queries
-