@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=JpaProperties.class) @Import(value=org.springframework.boot.autoconfigure.orm.jpa.DataSourceInitializedPublisher.Registrar.class) public abstract class JpaBaseConfiguration extends ObjectSE implements org.springframework.beans.factory.BeanFactoryAware
Auto-configuration。| 修飾子と型 | クラスと説明 |
|---|---|
protected static class | JpaBaseConfiguration.JpaWebConfiguration |
| 修飾子 | コンストラクターと説明 |
|---|---|
protected | JpaBaseConfiguration(DataSourceSE dataSource, JpaProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.transaction.jta.JtaTransactionManager> jtaTransactionManager) |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected abstract org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter | createJpaVendorAdapter() |
protected void | customizeVendorProperties(MapSE<StringSE, ObjectSE> vendorProperties) ベンダープロパティを使用する前にカスタマイズします。 |
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean | entityManagerFactory(EntityManagerFactoryBuilder factoryBuilder) |
EntityManagerFactoryBuilder | entityManagerFactoryBuilder(org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter, org.springframework.beans.factory.ObjectProvider<org.springframework.orm.jpa.persistenceunit.PersistenceUnitManager> persistenceUnitManager, org.springframework.beans.factory.ObjectProvider<EntityManagerFactoryBuilderCustomizer> customizers) |
protected DataSourceSE | getDataSource()DataSourceSE を返します。 |
protected org.springframework.transaction.jta.JtaTransactionManager | getJtaTransactionManager()JTA トランザクションマネージャーを返します。 |
protected StringSE[] | getPackagesToScan() |
protected JpaProperties | getProperties()JpaProperties を返します。 |
protected abstract MapSE<StringSE, ObjectSE> | getVendorProperties() |
protected boolean | isJta()JTA PlatformTransactionManager が使用されているかどうかを返します。 |
org.springframework.orm.jpa.JpaVendorAdapter | jpaVendorAdapter() |
void | setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
org.springframework.transaction.PlatformTransactionManager | transactionManager(org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected JpaBaseConfiguration(DataSourceSE dataSource, JpaProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.transaction.jta.JtaTransactionManager> jtaTransactionManager)
@Bean @ConditionalOnMissingBean public org.springframework.transaction.PlatformTransactionManager transactionManager(org.springframework.beans.factory.ObjectProvider<TransactionManagerCustomizers> transactionManagerCustomizers)
@Bean @ConditionalOnMissingBean public org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter()
@Bean @ConditionalOnMissingBean public EntityManagerFactoryBuilder entityManagerFactoryBuilder(org.springframework.orm.jpa.JpaVendorAdapter jpaVendorAdapter, org.springframework.beans.factory.ObjectProvider<org.springframework.orm.jpa.persistenceunit.PersistenceUnitManager> persistenceUnitManager, org.springframework.beans.factory.ObjectProvider<EntityManagerFactoryBuilderCustomizer> customizers)
@Bean @Primary @ConditionalOnMissingBean(value={org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.class,javax.persistence.EntityManagerFactory.classEE}) public org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean entityManagerFactory(EntityManagerFactoryBuilder factoryBuilder)
protected abstract org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter createJpaVendorAdapter()
protected void customizeVendorProperties(MapSE<StringSE,ObjectSE> vendorProperties)
vendorProperties - カスタマイズするベンダープロパティ protected StringSE[] getPackagesToScan()
protected org.springframework.transaction.jta.JtaTransactionManager getJtaTransactionManager()
nullprotected final boolean isJta()
PlatformTransactionManager が使用されているかどうかを返します。protected final JpaProperties getProperties()
JpaProperties を返します。protected final DataSourceSE getDataSource()
DataSourceSE を返します。public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansExceptionorg.springframework.beans.factory.BeanFactoryAware 内の setBeanFactory org.springframework.beans.BeansExceptionCopyright © 2019 Pivotal Software, Inc.. All rights reserved.