public class CouchbaseRepositoryFactory
extends org.springframework.data.repository.core.support.RepositoryFactorySupport
SimpleCouchbaseRepository instances.| Constructor and Description |
|---|
CouchbaseRepositoryFactory(RepositoryOperationsMapping couchbaseOperationsMapping)
Create a new factory.
|
| Modifier and Type | Method and Description |
|---|---|
<T,ID> CouchbaseEntityInformation<T,ID> |
getEntityInformation(Class<T> domainClass)
Returns entity information based on the domain class.
|
protected Optional<org.springframework.data.repository.query.QueryLookupStrategy> |
getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key,
org.springframework.data.repository.query.QueryMethodEvaluationContextProvider contextProvider) |
protected Class<?> |
getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata)
Returns the base class for the repository being constructed.
|
protected org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments |
getRepositoryFragments(org.springframework.data.repository.core.RepositoryMetadata metadata) |
protected org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments |
getRepositoryFragments(org.springframework.data.repository.core.RepositoryMetadata metadata,
CouchbaseOperations operations)
Creates
RepositoryComposition.RepositoryFragments based on RepositoryMetadata to add
Couchbase-specific extensions. |
protected Object |
getTargetRepository(org.springframework.data.repository.core.RepositoryInformation metadata)
Returns a new Repository based on the metadata.
|
void |
setBeanClassLoader(ClassLoader classLoader) |
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validatepublic CouchbaseRepositoryFactory(RepositoryOperationsMapping couchbaseOperationsMapping)
couchbaseOperationsMapping - the template for the underlying actions.public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface BeanClassLoaderAwaresetBeanClassLoader in class org.springframework.data.repository.core.support.RepositoryFactorySupportpublic <T,ID> CouchbaseEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation in class org.springframework.data.repository.core.support.RepositoryFactorySupportT - the value typeID - the id type.domainClass - the class for the entity.protected final Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation metadata)
SimpleCouchbaseRepository. This method performs feature checks to decide which of the two categories can be
instantiated (eg. is N1QL available?). Instantiation is done via reflection, see
getRepositoryBaseClass(RepositoryMetadata).getTargetRepository in class org.springframework.data.repository.core.support.RepositoryFactorySupportmetadata - the repository metadata.protected final Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata repositoryMetadata)
getRepositoryBaseClass in class org.springframework.data.repository.core.support.RepositoryFactorySupportrepositoryMetadata - metadata for the repository.protected Optional<org.springframework.data.repository.query.QueryLookupStrategy> getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.QueryMethodEvaluationContextProvider contextProvider)
getQueryLookupStrategy in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments getRepositoryFragments(org.springframework.data.repository.core.RepositoryMetadata metadata)
getRepositoryFragments in class org.springframework.data.repository.core.support.RepositoryFactorySupportprotected org.springframework.data.repository.core.support.RepositoryComposition.RepositoryFragments getRepositoryFragments(org.springframework.data.repository.core.RepositoryMetadata metadata,
CouchbaseOperations operations)
RepositoryComposition.RepositoryFragments based on RepositoryMetadata to add
Couchbase-specific extensions. Typically adds a QuerydslCouchbasePredicateExecutor if the repository
interface uses Querydsl.
Can be overridden by subclasses to customize RepositoryComposition.RepositoryFragments.
metadata - repository metadata.operations - the Couchbase operations manager.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.