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.TerminatingExistsByIdExecutableRemoveByIdOperation.ExecutableRemoveById, ExecutableRemoveByIdOperation.RemoveByIdInCollection, ExecutableRemoveByIdOperation.RemoveByIdInScope, ExecutableRemoveByIdOperation.RemoveByIdWithCas, ExecutableRemoveByIdOperation.RemoveByIdWithDurability, ExecutableRemoveByIdOperation.RemoveByIdWithOptions, ExecutableRemoveByIdOperation.TerminatingRemoveByIdExecutableRemoveByQueryOperation.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)
ExecutableUpsertByIdOperationupsertById in interface ExecutableUpsertByIdOperationdomainType - the entity type to upsert.public <T> ExecutableInsertByIdOperation.ExecutableInsertById<T> insertById(Class<T> domainType)
ExecutableInsertByIdOperationinsertById in interface ExecutableInsertByIdOperationdomainType - the entity type to insert.public <T> ExecutableReplaceByIdOperation.ExecutableReplaceById<T> replaceById(Class<T> domainType)
ExecutableReplaceByIdOperationreplaceById in interface ExecutableReplaceByIdOperationdomainType - the entity type to replace.public <T> ExecutableFindByIdOperation.ExecutableFindById<T> findById(Class<T> domainType)
ExecutableFindByIdOperationfindById in interface ExecutableFindByIdOperationdomainType - the entity type to use for the results.public <T> ExecutableFindFromReplicasByIdOperation.ExecutableFindFromReplicasById<T> findFromReplicasById(Class<T> domainType)
ExecutableFindFromReplicasByIdOperationfindFromReplicasById in interface ExecutableFindFromReplicasByIdOperationdomainType - the entity type to use for the results.public <T> ExecutableFindByQueryOperation.ExecutableFindByQuery<T> findByQuery(Class<T> domainType)
ExecutableFindByQueryOperationfindByQuery in interface ExecutableFindByQueryOperationdomainType - the entity type to use for the results.public <T> ExecutableFindByAnalyticsOperation.ExecutableFindByAnalytics<T> findByAnalytics(Class<T> domainType)
ExecutableFindByAnalyticsOperationfindByAnalytics in interface ExecutableFindByAnalyticsOperationdomainType - the entity type to use for the results.@Deprecated public ExecutableRemoveByIdOperation.ExecutableRemoveById removeById()
ExecutableRemoveByIdOperationremoveById in interface ExecutableRemoveByIdOperationpublic ExecutableRemoveByIdOperation.ExecutableRemoveById removeById(Class<?> domainType)
ExecutableRemoveByIdOperationremoveById in interface ExecutableRemoveByIdOperation@Deprecated public ExecutableExistsByIdOperation.ExecutableExistsById existsById()
ExecutableExistsByIdOperationexistsById in interface ExecutableExistsByIdOperationpublic ExecutableExistsByIdOperation.ExecutableExistsById existsById(Class<?> domainType)
ExecutableExistsByIdOperationexistsById in interface ExecutableExistsByIdOperationpublic <T> ExecutableRemoveByQueryOperation.ExecutableRemoveByQuery<T> removeByQuery(Class<T> domainType)
ExecutableRemoveByQueryOperationremoveByQuery in interface ExecutableRemoveByQueryOperationpublic String getBucketName()
CouchbaseOperationsgetBucketName in interface CouchbaseOperationspublic String getScopeName()
CouchbaseOperationsgetScopeName in interface CouchbaseOperationspublic CouchbaseClientFactory getCouchbaseClientFactory()
CouchbaseOperationsgetCouchbaseClientFactory in interface CouchbaseOperationspublic com.couchbase.client.java.query.QueryScanConsistency getConsistency()
CouchbaseOperationsgetConsistency in interface CouchbaseOperationspublic 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()
CouchbaseOperationsgetConverter in interface CouchbaseOperationspublic ReactiveCouchbaseTemplate reactive()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic TemplateSupport support()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.