@EachProperty(value="datasources",
primary="default")
public class DataJdbcConfiguration
extends java.lang.Object
implements io.micronaut.core.naming.Named
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX
The prefix to use.
|
Constructor and Description |
---|
DataJdbcConfiguration(java.lang.String name)
The configuration.
|
Modifier and Type | Method and Description |
---|---|
Dialect |
getDialect() |
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getPackages() |
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 use.
|
void |
setSchemaGenerate(SchemaGenerate schemaGenerate)
Sets the schema generation strategy.
|
public static final java.lang.String PREFIX
public DataJdbcConfiguration(@Parameter java.lang.String name)
name
- The configuration namepublic 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