public class DatabaseBuilderParametersImpl extends BasicBuilderParameters implements DatabaseBuilderProperties<DatabaseBuilderParametersImpl>
A specialized parameters object for database configurations.
This class has properties for defining the database structures the configuration operates on.
This class is not thread-safe. It is intended that an instance is constructed
and initialized by a single thread during configuration of a
ConfigurationBuilder
.
RESERVED_PARAMETER_PREFIX
Constructor and Description |
---|
DatabaseBuilderParametersImpl() |
Modifier and Type | Method and Description |
---|---|
DatabaseBuilderParametersImpl |
setAutoCommit(boolean f)
Enables or disable auto commit mode.
|
DatabaseBuilderParametersImpl |
setConfigurationName(String name)
Sets the name of this configuration instance.
|
DatabaseBuilderParametersImpl |
setConfigurationNameColumn(String name)
Sets the name of the table column containing the configuration name.
|
DatabaseBuilderParametersImpl |
setDataSource(DataSource src)
Sets the data source for the database configuration.
|
DatabaseBuilderParametersImpl |
setKeyColumn(String name)
Sets the name of the table column containing configuration keys.
|
DatabaseBuilderParametersImpl |
setTable(String tname)
Sets the name of the table containing configuration data.
|
DatabaseBuilderParametersImpl |
setValueColumn(String name)
Sets the name of the table column containing the configuration property
value.
|
clone, copyPropertiesFrom, fetchBeanHelper, fetchInterpolatorSpecification, fetchProperty, getParameters, inheritFrom, merge, setBeanHelper, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setSynchronizer, setThrowExceptionOnMissing, storeProperty
public DatabaseBuilderParametersImpl setDataSource(DataSource src)
DatabaseBuilderProperties
setDataSource
in interface DatabaseBuilderProperties<DatabaseBuilderParametersImpl>
src
- the data source for the database configurationpublic DatabaseBuilderParametersImpl setTable(String tname)
DatabaseBuilderProperties
setTable
in interface DatabaseBuilderProperties<DatabaseBuilderParametersImpl>
tname
- the name of the table with configuration datapublic DatabaseBuilderParametersImpl setKeyColumn(String name)
DatabaseBuilderProperties
setKeyColumn
in interface DatabaseBuilderProperties<DatabaseBuilderParametersImpl>
name
- the column namepublic DatabaseBuilderParametersImpl setValueColumn(String name)
DatabaseBuilderProperties
setValueColumn
in interface DatabaseBuilderProperties<DatabaseBuilderParametersImpl>
name
- the column namepublic DatabaseBuilderParametersImpl setConfigurationNameColumn(String name)
DatabaseBuilderProperties
setConfigurationNameColumn
in interface DatabaseBuilderProperties<DatabaseBuilderParametersImpl>
name
- the column namepublic DatabaseBuilderParametersImpl setConfigurationName(String name)
DatabaseBuilderProperties
setConfigurationName
in interface DatabaseBuilderProperties<DatabaseBuilderParametersImpl>
name
- the name of this configuration instancepublic DatabaseBuilderParametersImpl setAutoCommit(boolean f)
DatabaseBuilderProperties
setAutoCommit
in interface DatabaseBuilderProperties<DatabaseBuilderParametersImpl>
f
- the value of the auto commit flagCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.