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 adapterfor PostgreSQL databases.- Author:
- Victor Roldan Betancort
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.eclipse.net4j.spi.db.DBAdapterDBAdapter.FieldInfo
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringNAMEstatic java.lang.StringVERSION- 
Fields inherited from interface org.eclipse.net4j.db.IDBAdapterREGISTRY
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description PostgreSQLAdapter()protectedPostgreSQLAdapter(java.lang.String name, java.lang.String version)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoCreateTable(IDBTable table, java.sql.Statement statement)intgetMaxFieldNameLength()intgetMaxTableNameLength()java.lang.String[]getReservedWords()protected java.lang.StringgetTypeName(IDBField field)booleanisColumnNotFoundException(java.sql.SQLException ex)See Appendix A.booleanisDuplicateKeyException(java.sql.SQLException ex)See Appendix A.booleanisTableNotFoundException(java.sql.SQLException ex)See Appendix A.- 
Methods inherited from class org.eclipse.net4j.spi.db.DBAdapteradaptType, 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- 
NAMEpublic static final java.lang.String NAME - See Also:
- Constant Field Values
 
 - 
VERSIONpublic static final java.lang.String VERSION - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getMaxTableNameLengthpublic int getMaxTableNameLength() - Specified by:
- getMaxTableNameLengthin interface- IDBAdapter
- Overrides:
- getMaxTableNameLengthin class- DBAdapter
- Since:
- 2.0
 
 - 
getMaxFieldNameLengthpublic int getMaxFieldNameLength() - Specified by:
- getMaxFieldNameLengthin interface- IDBAdapter
- Overrides:
- getMaxFieldNameLengthin class- DBAdapter
- Since:
- 2.0
 
 - 
getTypeNameprotected java.lang.String getTypeName(IDBField field) - Overrides:
- getTypeNamein class- DBAdapter
 
 - 
getReservedWordspublic java.lang.String[] getReservedWords() 
 - 
isDuplicateKeyExceptionpublic boolean isDuplicateKeyException(java.sql.SQLException ex) - Specified by:
- isDuplicateKeyExceptionin interface- IDBAdapter
- Overrides:
- isDuplicateKeyExceptionin class- DBAdapter
 
 - 
isTableNotFoundExceptionpublic boolean isTableNotFoundException(java.sql.SQLException ex) - Specified by:
- isTableNotFoundExceptionin interface- IDBAdapter
- Overrides:
- isTableNotFoundExceptionin class- DBAdapter
 
 - 
isColumnNotFoundExceptionpublic boolean isColumnNotFoundException(java.sql.SQLException ex) - Specified by:
- isColumnNotFoundExceptionin interface- IDBAdapter
- Overrides:
- isColumnNotFoundExceptionin class- DBAdapter
 
 - 
doCreateTableprotected void doCreateTable(IDBTable table, java.sql.Statement statement) throws java.sql.SQLException - Overrides:
- doCreateTablein class- DBAdapter
- Throws:
- java.sql.SQLException
- Since:
- 4.1
 
 
- 
 
-