Class JooqAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.jooq.JooqAutoConfiguration
@AutoConfiguration(after={DataSourceAutoConfiguration.class,TransactionAutoConfiguration.class})
@ConditionalOnClass(org.jooq.DSLContext.class)
@ConditionalOnBean(javax.sql.DataSource.class)
@EnableConfigurationProperties(JooqProperties.class)
public class JooqAutoConfiguration
extends Object
Auto-configuration
for JOOQ.- Since:
- 1.3.0
- Author:
- Andreas Ahlenstorf, Michael Simons, Dmytro Nosan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.jooq.impl.DataSourceConnectionProvider
dataSourceConnectionProvider
(DataSource dataSource) org.jooq.impl.DefaultDSLContext
dslContext
(org.jooq.Configuration configuration) org.jooq.impl.DefaultConfiguration
jooqConfiguration
(JooqProperties properties, org.jooq.ConnectionProvider connectionProvider, DataSource dataSource, ObjectProvider<org.jooq.TransactionProvider> transactionProvider, ObjectProvider<org.jooq.ExecuteListenerProvider> executeListenerProviders, ObjectProvider<DefaultConfigurationCustomizer> configurationCustomizers) org.jooq.impl.DefaultExecuteListenerProvider
jooqExceptionTranslatorExecuteListenerProvider
(ExceptionTranslatorExecuteListener exceptionTranslatorExecuteListener) transactionProvider
(PlatformTransactionManager txManager)
-
Constructor Details
-
JooqAutoConfiguration
public JooqAutoConfiguration()
-
-
Method Details
-
dataSourceConnectionProvider
@Bean @ConditionalOnMissingBean(org.jooq.ConnectionProvider.class) public org.jooq.impl.DataSourceConnectionProvider dataSourceConnectionProvider(DataSource dataSource) -
transactionProvider
@Bean @ConditionalOnBean(org.springframework.transaction.PlatformTransactionManager.class) @ConditionalOnMissingBean(org.jooq.TransactionProvider.class) public SpringTransactionProvider transactionProvider(PlatformTransactionManager txManager) -
jooqExceptionTranslatorExecuteListenerProvider
@Bean @Order(0) public org.jooq.impl.DefaultExecuteListenerProvider jooqExceptionTranslatorExecuteListenerProvider(ExceptionTranslatorExecuteListener exceptionTranslatorExecuteListener) -
jooqExceptionTranslator
-
dslContext
@Bean @ConditionalOnMissingBean(org.jooq.DSLContext.class) public org.jooq.impl.DefaultDSLContext dslContext(org.jooq.Configuration configuration) -
jooqConfiguration
@Bean @ConditionalOnMissingBean(org.jooq.Configuration.class) public org.jooq.impl.DefaultConfiguration jooqConfiguration(JooqProperties properties, org.jooq.ConnectionProvider connectionProvider, DataSource dataSource, ObjectProvider<org.jooq.TransactionProvider> transactionProvider, ObjectProvider<org.jooq.ExecuteListenerProvider> executeListenerProviders, ObjectProvider<DefaultConfigurationCustomizer> configurationCustomizers)
-