public class PostgresDB extends Db
| Constructor and Description |
|---|
PostgresDB() |
PostgresDB(String url,
String driver,
String user,
String password,
File executeQueryFile,
int maxStatementsPerTransaction) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
beginTransactionStatement() |
protected String |
encode(String s)
e.g.
|
protected String |
mapDataType(String originalDataType)
when copying a table to this connection, the original data type (copied from an other connection
with maybe a different DB system) can be mapped to an other datatype.
|
protected Object |
mapValue(Object o)
maps value if necessary; e.g.
|
protected String |
quoteIdentifierIfNecessary(String unquotedTableName)
if some circumstances, table and column names themselves have to be quoted, e.g.
|
addPreprocessor, appendToFile, cleanDuplicates, closeConnection, commitStatement, copyTableFrom, copyView, createOrReplaceTable, createView, dropTableIfExists, dropViewIfExists, dumpQuery, escapedQuoteLiteral, execute, executeQuery, getTableStructure, getViewStructure, insert, insert, isCharacterLike, query, quote, quoteIfNecessary, switchExecuteQueryFile, tableStructureEntry, toSQLSet, wherePropertyIn, wrappublic PostgresDB()
throws SQLException,
ClassNotFoundException,
IOException
public PostgresDB(String url, String driver, String user, String password, File executeQueryFile, int maxStatementsPerTransaction) throws ClassNotFoundException, SQLException, IOException
protected String encode(String s)
Dbprotected String mapDataType(String originalDataType)
DbmapDataType in class Dbprotected Object mapValue(Object o)
Dbprotected String beginTransactionStatement()
beginTransactionStatement in class Dbprotected String quoteIdentifierIfNecessary(String unquotedTableName)
DbquoteIdentifierIfNecessary in class DbCopyright © 2021. All rights reserved.