public class PostgreSQLAdapter extends DBAdapter
DB adapter
for PostgreSQL databases.DBAdapter.FieldInfo
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
VERSION |
REGISTRY
Constructor and Description |
---|
PostgreSQLAdapter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doCreateTable(IDBTable table,
Statement statement) |
int |
getMaxFieldNameLength() |
int |
getMaxTableNameLength() |
String[] |
getReservedWords() |
protected String |
getTypeName(IDBField field) |
boolean |
isColumnNotFoundException(SQLException ex)
See Appendix A.
|
boolean |
isDuplicateKeyException(SQLException ex)
See Appendix A.
|
boolean |
isTableNotFoundException(SQLException ex)
See Appendix A.
|
adaptType, addIndex, addIndexField, alterTable, appendFieldDefs, appendFieldNames, convertString, convertString, convertString, createConnectionProvider, createConstraints, createFieldDefinition, createFieldDefinitions, createIndex, createIndex, createIndex, createIndexFields, createJDBCDataSource, createPrimaryKey, createTable, createTable, createTables, dropIndex, dropIndex, dropPrimaryKey, dropTable, dropTable, dropTables, format, format, getDefaultDBLength, getDropTableSQL, getFieldLength, getJDBCDriver, getName, getSQL92ReservedWords, getVersion, isPrimaryKeyShadow, isReservedWord, isTypeIndexable, isValidFirstChar, modifyConnection, readFields, readIndices, readIndices, readSchema, readSchema, readTables, sqlModifyField, sqlModifyField, sqlRenameField, toString, updateSchema, validateTable
public static final String NAME
public static final String VERSION
public int getMaxTableNameLength()
getMaxTableNameLength
in interface IDBAdapter
getMaxTableNameLength
in class DBAdapter
public int getMaxFieldNameLength()
getMaxFieldNameLength
in interface IDBAdapter
getMaxFieldNameLength
in class DBAdapter
protected String getTypeName(IDBField field)
getTypeName
in class DBAdapter
public String[] getReservedWords()
public boolean isDuplicateKeyException(SQLException ex)
isDuplicateKeyException
in interface IDBAdapter
isDuplicateKeyException
in class DBAdapter
public boolean isTableNotFoundException(SQLException ex)
isTableNotFoundException
in interface IDBAdapter
isTableNotFoundException
in class DBAdapter
public boolean isColumnNotFoundException(SQLException ex)
isColumnNotFoundException
in interface IDBAdapter
isColumnNotFoundException
in class DBAdapter
protected void doCreateTable(IDBTable table, Statement statement) throws SQLException
doCreateTable
in class DBAdapter
SQLException
Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.