|
SolarMetric Kodo JDO 3.1.6 generated on August 25 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.MySQLDictionary
Dictionary for MySQL.
| 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 | |
MySQLDictionary()
|
|
| Method Summary | |
void |
configureReflectedColumn(Column col,
String typeName)
Configure the specified column with the typeName from the DatabaseMetaData. |
String[] |
getAddPrimaryKeySQL(PrimaryKey pk)
MySQL requires that a column be declared NOT NULL before it can be made a primary key. |
Object |
getBlobObject(ResultSet rs,
int column)
MySQL deserializes on getObject. |
String[] |
getCreateTableSQL(Table table)
Return a series of SQL statements to create the given table, complete with columns. |
String[] |
getDropIndexSQL(Index index)
Return a series of SQL statements to drop the given index. |
int |
getPreferredType(int type)
Return the preferred Types type for the given one. |
String |
getReservedWords()
Fields named "int" might be converted into default column names of "INT1", which MySQL has a problem with. |
String |
getTableType()
Return the MySQL table type to use when creating tables. |
void |
setTableType(String tableType)
Set the MySQL table type to use when creating tables. |
boolean |
supportsForeignKey(ForeignKey fk)
MySQL does not support composite foreign keys. |
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 MySQLDictionary()
| Method Detail |
public String getTableType()
public void setTableType(String tableType)
public int getPreferredType(int type)
DBDictionaryTypes type for the given one. Returns
the given type by default.getPreferredType in class DBDictionary
protected boolean supportsSizeInColumnDefinition(Column col,
String name)
DBDictionarysupportsSizeInColumnDefinition in class DBDictionarypublic String[] getCreateTableSQL(Table table)
DBDictionarygetCreateTableSQL in class DBDictionarypublic String[] getDropIndexSQL(Index index)
DBDictionaryDROP INDEX <index name> by default.getDropIndexSQL in class DBDictionarypublic String[] getAddPrimaryKeySQL(PrimaryKey pk)
getAddPrimaryKeySQL in class DBDictionarypublic String getReservedWords()
getReservedWords in class DBDictionarypublic boolean supportsForeignKey(ForeignKey fk)
supportsForeignKey in class DBDictionary
public Object getBlobObject(ResultSet rs,
int column)
throws SQLException
getBlobObject in class DBDictionary
public void configureReflectedColumn(Column col,
String typeName)
DBDictionaryDatabaseMetaData.configureReflectedColumn in class DBDictionarykodo.jdbc.sql.DBDictionarycol - the Column to configuretypeName - the TYPE_NAME as reported by the metadata
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||