|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| 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.MySQLDictionary
Implementation of the DBDictionary interface for MySQL.
| Fields inherited from class com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary |
|---|
CENTI, DECI, meta, MICRO, MILLI, NANO, NUMBER_FORMAT, SEC |
| Constructor Summary | |
|---|---|
MySQLDictionary()
|
|
| Method Summary | |
|---|---|
Object |
blobFromSQL(ResultSet rs,
int column)
|
SQLBuffer[] |
getCreateTableSQL(Table table)
Override the standard create table SQL to add a table type. |
protected SQLBuffer |
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. |
boolean |
supportsLocking()
Returns whether or not this database supports locking (e.g., FOR UPDATE clause in SELECT). |
| 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 boolean getSupportsSelectForUpdate()
public boolean supportsLocking()
DBDictionarysupportsLocking in class AbstractDictionarypublic void setSupportsSelectForUpdate(boolean supports)
public String getTableType()
public void setTableType(String tableType)
public String getPlatform()
AbstractDictionarygetPlatform in class AbstractDictionarypublic SQLBuffer[] getCreateTableSQL(Table table)
getCreateTableSQL in class AbstractDictionary
public Object blobFromSQL(ResultSet rs,
int column)
throws SQLException
blobFromSQL in class AbstractDictionarypublic String stringToSQL(String string)
AbstractDictionarytoSQL method for Strings; by defualt
escapes all single quote characters with another single quote.stringToSQL in class AbstractDictionaryprotected void setupSQLTypeMap(SQLTypeMap map)
AbstractDictionarysetupSQLTypeMap in class AbstractDictionaryprotected SQLBuffer getDropIndexSQL(Index index)
AbstractDictionaryDROP INDEX <index-name>getDropIndexSQL in class AbstractDictionary
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||