T - the type of the result of all set methods for method chainingDatabaseBuilderParametersDatabaseBuilderParametersImplpublic interface DatabaseBuilderProperties<T>
Definition of a properties interface for parameters of a database configuration.
The properties defined by this interface are used to configure a
DatabaseConfiguration instance. They mainly specify the database
tables containing configuration properties. Note that many properties are
mandatory; they must be provided, otherwise the builder for database
configurations throws an exception.
Important note: This interface is not intended to be implemented by client code! It defines a set of available properties and may be extended even in minor releases.
| Modifier and Type | Method | Description |
|---|---|---|
T |
setAutoCommit(boolean f) |
Enables or disable auto commit mode.
|
T |
setConfigurationName(java.lang.String name) |
Sets the name of this configuration instance.
|
T |
setConfigurationNameColumn(java.lang.String name) |
Sets the name of the table column containing the configuration name.
|
T |
setDataSource(javax.sql.DataSource src) |
Sets the data source for the database configuration.
|
T |
setKeyColumn(java.lang.String name) |
Sets the name of the table column containing configuration keys.
|
T |
setTable(java.lang.String tname) |
Sets the name of the table containing configuration data.
|
T |
setValueColumn(java.lang.String name) |
Sets the name of the table column containing the configuration property
value.
|
T setDataSource(javax.sql.DataSource src)
src - the data source for the database configurationT setTable(java.lang.String tname)
tname - the name of the table with configuration dataT setKeyColumn(java.lang.String name)
name - the column nameT setValueColumn(java.lang.String name)
name - the column nameT setConfigurationNameColumn(java.lang.String name)
name - the column nameT setConfigurationName(java.lang.String name)
name - the name of this configuration instanceT setAutoCommit(boolean f)
f - the value of the auto commit flagCopyright © 2001–2018. All rights reserved.