public class KeyValueRepositoryFactory
extends org.springframework.data.repository.core.support.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 org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator)
Creates a new
KeyValueRepositoryFactory for the given KeyValueOperations and
AbstractQueryCreator -type. |
KeyValueRepositoryFactory(KeyValueOperations keyValueOperations,
Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator,
Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType)
Creates a new
KeyValueRepositoryFactory for the given KeyValueOperations and
AbstractQueryCreator -type. |
Modifier and Type | Method and Description |
---|---|
<T,ID extends Serializable> |
getEntityInformation(Class<T> domainClass) |
protected org.springframework.data.repository.query.QueryLookupStrategy |
getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key,
org.springframework.data.repository.query.EvaluationContextProvider evaluationContextProvider) |
protected Class<?> |
getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata) |
protected Object |
getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation) |
addQueryCreationListener, addRepositoryProxyPostProcessor, getQueryLookupStrategy, getQueryMethods, getRepository, getRepository, getRepositoryInformation, getRepositoryMetadata, getTargetRepositoryViaReflection, 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 org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator)
KeyValueRepositoryFactory
for the given KeyValueOperations
and
AbstractQueryCreator
-type.keyValueOperations
- must not be null.queryCreator
- defaulted to DEFAULT_QUERY_CREATOR
if null.public KeyValueRepositoryFactory(KeyValueOperations keyValueOperations, Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator, Class<? extends org.springframework.data.repository.query.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 extends Serializable> org.springframework.data.repository.core.EntityInformation<T,ID> getEntityInformation(Class<T> domainClass)
getEntityInformation
in class org.springframework.data.repository.core.support.RepositoryFactorySupport
protected Object getTargetRepository(org.springframework.data.repository.core.RepositoryInformation repositoryInformation)
getTargetRepository
in class org.springframework.data.repository.core.support.RepositoryFactorySupport
protected Class<?> getRepositoryBaseClass(org.springframework.data.repository.core.RepositoryMetadata metadata)
getRepositoryBaseClass
in class org.springframework.data.repository.core.support.RepositoryFactorySupport
protected org.springframework.data.repository.query.QueryLookupStrategy getQueryLookupStrategy(org.springframework.data.repository.query.QueryLookupStrategy.Key key, org.springframework.data.repository.query.EvaluationContextProvider evaluationContextProvider)
getQueryLookupStrategy
in class org.springframework.data.repository.core.support.RepositoryFactorySupport
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.