Package generalDatabase.sqlite
Class SqliteSQLTypes
java.lang.Object
generalDatabase.SQLTypes
generalDatabase.sqlite.SqliteSQLTypes
-
Field Summary
-
Constructor Summary
-
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.int
systemSqlType
(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:
typeToString
in classSQLTypes
-
formatColumnName
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 classSQLTypes
- 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 classSQLTypes
- Returns:
-
getTimeStamp
Description copied from class:SQLTypes
Get a time object in the appropriate format for whichever database we're using.- Overrides:
getTimeStamp
in classSQLTypes
- Parameters:
timeMillis
- Time in milliseconds.- Returns:
- Appropriate object (Generally TimeStamp, but SWLite uses Long)
-
formatDBDateTimeQueryString
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 classSQLTypes
- Parameters:
timeMilliseconds
- Time in milliseconds- Returns:
- String to insert into a where clause.
-
formatDateTimeMatchString
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 classSQLTypes
- Parameters:
timeMilliseconds
- time in milliseconds.- Returns:
- formatted time string.
-