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
A
DB adapter
for Derby databases.- Since:
- 2.0
- Author:
- Eike Stepper
-
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
ModifierConstructorDescriptionDerbyAdapter
(String name) protected
DerbyAdapter
(String name, String version) -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultSchemaName
(Connection connection) protected String
String[]
protected String
getTypeName
(IDBField field) boolean
boolean
Check if an exception indicates a constraint violation (duplicate key)boolean
boolean
isValidFirstChar
(char ch) Check if a character is valid as first character.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, doCreateTable, dropField, dropIndex, dropIndex, dropPrimaryKey, dropTable, dropTable, dropTables, format, format, generateReservedWords, getDefaultDBLength, getDropTableSQL, getFieldLength, getJDBCDriver, getMaxFieldNameLength, getMaxTableNameLength, getName, getSQL92ReservedWords, getVersion, isCaseSensitive, isPrimaryKeyShadow, isReservedWord, isTypeIndexable, modifyConnection, openSchemaTransaction, readFields, readIndices, readIndices, readSchema, readSchema, readTables, sqlModifyField, sqlModifyField, sqlRenameField, toString, updateSchema, validateTable
-
Field Details
-
VERSION
- See Also:
-
-
Constructor Details
-
DerbyAdapter
-
DerbyAdapter
- Since:
- 4.3
-
-
Method Details
-
getTypeName
- Overrides:
getTypeName
in classDBAdapter
-
getNullableConstraint
- Overrides:
getNullableConstraint
in classDBAdapter
-
getReservedWords
-
getDefaultSchemaName
- Specified by:
getDefaultSchemaName
in interfaceIDBAdapter
- Overrides:
getDefaultSchemaName
in classDBAdapter
-
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 interfaceIDBAdapter
- Overrides:
isValidFirstChar
in classDBAdapter
-
isDuplicateKeyException
Description copied from interface:IDBAdapter
Check if an exception indicates a constraint violation (duplicate key)- 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
-