Package io.micronaut.configuration.jooq
Class R2dbcJooqConfigurationProperties
java.lang.Object
io.micronaut.configuration.jooq.R2dbcJooqConfigurationProperties
@Requires(classes=io.r2dbc.spi.ConnectionFactory.class)
@EachProperty("jooq.r2dbc-datasources")
public final class R2dbcJooqConfigurationProperties
extends Object
R2DBC configuration for jOOQ.
- Since:
- 4.5.0
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondetermineSqlDialect
(DataSource dataSource) ResolveSQLDialect
to be used for the data source.SQL dialect to use.boolean
If enableJsonConverterProvider
bean to use Jackson for JSON and JSONB types.void
setJsonConverterEnabled
(boolean jsonConverterEnabled) Set if enableJsonConverterProvider
bean to use Jackson for JSON and JSONB types.void
setSqlDialect
(SQLDialect sqlDialect) SQL dialect to use.
-
Constructor Details
-
R2dbcJooqConfigurationProperties
public R2dbcJooqConfigurationProperties()
-
-
Method Details
-
getSqlDialect
SQL dialect to use. Ifnull
, will be detected automatically.- Returns:
- SQL dialect
-
setSqlDialect
SQL dialect to use. Will be detected automatically by default.- Parameters:
sqlDialect
- SQL dialect
-
isJsonConverterEnabled
public boolean isJsonConverterEnabled()If enableJsonConverterProvider
bean to use Jackson for JSON and JSONB types.- Returns:
- boolean
- Since:
- 4.1.0
-
setJsonConverterEnabled
public void setJsonConverterEnabled(boolean jsonConverterEnabled) Set if enableJsonConverterProvider
bean to use Jackson for JSON and JSONB types.- Parameters:
jsonConverterEnabled
- Enable JSON mapping- Since:
- 4.1.0
-
determineSqlDialect
ResolveSQLDialect
to be used for the data source. If SQL dialect is not set explicitly, automatic detection will be done.- Parameters:
dataSource
- data source for automatic detection- Returns:
- Effective SQL dialect
-