Class DatabaseConfiguration

java.lang.Object
ru.cg.webbpm.modules.database.impl.DatabaseConfiguration

@Configuration @Import(MetricsConfig.class) public class DatabaseConfiguration extends Object
Author:
Tim Urmancheev
  • Constructor Details

    • DatabaseConfiguration

      public DatabaseConfiguration()
  • Method Details

    • datasourceConfig

      @Bean public Datasource datasourceConfig()
    • dataSourceFactory

      @Bean(destroyMethod="destroy") public DataSourceFactory dataSourceFactory(HikariDataSourceFactory hikariDataSourceFactory)
    • datasource

      @Bean @Primary public DataSource datasource(DataSourceFactory dataSourceFactory)
    • 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

      @Bean public org.jooq.conf.Settings jooqSettings(DataSourceFactory dataSourceFactory)
    • 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

      @Bean public DslProvider dslProvider(@Qualifier("dsl") org.jooq.DSLContext dsl)
    • dbConfInitializer

      @Bean public DbConfInitializer dbConfInitializer(DataSourceFactory dataSourceFactory, org.jooq.Configuration masterConfiguration, Datasource datasource)