@Factory
public class JooqConfigurationFactory
extends java.lang.Object
| Constructor and Description |
|---|
JooqConfigurationFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.jooq.DSLContext |
dslContext(org.jooq.Configuration configuration)
Created
DSLContext based on Configuration. |
org.jooq.Configuration |
jooqConfiguration(java.lang.String name,
javax.sql.DataSource dataSource,
org.jooq.TransactionProvider transactionProvider,
org.jooq.conf.Settings settings,
org.jooq.ExecutorProvider executorProvider,
org.jooq.RecordMapperProvider recordMapperProvider,
org.jooq.RecordUnmapperProvider recordUnmapperProvider,
org.jooq.MetaProvider metaProvider,
io.micronaut.context.ApplicationContext ctx)
Creates jOOQ
Configuration. |
@EachBean(value=javax.sql.DataSource.class)
public org.jooq.Configuration jooqConfiguration(@Parameter
java.lang.String name,
javax.sql.DataSource dataSource,
@Parameter @Nullable
org.jooq.TransactionProvider transactionProvider,
@Parameter @Nullable
org.jooq.conf.Settings settings,
@Parameter @Nullable
org.jooq.ExecutorProvider executorProvider,
@Parameter @Nullable
org.jooq.RecordMapperProvider recordMapperProvider,
@Parameter @Nullable
org.jooq.RecordUnmapperProvider recordUnmapperProvider,
@Parameter @Nullable
org.jooq.MetaProvider metaProvider,
io.micronaut.context.ApplicationContext ctx)
Configuration.
It will configure it with available jOOQ provider beans with the same qualifier.name - The data source namedataSource - The DataSourcetransactionProvider - The transaction providersettings - The settingsexecutorProvider - The executor providerrecordMapperProvider - The record mapper providerrecordUnmapperProvider - The record unmapper providermetaProvider - The metadata providerctx - The ApplicationContextConfiguration@EachBean(value=org.jooq.Configuration.class) public org.jooq.DSLContext dslContext(org.jooq.Configuration configuration)
DSLContext based on Configuration.configuration - The ConfigurationDSLContext