Package generalDatabase.sqlite
Class SqliteSQLTypes
java.lang.Object
generalDatabase.SQLTypes
generalDatabase.sqlite.SqliteSQLTypes
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionformatColumnName(String columnName) Format the column name.formatDateTimeMatchString(long timeMilliseconds) Allow slightly different formatting when we're trying to get an exact match of a milliseconds time.formatDBDateTimeQueryString(long timeMilliseconds) Format the time for insertion into a WHERE %s BETWEEN %s clause, mostly used by the Viewer.getTimeStamp(Long timeMillis) Get a time object in the appropriate format for whichever database we're using.intsystemSqlType(int sqlType) Some SQL types are unavailable on some systems, so qutomatically swap them for something else.typeToString(int sqlType, int length, boolean counter) Methods inherited from class generalDatabase.SQLTypes
createTableItem, formatColumnName, formatTableName, getLocalTimeStamp, getLongValue, isAllowBlanks, makeDouble, makeDouble, makeFloat, makeFloat, makeInList, millisFromTimeStamp, setAllowBlanks, stringToLength, stringToType, typeToString, typeToString 
- 
Field Details
- 
dateClass
public static final org.sqlite.SQLiteConfig.DateClass dateClass 
 - 
 - 
Constructor Details
- 
SqliteSQLTypes
public SqliteSQLTypes() 
 - 
 - 
Method Details
- 
typeToString
- Overrides:
 typeToStringin classSQLTypes
 - 
formatColumnName
Description copied from class:SQLTypesFormat 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:
 formatColumnNamein classSQLTypes- Parameters:
 columnName-- Returns:
 - formatted column name.
 
 - 
systemSqlType
public int systemSqlType(int sqlType) Description copied from class:SQLTypesSome SQL types are unavailable on some systems, so qutomatically swap them for something else.- Overrides:
 systemSqlTypein classSQLTypes- Parameters:
 sqlType-- Returns:
 
 - 
getTimeStamp
Description copied from class:SQLTypesGet a time object in the appropriate format for whichever database we're using.- Overrides:
 getTimeStampin classSQLTypes- Parameters:
 timeMillis- Time in milliseconds.- Returns:
 - Appropriate object (Generally TimeStamp, but SWLite uses Long)
 
 - 
formatDBDateTimeQueryString
Description copied from class:SQLTypesFormat 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:
 formatDBDateTimeQueryStringin classSQLTypes- Parameters:
 timeMilliseconds- Time in milliseconds- Returns:
 - String to insert into a where clause.
 
 - 
formatDateTimeMatchString
Description copied from class:SQLTypesAllow slightly different formatting when we're trying to get an exact match of a milliseconds time.- Overrides:
 formatDateTimeMatchStringin classSQLTypes- Parameters:
 timeMilliseconds- time in milliseconds.- Returns:
 - formatted time string.
 
 
 -