Class DataR2dbcConfiguration

java.lang.Object
io.micronaut.data.r2dbc.config.DataR2dbcConfiguration
All Implemented Interfaces:
io.micronaut.core.naming.Named

@EachProperty(value="r2dbc.datasources", primary="default") public class DataR2dbcConfiguration extends Object implements io.micronaut.core.naming.Named
Configuration for Schema generation.
Since:
1.0.0
Author:
graemerocher
  • Constructor Details

    • DataR2dbcConfiguration

      public DataR2dbcConfiguration(@Parameter String name, @Parameter io.r2dbc.spi.ConnectionFactory connectionFactory, @Parameter jakarta.inject.Provider<R2dbcOperations> r2dbcOperations)
      The configuration.
      Parameters:
      name - The configuration name
      connectionFactory - The connection factory
      r2dbcOperations - The operations
  • Method Details

    • getR2dbcOperations

      public R2dbcOperations getR2dbcOperations()
      Returns:
      The R2DBC operations.
    • getConnectionFactory

      public io.r2dbc.spi.ConnectionFactory getConnectionFactory()
      Returns:
      The connection factory.
    • getSchemaGenerate

      public SchemaGenerate getSchemaGenerate()
      Returns:
      The schema generation strategy.
    • setSchemaGenerate

      public void setSchemaGenerate(SchemaGenerate schemaGenerate)
      Sets the schema generation strategy.
      Parameters:
      schemaGenerate - The schema generation strategy.
    • isBatchGenerate

      public boolean isBatchGenerate()
      Returns:
      Whether to generate tables in batch.
    • setBatchGenerate

      public void setBatchGenerate(boolean batchGenerate)
      Parameters:
      batchGenerate - Whether to generate tables in batch.
    • getPackages

      public List<String> getPackages()
      Returns:
      The packages to include use for the purposes of schema generation.
    • setPackages

      public void setPackages(List<String> packages)
      Sets the packages to include use for the purposes of schema generation.
      Parameters:
      packages - The packages
    • getDialect

      public Dialect getDialect()
      Returns:
      The dialect to use.
    • setDialect

      public void setDialect(Dialect dialect)
      Sets the dialect.
      Parameters:
      dialect - The dialect
    • getName

      @NonNull public @NonNull String getName()
      Specified by:
      getName in interface io.micronaut.core.naming.Named
    • getSchemaGenerateName

      @Nullable public @Nullable String getSchemaGenerateName()
      Returns:
      The schema name that should be used for generating
    • setSchemaGenerateName

      public void setSchemaGenerateName(@Nullable @Nullable String schemaGenerateName)
      Parameters:
      schemaGenerateName - The schema name that should be used for generating
    • getSchemaGenerateNames

      @Nullable public @Nullable List<String> getSchemaGenerateNames()
      Returns:
      The schema names that should be used for generating
    • setSchemaGenerateNames

      public void setSchemaGenerateNames(@Nullable @Nullable List<String> schemaGenerateNames)
      Parameters:
      schemaGenerateNames - The schema names that should be used for generating