public class JdbcRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable> extends TransactionalRepositoryFactoryBeanSupport<T,S,ID> implements ApplicationEventPublisherAware
FactoryBean
interface to allow easy setup of
repository factories via Spring configuration.OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
JdbcRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Creates a new
JdbcRepositoryFactoryBean for the given repository interface. |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected RepositoryFactorySupport |
doCreateRepositoryFactory()
Creates the actual
RepositoryFactorySupport instance. |
void |
setApplicationEventPublisher(ApplicationEventPublisher publisher) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setConverter(JdbcConverter converter) |
void |
setDataAccessStrategy(DataAccessStrategy dataAccessStrategy) |
protected void |
setDialect(Dialect dialect) |
void |
setJdbcOperations(NamedParameterJdbcOperations operations) |
protected void |
setMappingContext(RelationalMappingContext mappingContext) |
void |
setQueryMappingConfiguration(QueryMappingConfiguration queryMappingConfiguration) |
void |
setRowMapperMap(RowMapperMap rowMapperMap)
Deprecated.
|
createRepositoryFactory, setEnableDefaultTransactions, setTransactionManager
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
protected JdbcRepositoryFactoryBean(Class<? extends T> repositoryInterface)
JdbcRepositoryFactoryBean
for the given repository interface.repositoryInterface
- must not be null.public void setApplicationEventPublisher(ApplicationEventPublisher publisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
setApplicationEventPublisher
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
protected RepositoryFactorySupport doCreateRepositoryFactory()
RepositoryFactorySupport
instance.doCreateRepositoryFactory
in class TransactionalRepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
@Autowired protected void setMappingContext(RelationalMappingContext mappingContext)
@Autowired protected void setDialect(Dialect dialect)
public void setDataAccessStrategy(DataAccessStrategy dataAccessStrategy)
dataAccessStrategy
- can be null.@Autowired(required=false) public void setQueryMappingConfiguration(QueryMappingConfiguration queryMappingConfiguration)
queryMappingConfiguration
- can be null. afterPropertiesSet()
defaults to
QueryMappingConfiguration.EMPTY
if null.@Deprecated @Autowired(required=false) public void setRowMapperMap(RowMapperMap rowMapperMap)
setQueryMappingConfiguration(QueryMappingConfiguration)
instead.rowMapperMap
- can be null. afterPropertiesSet()
defaults to RowMapperMap.EMPTY
if
null.public void setJdbcOperations(NamedParameterJdbcOperations operations)
@Autowired public void setConverter(JdbcConverter converter)
public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory
in interface BeanFactoryAware
setBeanFactory
in class TransactionalRepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.