Package 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 ADB adapterfor Derby databases.- Since:
- 2.0
- Author:
- Eike Stepper
 
- 
- 
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.StringVERSION- 
Fields inherited from interface org.eclipse.net4j.db.IDBAdapterREGISTRY
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description DerbyAdapter(java.lang.String name)protectedDerbyAdapter(java.lang.String name, java.lang.String version)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getReservedWords()protected java.lang.StringgetTypeName(IDBField field)booleanisColumnNotFoundException(java.sql.SQLException ex)booleanisDuplicateKeyException(java.sql.SQLException ex)Check if an exception indicates a constraint violation (duplicate key)booleanisTableNotFoundException(java.sql.SQLException ex)booleanisValidFirstChar(char ch)Check if a character is valid as first character.- 
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, doCreateTable, dropField, dropIndex, dropIndex, dropPrimaryKey, dropTable, dropTable, dropTables, format, format, generateReservedWords, getDefaultDBLength, getDropTableSQL, getFieldLength, getJDBCDriver, getMaxFieldNameLength, getMaxTableNameLength, getName, getSQL92ReservedWords, getVersion, isPrimaryKeyShadow, isReservedWord, isTypeIndexable, modifyConnection, openSchemaTransaction, readFields, readIndices, readIndices, readSchema, readSchema, readTables, sqlModifyField, sqlModifyField, sqlRenameField, toString, updateSchema, validateTable
 
- 
 
- 
- 
- 
Field Detail- 
VERSIONpublic static final java.lang.String VERSION - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getTypeNameprotected java.lang.String getTypeName(IDBField field) - Overrides:
- getTypeNamein class- DBAdapter
 
 - 
getReservedWordspublic java.lang.String[] getReservedWords() 
 - 
isValidFirstCharpublic boolean isValidFirstChar(char ch) Description copied from interface:IDBAdapterCheck if a character is valid as first character. (e.g., underscores are forbidden as first character in Derby elements.- Specified by:
- isValidFirstCharin interface- IDBAdapter
- Overrides:
- isValidFirstCharin class- DBAdapter
 
 - 
isDuplicateKeyExceptionpublic boolean isDuplicateKeyException(java.sql.SQLException ex) Description copied from interface:IDBAdapterCheck if an exception indicates a constraint violation (duplicate key)- 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
 
 
- 
 
-