|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| 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.EmpressDictionary
Dictionary for Empress using ODBC server combined with their type 2 driver. This dictionary may issues with other driver/topology configurations.
Empress does not allow multiple connections to read rows read in a transaction, effectively forcing pessimistic transactions regardless of javax.jdo.option.Optimistic. To allow users to use optimistic transactions in a multi-connection evironment, you must set the AllowConcurrentRead setting to true in addition to JDO options.
Empress has the following additional limitations:
| Fields inherited from class kodo.jdbc.sql.DBDictionary |
CENTI, DECI, MICRO, MILLI, NANO, SCHEMA_CASE_DEFAULT, SCHEMA_CASE_LOWER, SCHEMA_CASE_PRESERVE, SCHEMA_CASE_UPPER, SEC |
| Constructor Summary | |
EmpressDictionary()
|
|
| Method Summary | |
boolean |
getAllowConcurrentRead()
This setting inserts "BYPASS" after every "SELECT". |
String[] |
getDropColumnSQL(Column column)
Empress wants dropped columns in the form: ALTER TABLE foo DELETE columnToDrop |
int |
getMaxColumnNameLength()
Returns the maximum number of characters in a column name for this database. |
int |
getMaxTableNameLength()
Returns the maximum number of characters in a table name for this database. |
boolean |
isSystemIndex(String name,
Table table)
This method is used to filter system indexes from database metadata. |
void |
setAllowConcurrentRead(boolean allow)
Defaults to false. |
void |
setDouble(PreparedStatement stmnt,
int idx,
double val)
Set the given value as a parameter to the statement. |
void |
setFloat(PreparedStatement stmnt,
int idx,
float val)
Set the given value as a parameter to the statement. |
boolean |
supportsSizeInColumnDefinition(Column col,
String name)
Returns true if a schema definition statement supports appending the size after the column type. |
SQLBuffer |
toSelect(SQLBuffer selects,
SQLBuffer from,
SQLBuffer where,
SQLBuffer order,
boolean distinct,
boolean forUpdate)
Overrides to allow a "BYPASS" to be inserted post-"select" pending on AllowConcurrentRead setting. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EmpressDictionary()
| Method Detail |
public boolean getAllowConcurrentRead()
public void setAllowConcurrentRead(boolean allow)
public int getMaxTableNameLength()
DBDictionarygetMaxTableNameLength in class DBDictionarypublic int getMaxColumnNameLength()
DBDictionarygetMaxColumnNameLength in class DBDictionary
public boolean isSystemIndex(String name,
Table table)
DBDictionaryisSystemIndex in class DBDictionarykodo.jdbc.sql.DBDictionaryname - the index nametable - the index table
public boolean supportsSizeInColumnDefinition(Column col,
String name)
DBDictionarysupportsSizeInColumnDefinition in class DBDictionary
public SQLBuffer toSelect(SQLBuffer selects,
SQLBuffer from,
SQLBuffer where,
SQLBuffer order,
boolean distinct,
boolean forUpdate)
toSelect in class DBDictionarypublic String[] getDropColumnSQL(Column column)
getDropColumnSQL in class DBDictionary
public void setFloat(PreparedStatement stmnt,
int idx,
float val)
throws SQLException
DBDictionarysetFloat in class DBDictionary
public void setDouble(PreparedStatement stmnt,
int idx,
double val)
throws SQLException
DBDictionarysetDouble in class DBDictionary
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||