SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

com.solarmetric.rd.kodo.impl.jdbc.schema.dict
Class DB2Dictionary

java.lang.Object
  |
  +--com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary
        |
        +--com.solarmetric.rd.kodo.impl.jdbc.schema.dict.DB2Dictionary

public class DB2Dictionary
extends DBDictionary

Dictionary for IBM DB2 database.


Field Summary
 
Fields inherited from class com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary
CENTI, DECI, MICRO, MILLI, NANO, SEC
 
Constructor Summary
DB2Dictionary()
           
 
Method Summary
 java.lang.String[] getDropColumnSQL(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
          Return a series of SQL statements to drop the given column from its table.
 java.lang.String getPlatform()
          Return the database platform for this dictionary.
 int getPreferredType(int type)
          Return the preferred Types type for the given one.
 boolean supportsDeferredConstraints()
          Return true if the database supports deferred constraints.
 boolean supportsForeignKeyDeleteAction(int action)
          Return true if the database supports the given foreign key delete action.
 boolean supportsSelectForUpdate()
          Whether locking on queries is supported; returns the metadata's reported value by default.
 java.sql.Connection wrapConnection(java.sql.Connection conn)
          Wrap the given connection if needed.
 
Methods inherited from class com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary
addSystemSchema, addSystemTable, generateForeignKeys, generateIndexes, generatePrimaryKeys, generateTables, getAddColumnSQL, getAddForeignKeySQL, getAddPrimaryKeySQL, getArray, getAsciiStream, getBigDecimal, getBigInteger, getBinaryStream, getBlob, getBlobObject, getBoolean, getByte, getBytes, getChar, getCharacterStream, getClob, getClobString, getConfiguration, getCreateIndexSQL, getCreateTableSQL, getDate, getDate, getDatePrecision, getDBMetaData, getDeclareColumnSQL, getDouble, getDropForeignKeySQL, getDropIndexSQL, getDropPrimaryKeySQL, getDropTableSQL, getFloat, getForeignKeyActionName, getForeignKeyConstraintSQL, getInt, getJDBCType, getJDBCType, getLocale, getLong, getObject, getPrimaryKeyConstraintSQL, getRef, getShort, getSimulateLocking, getStoreCharsAsNumbers, getStoreLargeNumbersAsStrings, getString, getSystemSchemas, getSystemTables, getTime, getTimestamp, getTypeName, getValidColumnName, getValidForeignKeyName, getValidIndexName, getValidPrimaryKeyName, getValidTableName, isSystemIndex, isSystemTable, makeNameValid, replaceMapping, replaceMappingFactory, replaceSchemaFactory, setArray, setAsciiStream, setBigDecimal, setBigInteger, setBinaryStream, setBlob, setBlobObject, setBoolean, setByte, setBytes, setChar, setCharacterStream, setClob, setClobString, setConfiguration, setDate, setDate, setDBMetaData, setDouble, setFloat, setInt, setLocale, setLong, setNull, setObject, setRef, setShort, setSimulateLocking, setStoreCharsAsNumbers, setStoreLargeNumbersAsStrings, setString, setSystemSchemas, setSystemTables, setTime, setTimestamp, supportsUpdateCountsForBatch, toSelect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB2Dictionary

public DB2Dictionary()
Method Detail

getPlatform

public java.lang.String getPlatform()
Description copied from class: DBDictionary
Return the database platform for this dictionary.

Overrides:
getPlatform in class DBDictionary

supportsSelectForUpdate

public boolean supportsSelectForUpdate()
Description copied from class: DBDictionary
Whether locking on queries is supported; returns the metadata's reported value by default.

Overrides:
supportsSelectForUpdate in class DBDictionary

supportsForeignKeyDeleteAction

public boolean supportsForeignKeyDeleteAction(int action)
Description copied from class: DBDictionary
Return true if the database supports the given foreign key delete action. Returns true for all actions except ForeignKey.ACTION_NONE by default.

Overrides:
supportsForeignKeyDeleteAction in class DBDictionary

supportsDeferredConstraints

public boolean supportsDeferredConstraints()
Description copied from class: DBDictionary
Return true if the database supports deferred constraints. Returns true by default.

Overrides:
supportsDeferredConstraints in class DBDictionary

getPreferredType

public int getPreferredType(int type)
Description copied from class: DBDictionary
Return the preferred Types type for the given one. Returns the given type by default.

Overrides:
getPreferredType in class DBDictionary

getDropColumnSQL

public java.lang.String[] getDropColumnSQL(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Description copied from class: DBDictionary
Return a series of SQL statements to drop the given column from its table. Return an empty array if operation not supported. The DBMetaData is checked for support automatically. Returns ALTER TABLE <table name> DROP COLUMN <col name> by default.

Overrides:
getDropColumnSQL in class DBDictionary

wrapConnection

public java.sql.Connection wrapConnection(java.sql.Connection conn)
Description copied from class: DBDictionary
Wrap the given connection if needed. Some databases require special handling for JDBC bugs. If this method is overridden, it should wrap the connection returned by super.wrapConnection rather than the original connection argument. By default, the connection is wrapped in a special connection type that always uses scrollable result sets (but only if the database supports it and the configuration's DefaultFetchThreshold is not -1).

Overrides:
wrapConnection in class DBDictionary

SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.