|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--kodo.jdbc.sql.DBDictionary
|
+--kodo.jdbc.sql.DB2Dictionary
Dictionary for IBM DB2 database.
| Fields inherited from class kodo.jdbc.sql.DBDictionary |
CENTI, DECI, MICRO, MILLI, NANO, SCHEMA_CASE_DEFAULT, SCHEMA_CASE_LOWER, SCHEMA_CASE_PRESERVE, SCHEMA_CASE_UPPER, SEC |
| Constructor Summary | |
DB2Dictionary()
|
|
| Method Summary | |
ColumnInfo[] |
getColumns(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
String columnName,
Connection conn)
DB2 requires that autocommit be true for any schema interrogation. |
String[] |
getDropColumnSQL(Column col)
Return a series of SQL statements to drop the given column from its table. |
ForeignKeyInfo[] |
getImportedKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
DB2 requires that autocommit be true for any schema interrogation. |
IndexInfo[] |
getIndexInfo(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
boolean unique,
boolean approx,
Connection conn)
DB2 requires that autocommit be true for any schema interrogation. |
PrimaryKeyInfo[] |
getPrimaryKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
DB2 requires that autocommit be true for any schema interrogation. |
TableInfo[] |
getTables(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
DB2 requires that autocommit be true for any schema interrogation. |
void |
setup(Select sel)
Configure the result set type and concurrency for the given select, if needed. |
boolean |
supportsForeignKey(ForeignKey fk)
Return true if the database supports the given foreign key. |
protected boolean |
supportsSizeInColumnDefinition(Column col,
String name)
Returns true if a schema definition statement supports appending the size after the column type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DB2Dictionary()
| Method Detail |
public boolean supportsForeignKey(ForeignKey fk)
DBDictionaryForeignKey.ACTION_NONE and checks the key's deferrability
against the return value of #supportsDeferredConstraints.supportsForeignKey in class DBDictionary
protected boolean supportsSizeInColumnDefinition(Column col,
String name)
DBDictionarysupportsSizeInColumnDefinition in class DBDictionarypublic String[] getDropColumnSQL(Column col)
DBDictionaryDBMetaData is checked for support automatically. Returns
ALTER TABLE <table name> DROP COLUMN <col name>
by default.getDropColumnSQL in class DBDictionarypublic void setup(Select sel)
DBDictionarysetup in class DBDictionary
public TableInfo[] getTables(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
throws SQLException
getTables in class DBDictionary
public ColumnInfo[] getColumns(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
String columnName,
Connection conn)
throws SQLException
getColumns in class DBDictionary
public PrimaryKeyInfo[] getPrimaryKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
throws SQLException
getPrimaryKeys in class DBDictionary
public IndexInfo[] getIndexInfo(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
boolean unique,
boolean approx,
Connection conn)
throws SQLException
getIndexInfo in class DBDictionary
public ForeignKeyInfo[] getImportedKeys(DatabaseMetaData meta,
String catalog,
String schemaName,
String tableName,
Connection conn)
throws SQLException
getImportedKeys in class DBDictionary
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||