@Factory public class JooqConfigurationFactory extends Object
Constructor and Description |
---|
JooqConfigurationFactory() |
Modifier and Type | Method and Description |
---|---|
DSLContext |
dslContext(Configuration configuration)
Created
DSLContext based on Configuration |
Configuration |
jooqConfiguration(String name,
DataSource dataSource,
TransactionProvider transactionProvider,
Settings settings,
ExecutorProvider executorProvider,
RecordMapperProvider recordMapperProvider,
RecordUnmapperProvider recordUnmapperProvider,
MetaProvider metaProvider,
io.micronaut.context.ApplicationContext ctx)
Creates jOOQ
Configuration . |
@EachBean(value=javax.sql.DataSource.class) public Configuration jooqConfiguration(@Parameter String name, DataSource dataSource, @Parameter @Nullable TransactionProvider transactionProvider, @Parameter @Nullable Settings settings, @Parameter @Nullable ExecutorProvider executorProvider, @Parameter @Nullable RecordMapperProvider recordMapperProvider, @Parameter @Nullable RecordUnmapperProvider recordUnmapperProvider, @Parameter @Nullable 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 DataSource
transactionProvider
- The transaction providersettings
- The settingsexecutorProvider
- The executor providerrecordMapperProvider
- The record mapper providerrecordUnmapperProvider
- The record unmapper providermetaProvider
- The metadata providerctx
- The ApplicationContext
Configuration
@EachBean(value=org.jooq.Configuration.class) public DSLContext dslContext(Configuration configuration)
DSLContext
based on Configuration
configuration
- The Configuration
DSLContext