public class PostgreSQLAdapter extends DBAdapter
DB adapter
for PostgreSQL databases.DBAdapter.FieldInfo
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
static java.lang.String |
VERSION |
REGISTRY
Constructor and Description |
---|
PostgreSQLAdapter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doCreateTable(IDBTable table,
java.sql.Statement statement) |
int |
getMaxFieldNameLength() |
int |
getMaxTableNameLength() |
java.lang.String[] |
getReservedWords() |
protected java.lang.String |
getTypeName(IDBField field) |
boolean |
isColumnNotFoundException(java.sql.SQLException ex)
See Appendix A.
|
boolean |
isDuplicateKeyException(java.sql.SQLException ex)
See Appendix A.
|
boolean |
isTableNotFoundException(java.sql.SQLException ex)
See Appendix A.
|
adaptType, addIndex, addIndexField, alterTable, appendFieldDefs, appendFieldNames, convertString, convertString, convertString, createConnectionProvider, createConstraints, createField, createFieldDefinition, createFieldDefinitions, createIndex, createIndex, createIndex, createIndexFields, createJDBCDataSource, createPrimaryKey, createTable, createTable, createTables, dropField, 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 java.lang.String NAME
public static final java.lang.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 java.lang.String getTypeName(IDBField field)
getTypeName
in class DBAdapter
public java.lang.String[] getReservedWords()
public boolean isDuplicateKeyException(java.sql.SQLException ex)
isDuplicateKeyException
in interface IDBAdapter
isDuplicateKeyException
in class DBAdapter
public boolean isTableNotFoundException(java.sql.SQLException ex)
isTableNotFoundException
in interface IDBAdapter
isTableNotFoundException
in class DBAdapter
public boolean isColumnNotFoundException(java.sql.SQLException ex)
isColumnNotFoundException
in interface IDBAdapter
isColumnNotFoundException
in class DBAdapter
protected void doCreateTable(IDBTable table, java.sql.Statement statement) throws java.sql.SQLException
doCreateTable
in class DBAdapter
java.sql.SQLException
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html