|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
| 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.
| Field Summary | |
String |
tableType
The MySQL table type to use when creating tables; defaults to innodb. |
| Constructor Summary | |
MySQLDictionary()
|
|
| Method Summary | |
protected void |
appendSelectPostRange(SQLBuffer buf,
long start,
long end)
If this dictionary places range limits on select statements at the end, just before the FOR UPDATE clause, use this method to append the range SQL. |
String[] |
getAddForeignKeySQL(ForeignKey fk)
Return a series of SQL statements to add the given foreign key to its table. |
String[] |
getAddPrimaryKeySQL(PrimaryKey pk)
Return a series of SQL statements to add the given primary key to its table. |
Object |
getBlobObject(ResultSet rs,
int column)
Convert the specified column of the SQL ResultSet to the proper java type. |
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. |
protected String |
getForeignKeyConstraintSQL(ForeignKey fk)
Return the declaration SQL for the given foreign key, or null if it is not supported. |
int |
getPreferredType(int type)
Return the preferred Types type for the given one. |
protected Column |
newColumn(ResultSet colMeta)
Create a new column from the information in the schema metadata. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public String tableType
| Constructor Detail |
public MySQLDictionary()
| Method Detail |
public Object getBlobObject(ResultSet rs,
int column)
throws SQLException
DBDictionarygetBlobObject in class DBDictionarypublic int getPreferredType(int type)
DBDictionaryTypes type for the given one. Returns
the given type by default.getPreferredType 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)
DBDictionaryALTER TABLE <table name> ADD
<pk cons sql > by default.getAddPrimaryKeySQL in class DBDictionarypublic String[] getAddForeignKeySQL(ForeignKey fk)
DBDictionaryALTER TABLE <table name> ADD
<fk cons sql > by default.getAddForeignKeySQL in class DBDictionaryprotected String getForeignKeyConstraintSQL(ForeignKey fk)
DBDictionaryDBDictionary.getCreateTableSQL(kodo.jdbc.schema.Table) and DBDictionary.getAddForeignKeySQL(kodo.jdbc.schema.ForeignKey). Returns
CONSTRAINT <cons name> FOREIGN KEY (<col list>)
REFERENCES <foreign table> (<col list>)
[ON DELETE <action>] by default.getForeignKeyConstraintSQL in class DBDictionary
protected void appendSelectPostRange(SQLBuffer buf,
long start,
long end)
DBDictionaryappendSelectPostRange in class DBDictionary
protected Column newColumn(ResultSet colMeta)
throws SQLException
DBDictionarynewColumn in class DBDictionary
|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||