public class CouchbaseRepositoryFactory extends 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<QueryLookupStrategy> |
getQueryLookupStrategy(QueryLookupStrategy.Key key,
QueryMethodEvaluationContextProvider contextProvider) |
protected Class<?> |
getRepositoryBaseClass(RepositoryMetadata repositoryMetadata)
Returns the base class for the repository being constructed.
|
protected Object |
getTargetRepository(RepositoryInformation metadata)
Returns a new Repository based on the metadata.
|
void |
setBeanClassLoader(ClassLoader classLoader) |
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, 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 RepositoryFactorySupportpublic <T,ID> CouchbaseEntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation in class RepositoryFactorySupportT - the value typeID - the id type.domainClass - the class for the entity.protected final Object getTargetRepository(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 RepositoryFactorySupportmetadata - the repository metadata.protected final Class<?> getRepositoryBaseClass(RepositoryMetadata repositoryMetadata)
getRepositoryBaseClass in class RepositoryFactorySupportrepositoryMetadata - metadata for the repository.protected Optional<QueryLookupStrategy> getQueryLookupStrategy(QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider contextProvider)
getQueryLookupStrategy in class RepositoryFactorySupportCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.