Class SqliteSQLTypes

java.lang.Object
generalDatabase.SQLTypes
generalDatabase.sqlite.SqliteSQLTypes

public class SqliteSQLTypes extends SQLTypes
  • Field Details

    • dateClass

      public static final org.sqlite.SQLiteConfig.DateClass dateClass
  • Constructor Details

    • SqliteSQLTypes

      public SqliteSQLTypes()
  • Method Details

    • typeToString

      public String typeToString(int sqlType, int length, boolean counter)
      Overrides:
      typeToString in class SQLTypes
    • formatColumnName

      public String formatColumnName(String columnName)
      Description copied from class: SQLTypes
      Format the column name. Formats may be slightly different for different DBMS's. e.g. MS Access can put quotes around names. OODB requires them to be all upper case, etc.
      Overrides:
      formatColumnName in class SQLTypes
      Returns:
      formatted column name.
    • systemSqlType

      public int systemSqlType(int sqlType)
      Description copied from class: SQLTypes
      Some SQL types are unavailable on some systems, so qutomatically swap them for something else.
      Overrides:
      systemSqlType in class SQLTypes
      Returns:
    • getTimeStamp

      public Object getTimeStamp(Long timeMillis)
      Description copied from class: SQLTypes
      Get a time object in the appropriate format for whichever database we're using.
      Overrides:
      getTimeStamp in class SQLTypes
      Parameters:
      timeMillis - Time in milliseconds.
      Returns:
      Appropriate object (Generally TimeStamp, but SWLite uses Long)
    • formatDBDateTimeQueryString

      public String formatDBDateTimeQueryString(long timeMilliseconds)
      Description copied from class: SQLTypes
      Format the time for insertion into a WHERE %s BETWEEN %s clause, mostly used by the Viewer. This has been wrapped here so that we can support a different format for SQLLite
      Overrides:
      formatDBDateTimeQueryString in class SQLTypes
      Parameters:
      timeMilliseconds - Time in milliseconds
      Returns:
      String to insert into a where clause.
    • formatDateTimeMatchString

      public String formatDateTimeMatchString(long timeMilliseconds)
      Description copied from class: SQLTypes
      Allow slightly different formatting when we're trying to get an exact match of a milliseconds time.
      Overrides:
      formatDateTimeMatchString in class SQLTypes
      Parameters:
      timeMilliseconds - time in milliseconds.
      Returns:
      formatted time string.