public class DatasourceJDBCPropertyIO extends AbstractJDBCPropertyIO
DatasourceJDBCPropertyIO which gets its connection from a datasource name.AbstractJDBCPropertyIO,
Serialized FormDEFAULT_MAX_VALUE_FIELD_LENGTH| Constructor and Description |
|---|
DatasourceJDBCPropertyIO(String dataSourceName,
String tableName,
String nameField,
String valueField,
boolean readonly,
boolean cached)
Returns an
DatasourceJDBCPropertyIO which is initialized with datasource name and table definition. |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Gets the connection to the database.
|
String |
getDataSourceName()
The name/uri of the datasource.
|
String |
getName()
A short descriptive name of the Property IO.
|
String |
getSource()
A detailed description of the source of the property data.
|
backup, backupWithUpdate, close, getMaxValueFieldLength, getNameField, getProperties, getTableName, getValue, getValueField, reload, setMaxValueFieldLength, setValue, validategetCacheTime, getLastLoaded, getLastSaved, getLogger, getTypedProperties, getTypedValue, isCached, isReadonly, logPerformanceGetProperties, logPerformanceSetValue, setCacheTime, storeTypedValue, updateLastLoaded, updateLastSaved, validateWritablepublic DatasourceJDBCPropertyIO(String dataSourceName, String tableName, String nameField, String valueField, boolean readonly, boolean cached)
DatasourceJDBCPropertyIO which is initialized with datasource name and table definition.dataSourceName - the datasource uri name.tableName - the name of of the table which holds the properties.nameField - the name of column in the table which hold the property name.valueField - the name of column in the table which hold the property value.readonly - is the DatasourceJDBCPropertyIO be read only.cached - shall the values be cached in the PropertyIO'spublic String getDataSourceName()
public String getName()
PropertyIOpublic String getSource()
PropertyIOpublic Connection getConnection() throws SQLException
AbstractJDBCPropertyIOgetConnection in class AbstractJDBCPropertyIOSQLException - if not possible to get a connection.Connection