Class SQLiteCustomisations

java.lang.Object
org.reldb.wrapd.sqldb.sqlite.SQLiteCustomisations
All Implemented Interfaces:
Customisations

public class SQLiteCustomisations
extends java.lang.Object
implements Customisations
Customisations required for SQLite.
  • Constructor Summary

    Constructors
    Constructor Description
    SQLiteCustomisations()  
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SQLiteCustomisations

      public SQLiteCustomisations()
  • Method Details

    • getSpecificColumnClass

      public java.lang.String getSpecificColumnClass​(java.lang.String columnSQLType)
      Description copied from interface: Customisations
      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.
      Specified by:
      getSpecificColumnClass in interface Customisations
      Parameters:
      columnSQLType - - sql type name typically returned by ResultSet::getMetaData().getColumnTypeName(column)
      Returns:
      - class name of class returned by getSpecificColumnValue(Object retrievedValue)
    • getSpecificColumnValue

      public java.lang.Object getSpecificColumnValue​(java.lang.Object retrievedValue, java.lang.String columnSQLType)
      Description copied from interface: Customisations
      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.
      Specified by:
      getSpecificColumnValue in interface Customisations
      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)