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.Named
Configuration for Data JDBC.- Since:
- 1.0.0
- Author:
- graemerocher
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PREFIX
The 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 Dialect
getDialect()
java.lang.String
getName()
java.util.List<java.lang.String>
getPackages()
SchemaGenerate
getSchemaGenerate()
boolean
isAllowConnectionPerOperation()
boolean
isBatchGenerate()
boolean
isTransactionPerOperation()
void
setAllowConnectionPerOperation(boolean allowConnectionPerOperation)
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.void
setTransactionPerOperation(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:
getName
in 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
-
-