public class JdbcRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
extends org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
implements org.springframework.context.ApplicationEventPublisherAware
FactoryBean
interface to allow easy setup of
repository factories via Spring configuration.Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected org.springframework.data.repository.core.support.RepositoryFactorySupport |
doCreateRepositoryFactory()
Creates the actual
RepositoryFactorySupport instance. |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
void |
setConverter(RelationalConverter converter) |
void |
setDataAccessStrategy(DataAccessStrategy dataAccessStrategy) |
void |
setJdbcOperations(org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations operations) |
protected void |
setMappingContext(RelationalMappingContext mappingContext) |
void |
setRowMapperMap(RowMapperMap rowMapperMap) |
createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManager
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
setApplicationEventPublisher
in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
protected org.springframework.data.repository.core.support.RepositoryFactorySupport doCreateRepositoryFactory()
RepositoryFactorySupport
instance.@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(org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations operations)
@Autowired public void setConverter(RelationalConverter converter)
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 © 2017–2018 Pivotal Software, Inc.. All rights reserved.