Interface ReactiveCouchbaseOperations
- All Superinterfaces:
ReactiveExistsByIdOperation
,ReactiveFindByAnalyticsOperation
,ReactiveFindByIdOperation
,ReactiveFindByQueryOperation
,ReactiveFindFromReplicasByIdOperation
,ReactiveFluentCouchbaseOperations
,ReactiveInsertByIdOperation
,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 org.springframework.data.couchbase.core.ReactiveExistsByIdOperation
ReactiveExistsByIdOperation.ExistsByIdInCollection, ReactiveExistsByIdOperation.ExistsByIdInScope, ReactiveExistsByIdOperation.ExistsByIdWithOptions, ReactiveExistsByIdOperation.ReactiveExistsById, ReactiveExistsByIdOperation.TerminatingExistsById
Nested classes/interfaces inherited from interface org.springframework.data.couchbase.core.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 org.springframework.data.couchbase.core.ReactiveFindByIdOperation
ReactiveFindByIdOperation.FindByIdInCollection<T>, ReactiveFindByIdOperation.FindByIdInScope<T>, ReactiveFindByIdOperation.FindByIdWithExpiry<T>, ReactiveFindByIdOperation.FindByIdWithOptions<T>, ReactiveFindByIdOperation.FindByIdWithProjection<T>, ReactiveFindByIdOperation.ReactiveFindById<T>, ReactiveFindByIdOperation.TerminatingFindById<T>
Nested classes/interfaces inherited from interface org.springframework.data.couchbase.core.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 org.springframework.data.couchbase.core.ReactiveFindFromReplicasByIdOperation
ReactiveFindFromReplicasByIdOperation.FindFromReplicasByIdInCollection<T>, ReactiveFindFromReplicasByIdOperation.FindFromReplicasByIdInScope<T>, ReactiveFindFromReplicasByIdOperation.FindFromReplicasByIdWithOptions<T>, ReactiveFindFromReplicasByIdOperation.ReactiveFindFromReplicasById<T>, ReactiveFindFromReplicasByIdOperation.TerminatingFindFromReplicasById<T>
Nested classes/interfaces inherited from interface org.springframework.data.couchbase.core.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 org.springframework.data.couchbase.core.ReactiveRemoveByIdOperation
ReactiveRemoveByIdOperation.ReactiveRemoveById, ReactiveRemoveByIdOperation.RemoveByIdInCollection, ReactiveRemoveByIdOperation.RemoveByIdInScope, ReactiveRemoveByIdOperation.RemoveByIdWithCas, ReactiveRemoveByIdOperation.RemoveByIdWithDurability, ReactiveRemoveByIdOperation.RemoveByIdWithOptions, ReactiveRemoveByIdOperation.TerminatingRemoveById
Nested classes/interfaces inherited from interface org.springframework.data.couchbase.core.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 org.springframework.data.couchbase.core.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 org.springframework.data.couchbase.core.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 TypeMethodDescription<T> reactor.core.publisher.Mono<Long>
Returns the count of documents found by the query.The name of the bucket used.com.couchbase.client.java.query.QueryScanConsistency
Returns 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> reactor.core.publisher.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 org.springframework.data.couchbase.core.ReactiveExistsByIdOperation
existsById, existsById
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveFindByAnalyticsOperation
findByAnalytics
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveFindByIdOperation
findById
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveFindByQueryOperation
findByQuery
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveFindFromReplicasByIdOperation
findFromReplicasById
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveInsertByIdOperation
insertById
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveRemoveByIdOperation
removeById, removeById
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveRemoveByQueryOperation
removeByQuery
Methods inherited from interface org.springframework.data.couchbase.core.ReactiveReplaceByIdOperation
replaceById
Methods inherited from interface org.springframework.data.couchbase.core.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
Returns the count of documents found by the query.- Type Parameters:
T
-- Parameters:
query
-domainType
-- Returns:
-
getConsistency
com.couchbase.client.java.query.QueryScanConsistency getConsistency()- Returns:
- the default consistency to use for queries
-