public class ReactiveCouchbaseRepositoryFactory extends ReactiveRepositoryFactorySupport
| Constructor and Description |
|---|
ReactiveCouchbaseRepositoryFactory(ReactiveRepositoryOperationsMapping 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) |
setEvaluationContextProvider, validateaddInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanFactory, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClasspublic ReactiveCouchbaseRepositoryFactory(ReactiveRepositoryOperationsMapping 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)
SimpleReactiveCouchbaseRepository. 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)
SimpleReactiveCouchbaseRepository and. This method checks if N1QL is available to choose between
the two, but the actual concrete class is determined respectively by. Override these methods if you want to change
the base class for all your repositories.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.