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 Object
implements io.micronaut.core.naming.Named
Configuration for Data JDBC.
- Since:
- 1.0.0
- Author:
- graemerocher
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription@NonNull StringgetName()@Nullable StringbooleanbooleanvoidsetAllowConnectionPerOperation(boolean allowConnectionPerOperation) voidsetBatchGenerate(boolean batchGenerate) voidsetDialect(Dialect dialect) Sets the dialect.voidsetPackages(List<String> packages) Sets the packages to include use for the purposes of schema generation.voidsetSchemaGenerate(SchemaGenerate schemaGenerate) Sets the schema generation strategy.voidsetSchemaGenerateName(@Nullable String schemaGenerateName) voidsetSchemaGenerateNames(@Nullable List<String> schemaGenerateNames) 
- 
Field Details- 
PREFIXThe prefix to use.- See Also:
 
 
- 
- 
Constructor Details- 
DataJdbcConfigurationThe configuration.- Parameters:
- name- The configuration name
 
 
- 
- 
Method Details- 
getSchemaGenerate- Returns:
- The schema generation strategy.
 
- 
setSchemaGenerateSets the schema generation strategy.- Parameters:
- schemaGenerate- The schema generation strategy.
 
- 
isBatchGeneratepublic boolean isBatchGenerate()- Returns:
- Whether to generate tables in batch.
 
- 
setBatchGeneratepublic void setBatchGenerate(boolean batchGenerate) - Parameters:
- batchGenerate- Whether to generate tables in batch.
 
- 
getPackages- Returns:
- The packages to include use for the purposes of schema generation.
 
- 
setPackagesSets the packages to include use for the purposes of schema generation.- Parameters:
- packages- The packages
 
- 
getDialect- Returns:
- The dialect to use.
 
- 
setDialectSets the dialect.- Parameters:
- dialect- The dialect
 
- 
getName- Specified by:
- getNamein interface- io.micronaut.core.naming.Named
 
- 
isAllowConnectionPerOperationpublic boolean isAllowConnectionPerOperation()- Returns:
- true if property is set
 
- 
setAllowConnectionPerOperationpublic void setAllowConnectionPerOperation(boolean allowConnectionPerOperation) - Parameters:
- allowConnectionPerOperation- The property
 
- 
getSchemaGenerateName- Returns:
- The schema name that should be used for generating
 
- 
setSchemaGenerateName- Parameters:
- schemaGenerateName- The schema name that should be used for generating
 
- 
getSchemaGenerateNames- Returns:
- The schema names that should be used for generating
 
- 
setSchemaGenerateNames- Parameters:
- schemaGenerateNames- The schema names that should be used for generating
 
 
-