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
A DB adapter
for PostgreSQL databases.
Methods inherited from class org.eclipse.net4j.spi.db.DBAdapter |
addIndexField, appendFieldNames, createConstraints, createFieldDefinition, createIndex, createTables, doCreateTable, dropTable, dropTables, getDropTableSQL, getName, getSQL92ReservedWords, getVersion, isDuplicateKeyException, isReservedWord, isTypeIndexable, isValidFirstChar, toString, validateTable |
NAME
public static final String NAME
- See Also:
- Constant Field Values
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
PostgreSQLAdapter
public PostgreSQLAdapter()
getJDBCDriver
public org.postgresql.Driver getJDBCDriver()
createJDBCDataSource
public DataSource createJDBCDataSource()
getMaxTableNameLength
public int getMaxTableNameLength()
- Specified by:
getMaxTableNameLength
in interface IDBAdapter
- Overrides:
getMaxTableNameLength
in class DBAdapter
- Since:
- 2.0
getMaxFieldNameLength
public int getMaxFieldNameLength()
- Specified by:
getMaxFieldNameLength
in interface IDBAdapter
- Overrides:
getMaxFieldNameLength
in class DBAdapter
- Since:
- 2.0
getTypeName
protected String getTypeName(IDBField field)
- Overrides:
getTypeName
in class DBAdapter
getReservedWords
public String[] getReservedWords()
createTable
public boolean createTable(IDBTable table,
Statement statement)
throws DBException
- Specified by:
createTable
in interface IDBAdapter
- Overrides:
createTable
in class DBAdapter
- Throws:
DBException
adaptType
public DBType adaptType(DBType type)
- Description copied from interface:
IDBAdapter
- Provide a way for the DBAdapter to override unsupported DB types with replacements. The default implementation just
returns the given type. Subclasses may override single types with replacements.
- Specified by:
adaptType
in interface IDBAdapter
- Overrides:
adaptType
in class DBAdapter
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.