Package org.reldb.wrapd.sqldb
Interface Customisations
- All Known Implementing Classes:
SQLiteCustomisations
public interface Customisations
Defines custom, DBMS-specific behaviour.
-
Method Summary
Modifier and Type Method Description java.lang.String
getSpecificColumnClass(java.lang.String columnSQLType)
Some JDBC drivers return a general class type, like java.lang.Object, for ResultSet::getMetaData().getColumnClassName(column).java.lang.Object
getSpecificColumnValue(java.lang.Object retrievedValue, java.lang.String columnSQLType)
As noted above, some JDBC drivers return a generic class for a column type.
-
Method Details
-
getSpecificColumnClass
java.lang.String getSpecificColumnClass(java.lang.String columnSQLType)Some JDBC drivers return a general class type, like java.lang.Object, for ResultSet::getMetaData().getColumnClassName(column). This method specifies a more usefully specific class name to host the column value.- Parameters:
columnSQLType
- - sql type name typically returned by ResultSet::getMetaData().getColumnTypeName(column)- Returns:
- - class name of class returned by getSpecificColumnValue(Object retrievedValue)
-
getSpecificColumnValue
java.lang.Object getSpecificColumnValue(java.lang.Object retrievedValue, java.lang.String columnSQLType)As noted above, some JDBC drivers return a generic class for a column type. Given a retrieved value of some overly-generic class -- probably java.lang.Object -- convert it to a more useful specific class type per getSpecificColumnClass() above.- Parameters:
retrievedValue
- - value obtained via ResultSet::getObject(column)columnSQLType
- - sql type name typically returned by ResultSet::getMetaData().getColumnTypeName(column)- Returns:
- - class name of class returned by getSpecificColumnValue(Object retrievedValue)
-