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
A
DB 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 inherited from interface org.eclipse.net4j.db.IDBAdapter
REGISTRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doCreateTable
(IDBTable table, Statement statement) int
int
String[]
protected String
getTypeName
(IDBField field) boolean
boolean
See Appendix A.boolean
See Appendix A.boolean
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, createSchema, createTable, createTable, createTables, dropField, dropIndex, dropIndex, dropPrimaryKey, dropTable, dropTable, dropTables, format, format, generateReservedWords, getDefaultDBLength, getDefaultSchemaName, getDropTableSQL, getFieldLength, getJDBCDriver, getName, getNullableConstraint, getSQL92ReservedWords, getVersion, isPrimaryKeyShadow, isReservedWord, isTypeIndexable, isValidFirstChar, modifyConnection, openSchemaTransaction, readFields, readIndices, readIndices, readSchema, readSchema, readTables, sqlModifyField, sqlModifyField, sqlRenameField, toString, updateSchema, validateTable
-
Field Details
-
NAME
- See Also:
-
VERSION
- See Also:
-
-
Constructor Details
-
PostgreSQLAdapter
public PostgreSQLAdapter() -
PostgreSQLAdapter
- Since:
- 4.4
-
-
Method Details
-
isCaseSensitive
public boolean isCaseSensitive()- Specified by:
isCaseSensitive
in interfaceIDBAdapter
- Overrides:
isCaseSensitive
in classDBAdapter
-
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
- Overrides:
getTypeName
in classDBAdapter
-
getReservedWords
-
isDuplicateKeyException
- Specified by:
isDuplicateKeyException
in interfaceIDBAdapter
- Overrides:
isDuplicateKeyException
in classDBAdapter
-
isTableNotFoundException
- Specified by:
isTableNotFoundException
in interfaceIDBAdapter
- Overrides:
isTableNotFoundException
in classDBAdapter
-
isColumnNotFoundException
- Specified by:
isColumnNotFoundException
in interfaceIDBAdapter
- Overrides:
isColumnNotFoundException
in classDBAdapter
-
doCreateTable
- Overrides:
doCreateTable
in classDBAdapter
- Throws:
SQLException
- Since:
- 4.1
-