|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary
|
+--com.solarmetric.rd.kodo.impl.jdbc.schema.dict.MySQLDictionary
Dictionary for MySQL.
| Field Summary |
| Fields inherited from class com.solarmetric.rd.kodo.impl.jdbc.schema.DBDictionary |
CENTI, DECI, MICRO, MILLI, NANO, SEC |
| Constructor Summary | |
MySQLDictionary()
|
|
| Method Summary | |
java.lang.String[] |
getCreateTableSQL(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
Return a series of SQL statements to create the given table, complete with columns and all constraints. |
java.lang.String[] |
getDropIndexSQL(com.solarmetric.rd.kodo.impl.jdbc.schema.Index index)
Return a series of SQL statements to drop the given index. |
java.lang.String |
getPlatform()
Return the database platform for this dictionary. |
int |
getPreferredType(int type)
Return the preferred Types type for the given one. |
java.lang.String |
getTableType()
Return the MySQL table type to use when creating tables. |
protected java.lang.String |
getTypeName(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
Return the preferred database type for the given column's type from Types. |
void |
setTableType(java.lang.String tableType)
Set the MySQL table type to use when creating tables. |
boolean |
supportsDeferredConstraints()
Return true if the database supports deferred constraints. |
| 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 java.lang.String getTableType()
public void setTableType(java.lang.String tableType)
public java.lang.String getPlatform()
DBDictionary
getPlatform in class DBDictionarypublic boolean supportsDeferredConstraints()
DBDictionary
supportsDeferredConstraints in class DBDictionarypublic int getPreferredType(int type)
DBDictionaryTypes type for the given one. Returns
the given type by default.
getPreferredType in class DBDictionaryprotected java.lang.String getTypeName(com.solarmetric.rd.kodo.impl.jdbc.schema.Column col)
DBDictionaryTypes. Defaults to using the DBMetaData.
getTypeName in class DBDictionarypublic java.lang.String[] getCreateTableSQL(com.solarmetric.rd.kodo.impl.jdbc.schema.Table table)
DBDictionary
getCreateTableSQL in class DBDictionarypublic java.lang.String[] getDropIndexSQL(com.solarmetric.rd.kodo.impl.jdbc.schema.Index index)
DBDictionaryDROP INDEX <index name> by default.
getDropIndexSQL in class DBDictionary
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||