Class DatabaseConfiguration
java.lang.Object
ru.cg.webbpm.modules.database.impl.DatabaseConfiguration
- Author:
- Tim Urmancheev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfigurationProvider
(org.springframework.transaction.PlatformTransactionManager platformTransactionManager) connectionProvider
(org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy transactionAwareDataSourceProxy) datasource
(DataSourceFactory dataSourceFactory) dataSourceFactory
(HikariDataSourceFactory hikariDataSourceFactory) dbConfInitializer
(DataSourceFactory dataSourceFactory, org.jooq.Configuration masterConfiguration, Datasource datasource) org.jooq.DSLContext
dsl
(org.jooq.Configuration configuration) dslProvider
(org.jooq.DSLContext dsl) org.jooq.Configuration
jooqConfiguration
(org.jooq.ConnectionProvider connectionProvider, org.jooq.conf.Settings jooqSettings) org.jooq.conf.Settings
jooqSettings
(DataSourceFactory dataSourceFactory) org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy
transactionAwareDataSource
(DataSource dataSource) org.springframework.transaction.PlatformTransactionManager
txManager
(DataSourceFactory dataSourceFactory)
-
Constructor Details
-
DatabaseConfiguration
public DatabaseConfiguration()
-
-
Method Details
-
datasourceConfig
-
dataSourceFactory
@Bean(destroyMethod="destroy") public DataSourceFactory dataSourceFactory(HikariDataSourceFactory hikariDataSourceFactory) -
datasource
-
txManager
@Bean public org.springframework.transaction.PlatformTransactionManager txManager(DataSourceFactory dataSourceFactory) -
transactionAwareDataSource
@Bean @Primary public org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy transactionAwareDataSource(DataSource dataSource) -
connectionProvider
@Bean @Primary public DefaultConnectionProvider connectionProvider(org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy transactionAwareDataSourceProxy) -
jooqSettings
-
jooqConfiguration
@Bean @Primary public org.jooq.Configuration jooqConfiguration(org.jooq.ConnectionProvider connectionProvider, org.jooq.conf.Settings jooqSettings) -
dsl
@Bean @Primary public org.jooq.DSLContext dsl(org.jooq.Configuration configuration) -
configurationProvider
@Bean public ConfigurationProvider configurationProvider(org.springframework.transaction.PlatformTransactionManager platformTransactionManager) -
dslProvider
-
dbConfInitializer
@Bean public DbConfInitializer dbConfInitializer(DataSourceFactory dataSourceFactory, org.jooq.Configuration masterConfiguration, Datasource datasource)
-