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.| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected RepositoryFactorySupport |
doCreateRepositoryFactory()
Creates the actual
RepositoryFactorySupport instance. |
void |
setApplicationEventPublisher(ApplicationEventPublisher publisher) |
void |
setConverter(RelationalConverter converter) |
void |
setDataAccessStrategy(DataAccessStrategy dataAccessStrategy) |
void |
setJdbcOperations(NamedParameterJdbcOperations operations) |
protected void |
setMappingContext(RelationalMappingContext mappingContext) |
void |
setRowMapperMap(RowMapperMap rowMapperMap) |
createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManagergetEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentspublic void setApplicationEventPublisher(ApplicationEventPublisher publisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAwaresetApplicationEventPublisher 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(required=false) public void setDataAccessStrategy(DataAccessStrategy dataAccessStrategy)
dataAccessStrategy - can be null.@Autowired(required=false) public void setRowMapperMap(RowMapperMap rowMapperMap)
rowMapperMap - can be null. afterPropertiesSet() defaults to RowMapperMap.EMPTY if
null.@Autowired public void setJdbcOperations(NamedParameterJdbcOperations operations)
@Autowired public void setConverter(RelationalConverter converter)
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>Copyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.