public class KeyValueRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
extends org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean
to create KeyValueRepository
.Constructor and Description |
---|
KeyValueRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Creates a new
KeyValueRepositoryFactoryBean for the given repository interface. |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
createRepositoryFactory() |
protected KeyValueRepositoryFactory |
createRepositoryFactory(KeyValueOperations operations,
Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator,
Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType)
Create the repository factory to be used to create repositories.
|
void |
setKeyValueOperations(KeyValueOperations operations)
Configures the
KeyValueOperations to be used for the repositories. |
void |
setMappingContext(org.springframework.data.mapping.context.MappingContext<?,?> mappingContext) |
void |
setQueryCreator(Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator)
Configures the
QueryCreatorType to be used. |
void |
setQueryType(Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType)
Configures the
RepositoryQuery type to be created. |
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass
public KeyValueRepositoryFactoryBean(Class<? extends T> repositoryInterface)
KeyValueRepositoryFactoryBean
for the given repository interface.repositoryInterface
- must not be null.public void setKeyValueOperations(KeyValueOperations operations)
KeyValueOperations
to be used for the repositories.operations
- must not be null.public void setMappingContext(org.springframework.data.mapping.context.MappingContext<?,?> mappingContext)
public void setQueryCreator(Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator)
QueryCreatorType
to be used.queryCreator
- must not be null.public void setQueryType(Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType)
RepositoryQuery
type to be created.repositoryQueryType
- must not be null.protected final org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory()
protected KeyValueRepositoryFactory createRepositoryFactory(KeyValueOperations operations, Class<? extends org.springframework.data.repository.query.parser.AbstractQueryCreator<?,?>> queryCreator, Class<? extends org.springframework.data.repository.query.RepositoryQuery> repositoryQueryType)
operations
- will never be null.queryCreator
- will never be null.repositoryQueryType
- will never be null.public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.