|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary
|
+--com.solarmetric.kodo.impl.jdbc.schema.dict.DB2Dictionary
Implementation of the DBDictionary interface for IBM DB2.
| Fields inherited from class com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary |
CENTI, DECI, meta, MICRO, MILLI, NANO, NUMBER_FORMAT, SEC |
| Constructor Summary | |
DB2Dictionary()
|
|
| Method Summary | |
SQLBuffer |
addForUpdateClause(SQLBuffer buffer,
String[] cols,
String[] tables,
SQLBuffer where,
SQLBuffer order,
boolean distinct,
boolean update)
DB2 does not allows "FOR UPDATE" clauses in statements that contain multiple tables. |
void |
blobToPreparedParameter(PreparedStatement st,
int index,
Object val)
|
Object |
charToSQL(char val)
Convert data into SQL for the current database platform. |
protected boolean |
dropTableDropsIndices()
DB2 automatically drops all indices when we drop the tables; since schema manipulation can be so slow, this can be a significant performance improvement when reloading tables. |
SQLBuffer[] |
getDropColumnSQL(Column column)
DB2 can't deal with dropping columns. |
int |
getMaxIndexNameLength()
|
int |
getMaxTableNameLength()
|
String |
getPlatform()
Return the title of this database platform, used for display only. |
PreparedStatement |
prepareStatement(Connection conn,
SQLBuffer buffer,
SQLExecutionManager manager,
int type,
int concur)
DB2 does not allow "SELECT ... |
protected void |
setupSQLTypeMap(SQLTypeMap map)
This limits the upper size on BLOB and CLOB to 1 megabyte. |
boolean |
supportsLocking()
This could probably be done better. |
| 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 String getPlatform()
AbstractDictionarygetPlatform in class AbstractDictionarypublic SQLBuffer[] getDropColumnSQL(Column column)
getDropColumnSQL in class AbstractDictionaryprotected void setupSQLTypeMap(SQLTypeMap map)
setupSQLTypeMap in class AbstractDictionarypublic int getMaxTableNameLength()
getMaxTableNameLength in class AbstractDictionarycom.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionarypublic int getMaxIndexNameLength()
getMaxIndexNameLength in class AbstractDictionarycom.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionarypublic boolean supportsLocking()
supportsLocking in class AbstractDictionarypublic Object charToSQL(char val)
DBDictionarycharToSQL in class AbstractDictionaryprotected boolean dropTableDropsIndices()
dropTableDropsIndices in class AbstractDictionary
public PreparedStatement prepareStatement(Connection conn,
SQLBuffer buffer,
SQLExecutionManager manager,
int type,
int concur)
throws SQLException
prepareStatement in class AbstractDictionarycom.solarmetric.kodo.impl.jdbc.schema.DBDictionary
public SQLBuffer addForUpdateClause(SQLBuffer buffer,
String[] cols,
String[] tables,
SQLBuffer where,
SQLBuffer order,
boolean distinct,
boolean update)
addForUpdateClause in class AbstractDictionary
public void blobToPreparedParameter(PreparedStatement st,
int index,
Object val)
throws SQLException
blobToPreparedParameter in class AbstractDictionary
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||