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 Details

    • R2dbcJooqConfigurationProperties

      public R2dbcJooqConfigurationProperties()
  • Method Details

    • getSqlDialect

      public SQLDialect getSqlDialect()
      SQL dialect to use. If null, will be detected automatically.
      Returns:
      SQL dialect
    • setSqlDialect

      public void setSqlDialect(SQLDialect sqlDialect)
      SQL dialect to use. Will be detected automatically by default.
      Parameters:
      sqlDialect - SQL dialect
    • isJsonConverterEnabled

      public boolean isJsonConverterEnabled()
      If enable JsonConverterProvider bean to use Jackson for JSON and JSONB types.
      Returns:
      boolean
      Since:
      4.1.0
    • setJsonConverterEnabled

      public void setJsonConverterEnabled(boolean jsonConverterEnabled)
      Set if enable JsonConverterProvider bean to use Jackson for JSON and JSONB types.
      Parameters:
      jsonConverterEnabled - Enable JSON mapping
      Since:
      4.1.0
    • determineSqlDialect

      public SQLDialect determineSqlDialect(DataSource dataSource)
      Resolve SQLDialect 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