Class CouchbaseRepositoryBase<T,ID>
java.lang.Object
org.springframework.data.couchbase.repository.support.CouchbaseRepositoryBase<T,ID>
- Type Parameters:
T
-ID
-
- Direct Known Subclasses:
SimpleCouchbaseRepository
,SimpleReactiveCouchbaseRepository
Common base for SimpleCouchbaseRepository and SimpleReactiveCouchbaseRepository
- Author:
- Michael Reiche
-
Constructor Summary
ConstructorDescriptionCouchbaseRepositoryBase
(CouchbaseEntityInformation<T, String> entityInformation, Class<?> repositoryInterface) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Get the Collection from
1.Returns the information for the underlying template.protected abstract ReactiveCouchbaseTemplate
Class<?>
protected String
getScope()
Get the Scope from
1.
-
Constructor Details
-
CouchbaseRepositoryBase
public CouchbaseRepositoryBase(CouchbaseEntityInformation<T, String> entityInformation, Class<?> repositoryInterface)
-
-
Method Details
-
getRepositoryInterface
-
getEntityInformation
Returns the information for the underlying template.- Returns:
- the underlying entity information.
-
getScope
Get the Scope from
1. The repository
2. The entity
3. otherwise null
This can be overriden in the operation method by
1. repository.withCollection() 2. Annotation on the method -
getCollection
Get the Collection from
1. The repository
2. The entity
3. otherwise null
This can be overriden in the operation method by
1. repository.withCollection() -
getReactiveTemplate
-