public class KeyValueRepositoryFactory extends RepositoryFactorySupport
RepositoryFactorySupport
specific of handing
KeyValueRepository
.Constructor and Description |
---|
KeyValueRepositoryFactory(KeyValueOperations keyValueOperations)
Creates a new
KeyValueRepositoryFactory for the given KeyValueOperations . |
KeyValueRepositoryFactory(KeyValueOperations keyValueOperations,
Class<? extends AbstractQueryCreator<?,?>> queryCreator)
Creates a new
KeyValueRepositoryFactory for the given KeyValueOperations and
AbstractQueryCreator -type. |
KeyValueRepositoryFactory(KeyValueOperations keyValueOperations,
Class<? extends AbstractQueryCreator<?,?>> queryCreator,
Class<? extends RepositoryQuery> repositoryQueryType)
Creates a new
KeyValueRepositoryFactory for the given KeyValueOperations and
AbstractQueryCreator -type. |
Modifier and Type | Method and Description |
---|---|
<T,ID> EntityInformation<T,ID> |
getEntityInformation(Class<T> domainClass) |
protected Optional<QueryLookupStrategy> |
getQueryLookupStrategy(QueryLookupStrategy.Key key,
QueryMethodEvaluationContextProvider evaluationContextProvider) |
protected Class<?> |
getRepositoryBaseClass(RepositoryMetadata metadata) |
protected Object |
getTargetRepository(RepositoryInformation repositoryInformation) |
addInvocationListener, addQueryCreationListener, addRepositoryProxyPostProcessor, getProjectionFactory, getQueryMethods, getRepository, getRepository, getRepository, getRepositoryFragments, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, getTargetRepositoryViaReflection, instantiateClass, setBeanClassLoader, setBeanFactory, setEvaluationContextProvider, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, validate
public KeyValueRepositoryFactory(KeyValueOperations keyValueOperations)
KeyValueRepositoryFactory
for the given KeyValueOperations
.keyValueOperations
- must not be null.public KeyValueRepositoryFactory(KeyValueOperations keyValueOperations, Class<? extends AbstractQueryCreator<?,?>> queryCreator)
KeyValueRepositoryFactory
for the given KeyValueOperations
and
AbstractQueryCreator
-type.keyValueOperations
- must not be null.queryCreator
- must not be null.public KeyValueRepositoryFactory(KeyValueOperations keyValueOperations, Class<? extends AbstractQueryCreator<?,?>> queryCreator, Class<? extends RepositoryQuery> repositoryQueryType)
KeyValueRepositoryFactory
for the given KeyValueOperations
and
AbstractQueryCreator
-type.keyValueOperations
- must not be null.queryCreator
- must not be null.repositoryQueryType
- must not be null.public <T,ID> EntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation
in class RepositoryFactorySupport
protected Object getTargetRepository(RepositoryInformation repositoryInformation)
getTargetRepository
in class RepositoryFactorySupport
protected Class<?> getRepositoryBaseClass(RepositoryMetadata metadata)
getRepositoryBaseClass
in class RepositoryFactorySupport
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable QueryLookupStrategy.Key key, QueryMethodEvaluationContextProvider evaluationContextProvider)
getQueryLookupStrategy
in class RepositoryFactorySupport
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.