@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() |
Dialect |
getDialect() |
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getPackages() |
R2dbcOperations |
getR2dbcOperations() |
SchemaGenerate |
getSchemaGenerate() |
boolean |
isBatchGenerate() |
void |
setBatchGenerate(boolean batchGenerate) |
void |
setDialect(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(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 SchemaGenerate getSchemaGenerate()
public void setSchemaGenerate(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 Dialect getDialect()
public void setDialect(Dialect dialect)
dialect
- The dialect@Nonnull public java.lang.String getName()
getName
in interface io.micronaut.core.naming.Named