|
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.InformixDictionary
Dictionary for Informix. Notable features are:
getLockWaitSeconds() and getLockModeEnabled.
| Fields inherited from class com.solarmetric.kodo.impl.jdbc.schema.dict.AbstractDictionary |
CENTI, DECI, meta, MICRO, MILLI, NANO, NUMBER_FORMAT, SEC |
| Constructor Summary | |
InformixDictionary()
|
|
| Method Summary | |
void |
createdSQLExecutionManager(SQLExecutionManager manager)
Informix need to invoke "SET LOCK MODE ..." statement on all Connections, since otherwise inserts against a locked table
will not wait to obtain a lock, but will fail immediately. |
SQLBuffer[] |
getCreateTableSQL(Table table)
Return a series of SQL statements to create the given table, including any indexes it has. |
boolean |
getLockModeEnabled()
If true, then we will issue a "SET LOCK MODE TO WAIT N" statement whenever we create a Connection, in order
allow waiting on locks. |
int |
getLockWaitSeconds()
If getLockModeEnabled() is true, then this
parameter specifies the number of seconds we will wait to
obtain a lock for inserts and pessimistic locking. |
PreparedStatement |
prepareStatement(Connection conn,
SQLBuffer buffer,
SQLExecutionManager manager,
int type,
int concur)
Informix does not allow "SELECT ... |
void |
setLockModeEnabled(boolean lockModeEnabled)
If true, then we will issue a "SET LOCK MODE TO WAIT N" statement whenever we create a Connection, in order
allow waiting on locks. |
void |
setLockWaitSeconds(int lockWaitSeconds)
If getLockModeEnabled() is true, then this
parameter specifies the number of seconds we will wait to
obtain a lock for inserts and pessimistic locking. |
protected void |
setupSQLTypeMap(SQLTypeMap map)
This is the most commonly overridden method when porting to a new database. |
SQLBuffer |
toSelect(String[] cols,
String[] tables,
SQLBuffer where,
SQLBuffer order,
boolean dstnct,
boolean update)
Informix only supports locking when where is only one table, and not if it is a distinct query. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InformixDictionary()
| Method Detail |
protected void setupSQLTypeMap(SQLTypeMap map)
AbstractDictionarysetupSQLTypeMap in class AbstractDictionarypublic SQLBuffer[] getCreateTableSQL(Table table)
DBDictionarygetCreateTableSQL in class AbstractDictionarypublic void createdSQLExecutionManager(SQLExecutionManager manager)
Connections, since otherwise inserts against a locked table
will not wait to obtain a lock, but will fail immediately.createdSQLExecutionManager in class AbstractDictionary
public PreparedStatement prepareStatement(Connection conn,
SQLBuffer buffer,
SQLExecutionManager manager,
int type,
int concur)
throws SQLException
prepareStatement in class AbstractDictionarycom.solarmetric.kodo.impl.jdbc.schema.DBDictionary
public SQLBuffer toSelect(String[] cols,
String[] tables,
SQLBuffer where,
SQLBuffer order,
boolean dstnct,
boolean update)
toSelect in class AbstractDictionarycom.solarmetric.kodo.impl.jdbc.schema.DBDictionarycols - list of values the columns to selecttables - list of the tables to select fromwhere - the WHERE conditions; may be null if noneorder - the ORDER BY conditions; may be null if nonedistinct - if true, this should be a SELECT DISTINCT-equivalent
queryupdate - if true this should be a SELECT FOR
UPDATE-equivalent querypublic void setLockModeEnabled(boolean lockModeEnabled)
Connection, in order
allow waiting on locks.public boolean getLockModeEnabled()
Connection, in order
allow waiting on locks.public void setLockWaitSeconds(int lockWaitSeconds)
getLockModeEnabled() is true, then this
parameter specifies the number of seconds we will wait to
obtain a lock for inserts and pessimistic locking.public int getLockWaitSeconds()
getLockModeEnabled() is true, then this
parameter specifies the number of seconds we will wait to
obtain a lock for inserts and pessimistic locking.
|
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 | ||||||||