public class CouchbaseTemplate extends Object implements CouchbaseOperations, ApplicationContextAware
ExecutableUpsertByIdOperation.ExecutableUpsertById<T>, ExecutableUpsertByIdOperation.TerminatingUpsertById<T>, ExecutableUpsertByIdOperation.UpsertByIdInCollection<T>, ExecutableUpsertByIdOperation.UpsertByIdInScope<T>, ExecutableUpsertByIdOperation.UpsertByIdWithDurability<T>, ExecutableUpsertByIdOperation.UpsertByIdWithExpiry<T>, ExecutableUpsertByIdOperation.UpsertByIdWithOptions<T>
ExecutableInsertByIdOperation.ExecutableInsertById<T>, ExecutableInsertByIdOperation.InsertByIdInCollection<T>, ExecutableInsertByIdOperation.InsertByIdInScope<T>, ExecutableInsertByIdOperation.InsertByIdWithDurability<T>, ExecutableInsertByIdOperation.InsertByIdWithExpiry<T>, ExecutableInsertByIdOperation.InsertByIdWithOptions<T>, ExecutableInsertByIdOperation.TerminatingInsertById<T>
ExecutableReplaceByIdOperation.ExecutableReplaceById<T>, ExecutableReplaceByIdOperation.ReplaceByIdInCollection<T>, ExecutableReplaceByIdOperation.ReplaceByIdInScope<T>, ExecutableReplaceByIdOperation.ReplaceByIdWithDurability<T>, ExecutableReplaceByIdOperation.ReplaceByIdWithExpiry<T>, ExecutableReplaceByIdOperation.ReplaceByIdWithOptions<T>, ExecutableReplaceByIdOperation.TerminatingReplaceById<T>
ExecutableFindByIdOperation.ExecutableFindById<T>, ExecutableFindByIdOperation.FindByIdInCollection<T>, ExecutableFindByIdOperation.FindByIdInScope<T>, ExecutableFindByIdOperation.FindByIdWithExpiry<T>, ExecutableFindByIdOperation.FindByIdWithOptions<T>, ExecutableFindByIdOperation.FindByIdWithProjection<T>, ExecutableFindByIdOperation.TerminatingFindById<T>
ExecutableFindFromReplicasByIdOperation.ExecutableFindFromReplicasById<T>, ExecutableFindFromReplicasByIdOperation.FindFromReplicasByIdInCollection<T>, ExecutableFindFromReplicasByIdOperation.FindFromReplicasByIdInScope<T>, ExecutableFindFromReplicasByIdOperation.FindFromReplicasByIdWithOptions<T>, ExecutableFindFromReplicasByIdOperation.TerminatingFindFromReplicasById<T>
ExecutableFindByQueryOperation.ExecutableFindByQuery<T>, ExecutableFindByQueryOperation.FindByQueryConsistentWith<T>, ExecutableFindByQueryOperation.FindByQueryInCollection<T>, ExecutableFindByQueryOperation.FindByQueryInScope<T>, ExecutableFindByQueryOperation.FindByQueryWithConsistency<T>, ExecutableFindByQueryOperation.FindByQueryWithDistinct<T>, ExecutableFindByQueryOperation.FindByQueryWithOptions<T>, ExecutableFindByQueryOperation.FindByQueryWithProjecting<T>, ExecutableFindByQueryOperation.FindByQueryWithProjection<T>, ExecutableFindByQueryOperation.FindByQueryWithQuery<T>, ExecutableFindByQueryOperation.TerminatingFindByQuery<T>
ExecutableFindByAnalyticsOperation.ExecutableFindByAnalytics<T>, ExecutableFindByAnalyticsOperation.FindByAnalyticsConsistentWith<T>, ExecutableFindByAnalyticsOperation.FindByAnalyticsInCollection<T>, ExecutableFindByAnalyticsOperation.FindByAnalyticsInScope<T>, ExecutableFindByAnalyticsOperation.FindByAnalyticsWithConsistency<T>, ExecutableFindByAnalyticsOperation.FindByAnalyticsWithOptions<T>, ExecutableFindByAnalyticsOperation.FindByAnalyticsWithProjection<T>, ExecutableFindByAnalyticsOperation.FindByAnalyticsWithQuery<T>, ExecutableFindByAnalyticsOperation.TerminatingFindByAnalytics<T>
ExecutableExistsByIdOperation.ExecutableExistsById, ExecutableExistsByIdOperation.ExistsByIdInCollection<T>, ExecutableExistsByIdOperation.ExistsByIdInScope<T>, ExecutableExistsByIdOperation.ExistsByIdWithOptions<T>, ExecutableExistsByIdOperation.TerminatingExistsById
ExecutableRemoveByIdOperation.ExecutableRemoveById, ExecutableRemoveByIdOperation.RemoveByIdInCollection, ExecutableRemoveByIdOperation.RemoveByIdInScope, ExecutableRemoveByIdOperation.RemoveByIdWithCas, ExecutableRemoveByIdOperation.RemoveByIdWithDurability, ExecutableRemoveByIdOperation.RemoveByIdWithOptions, ExecutableRemoveByIdOperation.TerminatingRemoveById
ExecutableRemoveByQueryOperation.ExecutableRemoveByQuery<T>, ExecutableRemoveByQueryOperation.RemoveByQueryConsistentWith<T>, ExecutableRemoveByQueryOperation.RemoveByQueryInCollection<T>, ExecutableRemoveByQueryOperation.RemoveByQueryInScope<T>, ExecutableRemoveByQueryOperation.RemoveByQueryWithConsistency<T>, ExecutableRemoveByQueryOperation.RemoveByQueryWithOptions<T>, ExecutableRemoveByQueryOperation.RemoveByQueryWithQuery<T>, ExecutableRemoveByQueryOperation.TerminatingRemoveByQuery<T>
Constructor and Description |
---|
CouchbaseTemplate(CouchbaseClientFactory clientFactory,
CouchbaseConverter converter) |
CouchbaseTemplate(CouchbaseClientFactory clientFactory,
CouchbaseConverter converter,
TranslationService translationService) |
CouchbaseTemplate(CouchbaseClientFactory clientFactory,
CouchbaseConverter converter,
TranslationService translationService,
com.couchbase.client.java.query.QueryScanConsistency scanConsistency) |
public CouchbaseTemplate(CouchbaseClientFactory clientFactory, CouchbaseConverter converter)
public CouchbaseTemplate(CouchbaseClientFactory clientFactory, CouchbaseConverter converter, TranslationService translationService)
public CouchbaseTemplate(CouchbaseClientFactory clientFactory, CouchbaseConverter converter, TranslationService translationService, com.couchbase.client.java.query.QueryScanConsistency scanConsistency)
public <T> ExecutableUpsertByIdOperation.ExecutableUpsertById<T> upsertById(Class<T> domainType)
ExecutableUpsertByIdOperation
upsertById
in interface ExecutableUpsertByIdOperation
domainType
- the entity type to upsert.public <T> ExecutableInsertByIdOperation.ExecutableInsertById<T> insertById(Class<T> domainType)
ExecutableInsertByIdOperation
insertById
in interface ExecutableInsertByIdOperation
domainType
- the entity type to insert.public <T> ExecutableReplaceByIdOperation.ExecutableReplaceById<T> replaceById(Class<T> domainType)
ExecutableReplaceByIdOperation
replaceById
in interface ExecutableReplaceByIdOperation
domainType
- the entity type to replace.public <T> ExecutableFindByIdOperation.ExecutableFindById<T> findById(Class<T> domainType)
ExecutableFindByIdOperation
findById
in interface ExecutableFindByIdOperation
domainType
- the entity type to use for the results.public <T> ExecutableFindFromReplicasByIdOperation.ExecutableFindFromReplicasById<T> findFromReplicasById(Class<T> domainType)
ExecutableFindFromReplicasByIdOperation
findFromReplicasById
in interface ExecutableFindFromReplicasByIdOperation
domainType
- the entity type to use for the results.public <T> ExecutableFindByQueryOperation.ExecutableFindByQuery<T> findByQuery(Class<T> domainType)
ExecutableFindByQueryOperation
findByQuery
in interface ExecutableFindByQueryOperation
domainType
- the entity type to use for the results.public <T> ExecutableFindByAnalyticsOperation.ExecutableFindByAnalytics<T> findByAnalytics(Class<T> domainType)
ExecutableFindByAnalyticsOperation
findByAnalytics
in interface ExecutableFindByAnalyticsOperation
domainType
- the entity type to use for the results.@Deprecated public ExecutableRemoveByIdOperation.ExecutableRemoveById removeById()
ExecutableRemoveByIdOperation
removeById
in interface ExecutableRemoveByIdOperation
public ExecutableRemoveByIdOperation.ExecutableRemoveById removeById(Class<?> domainType)
ExecutableRemoveByIdOperation
removeById
in interface ExecutableRemoveByIdOperation
@Deprecated public ExecutableExistsByIdOperation.ExecutableExistsById existsById()
ExecutableExistsByIdOperation
existsById
in interface ExecutableExistsByIdOperation
public ExecutableExistsByIdOperation.ExecutableExistsById existsById(Class<?> domainType)
ExecutableExistsByIdOperation
existsById
in interface ExecutableExistsByIdOperation
public <T> ExecutableRemoveByQueryOperation.ExecutableRemoveByQuery<T> removeByQuery(Class<T> domainType)
ExecutableRemoveByQueryOperation
removeByQuery
in interface ExecutableRemoveByQueryOperation
public String getBucketName()
CouchbaseOperations
getBucketName
in interface CouchbaseOperations
public String getScopeName()
CouchbaseOperations
getScopeName
in interface CouchbaseOperations
public CouchbaseClientFactory getCouchbaseClientFactory()
CouchbaseOperations
getCouchbaseClientFactory
in interface CouchbaseOperations
public com.couchbase.client.java.query.QueryScanConsistency getConsistency()
CouchbaseOperations
getConsistency
in interface CouchbaseOperations
public com.couchbase.client.java.Collection getCollection(String collectionName)
Collection
on the configured CouchbaseClientFactory
.collectionName
- the name of the collection, if null is passed in the default collection is assumed.public CouchbaseConverter getConverter()
CouchbaseOperations
getConverter
in interface CouchbaseOperations
public ReactiveCouchbaseTemplate reactive()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
public TemplateSupport support()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.