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) |
createRepositoryFactory, setEnableDefaultTransactions, setTransactionManageraddRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentsprotected JdbcRepositoryFactoryBean(Class<? extends T> repositoryInterface)
JdbcRepositoryFactoryBean for the given repository interface.repositoryInterface - must not be null.public 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 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.public void setJdbcOperations(NamedParameterJdbcOperations operations)
@Autowired public void setConverter(JdbcConverter converter)
public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory in interface BeanFactoryAwaresetBeanFactory in class TransactionalRepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.