public class CouchbaseTemplate extends Object implements CouchbaseOperations, ApplicationContextAware
ExecutableUpsertByIdOperation.ExecutableUpsertById<T>, ExecutableUpsertByIdOperation.TerminatingUpsertById<T>, ExecutableUpsertByIdOperation.UpsertByIdWithCollection<T>, ExecutableUpsertByIdOperation.UpsertByIdWithDurability<T>
ExecutableInsertByIdOperation.ExecutableInsertById<T>, ExecutableInsertByIdOperation.InsertByIdWithCollection<T>, ExecutableInsertByIdOperation.InsertByIdWithDurability<T>, ExecutableInsertByIdOperation.TerminatingInsertById<T>
ExecutableReplaceByIdOperation.ExecutableReplaceById<T>, ExecutableReplaceByIdOperation.ReplaceByIdWithCollection<T>, ExecutableReplaceByIdOperation.ReplaceByIdWithDurability<T>, ExecutableReplaceByIdOperation.TerminatingReplaceById<T>
ExecutableFindByIdOperation.ExecutableFindById<T>, ExecutableFindByIdOperation.FindByIdWithCollection<T>, ExecutableFindByIdOperation.FindByIdWithProjection<T>, ExecutableFindByIdOperation.TerminatingFindById<T>
ExecutableFindFromReplicasByIdOperation.ExecutableFindFromReplicasById<T>, ExecutableFindFromReplicasByIdOperation.FindFromReplicasByIdWithCollection<T>, ExecutableFindFromReplicasByIdOperation.TerminatingFindFromReplicasById<T>
ExecutableFindByQueryOperation.ExecutableFindByQuery<T>, ExecutableFindByQueryOperation.FindByQueryConsistentWith<T>, ExecutableFindByQueryOperation.FindByQueryWithQuery<T>, ExecutableFindByQueryOperation.TerminatingFindByQuery<T>
ExecutableFindByAnalyticsOperation.ExecutableFindByAnalytics<T>, ExecutableFindByAnalyticsOperation.FindByAnalyticsWithQuery<T>, ExecutableFindByAnalyticsOperation.TerminatingFindByAnalytics<T>
ExecutableExistsByIdOperation.ExecutableExistsById, ExecutableExistsByIdOperation.ExistsByIdWithCollection, ExecutableExistsByIdOperation.TerminatingExistsById
ExecutableRemoveByIdOperation.ExecutableRemoveById, ExecutableRemoveByIdOperation.RemoveByIdWithCollection, ExecutableRemoveByIdOperation.RemoveByIdWithDurability, ExecutableRemoveByIdOperation.TerminatingRemoveById
ExecutableRemoveByQueryOperation.ExecutableRemoveByQuery<T>, ExecutableRemoveByQueryOperation.RemoveByQueryConsistentWith<T>, ExecutableRemoveByQueryOperation.RemoveByQueryWithQuery<T>, ExecutableRemoveByQueryOperation.TerminatingRemoveByQuery<T>
Constructor and Description |
---|
CouchbaseTemplate(CouchbaseClientFactory clientFactory,
CouchbaseConverter converter) |
public CouchbaseTemplate(CouchbaseClientFactory clientFactory, CouchbaseConverter converter)
public <T> ExecutableUpsertByIdOperation.ExecutableUpsertById<T> upsertById(Class<T> domainType)
upsertById
in interface ExecutableUpsertByIdOperation
public <T> ExecutableInsertByIdOperation.ExecutableInsertById<T> insertById(Class<T> domainType)
insertById
in interface ExecutableInsertByIdOperation
public <T> ExecutableReplaceByIdOperation.ExecutableReplaceById<T> replaceById(Class<T> domainType)
replaceById
in interface ExecutableReplaceByIdOperation
public <T> ExecutableFindByIdOperation.ExecutableFindById<T> findById(Class<T> domainType)
findById
in interface ExecutableFindByIdOperation
public <T> ExecutableFindFromReplicasByIdOperation.ExecutableFindFromReplicasById<T> findFromReplicasById(Class<T> domainType)
findFromReplicasById
in interface ExecutableFindFromReplicasByIdOperation
public <T> ExecutableFindByQueryOperation.ExecutableFindByQuery<T> findByQuery(Class<T> domainType)
findByQuery
in interface ExecutableFindByQueryOperation
public <T> ExecutableFindByAnalyticsOperation.ExecutableFindByAnalytics<T> findByAnalytics(Class<T> domainType)
findByAnalytics
in interface ExecutableFindByAnalyticsOperation
public ExecutableRemoveByIdOperation.ExecutableRemoveById removeById()
removeById
in interface ExecutableRemoveByIdOperation
public ExecutableExistsByIdOperation.ExecutableExistsById existsById()
existsById
in interface ExecutableExistsByIdOperation
public <T> ExecutableRemoveByQueryOperation.ExecutableRemoveByQuery<T> removeByQuery(Class<T> domainType)
removeByQuery
in interface ExecutableRemoveByQueryOperation
public String getBucketName()
getBucketName
in interface CouchbaseOperations
public String getScopeName()
getScopeName
in interface CouchbaseOperations
public CouchbaseClientFactory getCouchbaseClientFactory()
getCouchbaseClientFactory
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()
getConverter
in interface CouchbaseOperations
public ReactiveCouchbaseTemplate reactive()
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.