Package generalDatabase.postgresql
Class PostgreSQLTypes
java.lang.Object
generalDatabase.SQLTypes
generalDatabase.postgresql.PostgreSQLTypes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformatColumnName
(String columnName) Format the column name.formatTableName
(String tableName) Any bespoke formatting of table namestypeToString
(int sqlType, int length, boolean counter) Methods inherited from class generalDatabase.SQLTypes
createTableItem, formatColumnName, formatDateTimeMatchString, formatDBDateTimeQueryString, getLocalTimeStamp, getLongValue, getTimeStamp, isAllowBlanks, makeDouble, makeDouble, makeFloat, makeFloat, makeInList, millisFromTimeStamp, setAllowBlanks, stringToLength, stringToType, systemSqlType, typeToString, typeToString
-
Constructor Details
-
PostgreSQLTypes
public PostgreSQLTypes()
-
-
Method Details
-
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.
-
typeToString
- Overrides:
typeToString
in classSQLTypes
-
formatTableName
Description copied from class:SQLTypes
Any bespoke formatting of table names- Overrides:
formatTableName
in classSQLTypes
- Parameters:
tableName
- input table name- Returns:
- modified table name (e.g. to lower case)
-