@EachProperty(value="r2dbc.datasources",
primary="default")
public class DataR2dbcConfiguration
extends java.lang.Object
implements io.micronaut.core.naming.Named
Constructor and Description |
---|
DataR2dbcConfiguration(java.lang.String name,
io.r2dbc.spi.ConnectionFactory connectionFactory,
R2dbcOperations r2dbcOperations)
The configuration.
|
Modifier and Type | Method and Description |
---|---|
io.r2dbc.spi.ConnectionFactory |
getConnectionFactory() |
io.micronaut.data.model.query.builder.sql.Dialect |
getDialect() |
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getPackages() |
R2dbcOperations |
getR2dbcOperations() |
io.micronaut.data.runtime.config.SchemaGenerate |
getSchemaGenerate() |
boolean |
isBatchGenerate() |
void |
setBatchGenerate(boolean batchGenerate) |
void |
setDialect(io.micronaut.data.model.query.builder.sql.Dialect dialect)
Sets the dialect.
|
void |
setPackages(java.util.List<java.lang.String> packages)
Sets the packages to include use for the purposes of schema generation.
|
void |
setSchemaGenerate(io.micronaut.data.runtime.config.SchemaGenerate schemaGenerate)
Sets the schema generation strategy.
|
public DataR2dbcConfiguration(@Parameter java.lang.String name, @Parameter io.r2dbc.spi.ConnectionFactory connectionFactory, @Parameter R2dbcOperations r2dbcOperations)
name
- The configuration nameconnectionFactory
- The connection factoryr2dbcOperations
- The operationspublic R2dbcOperations getR2dbcOperations()
public io.r2dbc.spi.ConnectionFactory getConnectionFactory()
public io.micronaut.data.runtime.config.SchemaGenerate getSchemaGenerate()
public void setSchemaGenerate(io.micronaut.data.runtime.config.SchemaGenerate schemaGenerate)
schemaGenerate
- The schema generation strategy.public boolean isBatchGenerate()
public void setBatchGenerate(boolean batchGenerate)
batchGenerate
- Whether to generate tables in batch.public java.util.List<java.lang.String> getPackages()
public void setPackages(java.util.List<java.lang.String> packages)
packages
- The packagespublic io.micronaut.data.model.query.builder.sql.Dialect getDialect()
public void setDialect(io.micronaut.data.model.query.builder.sql.Dialect dialect)
dialect
- The dialect@Nonnull public java.lang.String getName()
getName
in interface io.micronaut.core.naming.Named