public class ReactiveCouchbaseRepositoryFactory
extends org.springframework.data.repository.core.support.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<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 Object |
getTargetRepository(org.springframework.data.repository.core.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 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)
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 org.springframework.data.repository.core.support.RepositoryFactorySupportmetadata - the repository metadata.protected final Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.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 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.RepositoryFactorySupportCopyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.