public class KeyValueRepositoryFactoryBean<T extends Repository<S,ID>,S,ID> extends RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean to create KeyValueRepository.OBJECT_TYPE_ATTRIBUTE| 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 RepositoryFactorySupport |
createRepositoryFactory() |
protected KeyValueRepositoryFactory |
createRepositoryFactory(KeyValueOperations operations,
Class<? extends AbstractQueryCreator<?,?>> queryCreator,
Class<? extends 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(MappingContext<?,?> mappingContext) |
void |
setQueryCreator(Class<? extends AbstractQueryCreator<?,?>> queryCreator)
Configures the
QueryCreatorType to be used. |
void |
setQueryType(Class<? extends RepositoryQuery> repositoryQueryType)
Configures the
RepositoryQuery type to be created. |
addRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentspublic 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(MappingContext<?,?> mappingContext)
setMappingContext in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID>public void setQueryCreator(Class<? extends AbstractQueryCreator<?,?>> queryCreator)
QueryCreatorType to be used.queryCreator - must not be null.public void setQueryType(Class<? extends RepositoryQuery> repositoryQueryType)
RepositoryQuery type to be created.repositoryQueryType - must not be null.protected final RepositoryFactorySupport createRepositoryFactory()
createRepositoryFactory in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID>protected KeyValueRepositoryFactory createRepositoryFactory(KeyValueOperations operations, Class<? extends AbstractQueryCreator<?,?>> queryCreator, Class<? extends RepositoryQuery> repositoryQueryType)
operations - will never be null.queryCreator - will never be null.repositoryQueryType - will never be null.public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID>Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.