Package org.eclipse.net4j.db.postgresql
Class PostgreSQLAdapter
- java.lang.Object
-
- org.eclipse.net4j.spi.db.DBAdapter
-
- org.eclipse.net4j.db.postgresql.PostgreSQLAdapter
-
- All Implemented Interfaces:
IDBAdapter
public class PostgreSQLAdapter extends DBAdapter
ADB adapter
for PostgreSQL databases.- Author:
- Victor Roldan Betancort
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.net4j.spi.db.DBAdapter
DBAdapter.FieldInfo
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
static java.lang.String
VERSION
-
Fields inherited from interface org.eclipse.net4j.db.IDBAdapter
REGISTRY
-
-
Constructor Summary
Constructors Modifier Constructor Description PostgreSQLAdapter()
protected
PostgreSQLAdapter(java.lang.String name, java.lang.String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.eclipse.net4j.spi.db.DBAdapter
adaptType, addIndex, addIndexField, alterTable, appendFieldDefs, appendFieldNames, convertString, convertString, convertString, convertToSQL, createConnectionProvider, createConstraints, createField, createFieldDefinition, createFieldDefinitions, createIndex, createIndex, createIndex, createIndexFields, createJDBCDataSource, createPrimaryKey, createTable, createTable, createTables, dropField, dropIndex, dropIndex, dropPrimaryKey, dropTable, dropTable, dropTables, format, format, generateReservedWords, getDefaultDBLength, getDropTableSQL, getFieldLength, getJDBCDriver, getName, getSQL92ReservedWords, getVersion, isPrimaryKeyShadow, isReservedWord, isTypeIndexable, isValidFirstChar, modifyConnection, openSchemaTransaction, readFields, readIndices, readIndices, readSchema, readSchema, readTables, sqlModifyField, sqlModifyField, sqlRenameField, toString, updateSchema, validateTable
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMaxTableNameLength
public int getMaxTableNameLength()
- Specified by:
getMaxTableNameLength
in interfaceIDBAdapter
- Overrides:
getMaxTableNameLength
in classDBAdapter
- Since:
- 2.0
-
getMaxFieldNameLength
public int getMaxFieldNameLength()
- Specified by:
getMaxFieldNameLength
in interfaceIDBAdapter
- Overrides:
getMaxFieldNameLength
in classDBAdapter
- Since:
- 2.0
-
getTypeName
protected java.lang.String getTypeName(IDBField field)
- Overrides:
getTypeName
in classDBAdapter
-
getReservedWords
public java.lang.String[] getReservedWords()
-
isDuplicateKeyException
public boolean isDuplicateKeyException(java.sql.SQLException ex)
- Specified by:
isDuplicateKeyException
in interfaceIDBAdapter
- Overrides:
isDuplicateKeyException
in classDBAdapter
-
isTableNotFoundException
public boolean isTableNotFoundException(java.sql.SQLException ex)
- Specified by:
isTableNotFoundException
in interfaceIDBAdapter
- Overrides:
isTableNotFoundException
in classDBAdapter
-
isColumnNotFoundException
public boolean isColumnNotFoundException(java.sql.SQLException ex)
- Specified by:
isColumnNotFoundException
in interfaceIDBAdapter
- Overrides:
isColumnNotFoundException
in classDBAdapter
-
doCreateTable
protected void doCreateTable(IDBTable table, java.sql.Statement statement) throws java.sql.SQLException
- Overrides:
doCreateTable
in classDBAdapter
- Throws:
java.sql.SQLException
- Since:
- 4.1
-
-