|
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.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)
Convert the specified column of the SQL ResultSet to the proper java type. |
protected SQLBuffer |
getColumnDeclaration(Column column)
This method can be overridden if the database does not support standard column declarations, which are in the form: <column-name> <sql-type> [NOT NULL]. |
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. |
long |
getNextAutoIncrementValue(Table table,
SQLExecutionManager sqlem)
Returns the next auto-increment value for a given table. |
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 |
supportsAutoIncrement()
Returns true if this dictionary / database
combination supports auto-incrementing primary-key columns. |
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
DBDictionaryblobFromSQL 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 AbstractDictionarypublic boolean supportsAutoIncrement()
DBDictionarytrue if this dictionary / database
combination supports auto-incrementing primary-key columns.supportsAutoIncrement in class AbstractDictionary
public long getNextAutoIncrementValue(Table table,
SQLExecutionManager sqlem)
throws SQLException
DBDictionarygetNextAutoIncrementValue in class AbstractDictionaryprotected SQLBuffer getColumnDeclaration(Column column)
AbstractDictionary<column-name> <sql-type> [NOT NULL].
Where NOT NULL is appended if it is a primary key column.getColumnDeclaration 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 | ||||||||