|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.jdbc.sql.AbstractRow | +--kodo.jdbc.meta.StateImageVersionIndicator.CustomUpdate
Row implementation we use to pass to versionable mappings so they can set up the where conditions we need to add to update statements.
Fields inherited from interface kodo.jdbc.sql.Row |
ACTION_DELETE, ACTION_INSERT, ACTION_UNKNOWN, ACTION_UPDATE |
Method Summary | |
void |
flushAllRows(Row row)
Flush the logical row. |
void |
flushSecondaryRow(Row row)
Flush the secondary row; after flushing the row is available for reuse. |
Row |
getAllRows(Table table,
int action)
Return a logical row representing an update that should be made to all rows of the given table. |
Row |
getRow(Table table,
int action,
KodoStateManager sm,
boolean create)
Return the row for the given table and owner object, or null if create is false and the row has not already been created. |
Row |
getRow(Table table,
int action,
Object oid,
boolean create)
|
Row |
getSecondaryRow(Table table,
int action)
Return a row for the given secondary table. |
String |
getSQL()
Return a boolean SQL expression that should be added to the WHERE clause of an UPDATE to test whether the current database record matches our stored version. |
protected void |
setObjectInternal(Column col,
Object val,
int metaType,
Object arg)
|
int |
setParameters(PreparedStatement stmnt,
int idx)
Set the prepared parameter values used in the SQL returned from getSQL() . |
protected void |
whereObjectInternal(Column col,
Object val,
int metaType,
Object arg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public String getSQL()
public int setParameters(PreparedStatement stmnt, int idx) throws SQLException
getSQL()
.stmnt
- the statement to parameterizeidx
- the parameter index at which to startpublic Row getRow(Table table, int action, KodoStateManager sm, boolean create)
RowManager
create
is false and the row has not already been created.
The action must be one of Row.ACTION_INSERT
,
Row.ACTION_UPDATE
, Row.ACTION_DELETE
.getRow
in interface RowManager
public Row getRow(Table table, int action, Object oid, boolean create)
public Row getSecondaryRow(Table table, int action)
RowManager
Row.ACTION_INSERT
,
Row.ACTION_UPDATE
, Row.ACTION_DELETE
.getSecondaryRow
in interface RowManager
public void flushSecondaryRow(Row row)
RowManager
flushSecondaryRow
in interface RowManager
public Row getAllRows(Table table, int action)
RowManager
Row.ACTION_UPDATE
, Row.ACTION_DELETE
.getAllRows
in interface RowManager
public void flushAllRows(Row row)
RowManager
flushAllRows
in interface RowManager
protected void setObjectInternal(Column col, Object val, int metaType, Object arg) throws SQLException
setObjectInternal
in class AbstractRow
protected void whereObjectInternal(Column col, Object val, int metaType, Object arg) throws SQLException
whereObjectInternal
in class AbstractRow
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |