org.eclipse.net4j.db.derby
Class DerbyAdapter
java.lang.Object
org.eclipse.net4j.spi.db.DBAdapter
org.eclipse.net4j.db.derby.DerbyAdapter
- All Implemented Interfaces:
- IDBAdapter
- Direct Known Subclasses:
- EmbeddedDerbyAdapter
- public abstract class DerbyAdapter
- extends DBAdapter
A DB adapter
for Derby databases.
- Since:
- 2.0
Methods inherited from class org.eclipse.net4j.spi.db.DBAdapter |
adaptType, addIndex, addIndexField, alterTable, appendFieldDefs, appendFieldNames, createConstraints, createFieldDefinition, createFieldDefinitions, createIndex, createIndex, createIndex, createIndexFields, createJDBCDataSource, createPrimaryKey, createTable, createTable, createTables, doCreateTable, dropIndex, dropIndex, dropPrimaryKey, dropTable, dropTable, dropTables, format, format, getDefaultDBLength, getDropTableSQL, getFieldLength, getJDBCDriver, getMaxFieldNameLength, getMaxTableNameLength, getName, getSQL92ReservedWords, getVersion, isPrimaryKeyShadow, isReservedWord, isTypeIndexable, readFields, readIndices, readIndices, readSchema, readSchema, sqlModifyField, sqlModifyField, sqlRenameField, toString, updateSchema, validateTable |
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
DerbyAdapter
public DerbyAdapter(String name)
getTypeName
protected String getTypeName(IDBField field)
- Overrides:
getTypeName
in class DBAdapter
getReservedWords
public String[] getReservedWords()
isValidFirstChar
public boolean isValidFirstChar(char ch)
- Description copied from interface:
IDBAdapter
- Check if a character is valid as first character. (e.g., underscores are forbidden as first character in Derby
elements.
- Specified by:
isValidFirstChar
in interface IDBAdapter
- Overrides:
isValidFirstChar
in class DBAdapter
isDuplicateKeyException
public boolean isDuplicateKeyException(SQLException ex)
- Description copied from interface:
IDBAdapter
- Check if an exception indicates a constraint violation (duplicate key)
- Specified by:
isDuplicateKeyException
in interface IDBAdapter
- Overrides:
isDuplicateKeyException
in class DBAdapter
isTableNotFoundException
public boolean isTableNotFoundException(SQLException ex)
- Specified by:
isTableNotFoundException
in interface IDBAdapter
- Overrides:
isTableNotFoundException
in class DBAdapter
isColumnNotFoundException
public boolean isColumnNotFoundException(SQLException ex)
- Specified by:
isColumnNotFoundException
in interface IDBAdapter
- Overrides:
isColumnNotFoundException
in class DBAdapter
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.