|
SolarMetric Kodo JDO 3.3.5 generated on August 31 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 | |
boolean |
driverDeserializesBlobs
Whether the driver automatically deserializes blobs. |
String |
tableType
The MySQL table type to use when creating tables; defaults to innodb. |
boolean |
useClobs
Whether to use clobs. |
| Constructor Summary | |
MySQLDictionary()
|
|
| Method Summary | |
protected void |
appendSelectRange(SQLBuffer buf,
long start,
long end)
If this dictionary can select ranges, 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. |
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
public boolean useClobs
public boolean driverDeserializesBlobs
| 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 DBDictionary
protected void appendSelectRange(SQLBuffer buf,
long start,
long end)
DBDictionaryappendSelectRange in class DBDictionary
protected Column newColumn(ResultSet colMeta)
throws SQLException
DBDictionarynewColumn in class DBDictionary
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||