Package io.micronaut.data.jdbc.config
Class DataJdbcConfiguration
- java.lang.Object
-
- io.micronaut.data.jdbc.config.DataJdbcConfiguration
-
- All Implemented Interfaces:
io.micronaut.core.naming.Named
@EachProperty(value="datasources", primary="default") public class DataJdbcConfiguration extends java.lang.Object implements io.micronaut.core.naming.NamedConfiguration for Data JDBC.- Since:
- 1.0.0
- Author:
- graemerocher
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPREFIXThe prefix to use.
-
Constructor Summary
Constructors Constructor Description DataJdbcConfiguration(java.lang.String name)The configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DialectgetDialect()java.lang.StringgetName()java.util.List<java.lang.String>getPackages()SchemaGenerategetSchemaGenerate()booleanisAllowConnectionPerOperation()booleanisBatchGenerate()booleanisTransactionPerOperation()voidsetAllowConnectionPerOperation(boolean allowConnectionPerOperation)voidsetBatchGenerate(boolean batchGenerate)voidsetDialect(Dialect dialect)Sets the dialect.voidsetPackages(java.util.List<java.lang.String> packages)Sets the packages to include use for the purposes of schema generation.voidsetSchemaGenerate(SchemaGenerate schemaGenerate)Sets the schema generation strategy.voidsetTransactionPerOperation(boolean transactionPerOperation)
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
The prefix to use.- See Also:
- Constant Field Values
-
-
Method Detail
-
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 java.util.List<java.lang.String> getPackages()
- Returns:
- The packages to include use for the purposes of schema generation.
-
setPackages
public void setPackages(java.util.List<java.lang.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 java.lang.String getName()
- Specified by:
getNamein interfaceio.micronaut.core.naming.Named
-
isTransactionPerOperation
public boolean isTransactionPerOperation()
- Returns:
- true if property is set
-
setTransactionPerOperation
public void setTransactionPerOperation(boolean transactionPerOperation)
- Parameters:
transactionPerOperation- The property
-
isAllowConnectionPerOperation
public boolean isAllowConnectionPerOperation()
- Returns:
- true if property is set
-
setAllowConnectionPerOperation
public void setAllowConnectionPerOperation(boolean allowConnectionPerOperation)
- Parameters:
allowConnectionPerOperation- The property
-
-