|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| 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.GenericDictionary
|
+--com.solarmetric.kodo.impl.jdbc.schema.dict.MySQLDictionary
Implementation of the DBDictionary interface for MySQL.
| Fields inherited from class com.solarmetric.kodo.impl.jdbc.schema.dict.GenericDictionary |
CENTI, DECI, meta, MICRO, MILLI, NANO, NUMBER_FORMAT, SEC |
| Constructor Summary | |
MySQLDictionary()
|
|
| Method Summary | |
Object |
blobFromSQL(ResultSet rs,
int column)
|
String[] |
getCreateTableSQL(Table table)
Override the standard create table SQL to add a table type. |
protected String |
getDropIndexSQL(Index index)
Return the SQL to drop an index. |
String |
getPlatform()
Return the title of this database platform, used for display only. |
boolean |
getSupportsSelectForUpdate()
Return whether this version of MySQL supports the 'SELECT FOR UPDATE' SQL clause. |
String |
getTableType()
Return the MySQL table type to use when creating tables. |
void |
setSupportsSelectForUpdate(boolean supports)
Set whether this version of MySQL supports the 'SELECT FOR UPDATE' SQL clause. |
void |
setTableType(String tableType)
Set the MySQL table type to use when creating tables. |
protected void |
setupSQLTypeMap(SQLTypeMap map)
This is the most commonly overridden method when porting to a new database. |
String |
stringToSQL(String string)
Called from the toSQL method for Strings; by defualt
escapes all single quote characters with another single quote. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MySQLDictionary()
| Method Detail |
public boolean getSupportsSelectForUpdate()
public void setSupportsSelectForUpdate(boolean supports)
public String getTableType()
public void setTableType(String tableType)
public String getPlatform()
GenericDictionarygetPlatform in class GenericDictionarypublic String[] getCreateTableSQL(Table table)
getCreateTableSQL in class GenericDictionary
public Object blobFromSQL(ResultSet rs,
int column)
throws SQLException
blobFromSQL in class GenericDictionarypublic String stringToSQL(String string)
GenericDictionarytoSQL method for Strings; by defualt
escapes all single quote characters with another single quote.stringToSQL in class GenericDictionaryprotected void setupSQLTypeMap(SQLTypeMap map)
GenericDictionarysetupSQLTypeMap in class GenericDictionaryprotected String getDropIndexSQL(Index index)
GenericDictionaryDROP INDEX <index-name>getDropIndexSQL in class GenericDictionary
|
SolarMetric Kodo JDO Enterprise Edition 2.3.1 generated on August 20 2002 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||