SolarMetric Kodo JDO 3.0.3 generated on February 20 2004

kodo.jdbc.meta
Class StateImageVersionIndicator.CustomUpdate

java.lang.Object
  |
  +--kodo.jdbc.sql.AbstractRow
        |
        +--kodo.jdbc.meta.StateImageVersionIndicator.CustomUpdate
All Implemented Interfaces:
Row, RowManager
Enclosing class:
StateImageVersionIndicator

public class StateImageVersionIndicator.CustomUpdate
extends AbstractRow
implements RowManager

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 kodo.jdbc.sql.AbstractRow
flushJoinValues, getAction, getFailedObject, getPrimaryKey, getTable, setArray, setAsciiStream, setBigDecimal, setBigInteger, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setChar, setCharacterStream, setClob, setDate, setDate, setDouble, setFailedObject, setFloat, setForeignKey, setInt, setLocale, setLong, setNull, setObject, setPrimaryKey, setShort, setString, setTime, setTimestamp, toSQL, whereArray, whereAsciiStream, whereBigDecimal, whereBigInteger, whereBinaryStream, whereBlob, whereBoolean, whereByte, whereBytes, whereChar, whereCharacterStream, whereClob, whereDate, whereDate, whereDouble, whereFloat, whereForeignKey, whereInt, whereLocale, whereLong, whereNull, whereObject, wherePrimaryKey, whereShort, whereString, whereTime, whereTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSQL

public 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.

setParameters

public int setParameters(PreparedStatement stmnt,
                         int idx)
                  throws SQLException
Set the prepared parameter values used in the SQL returned from getSQL().
Parameters:
stmnt - the statement to parameterize
idx - the parameter index at which to start

getRow

public Row getRow(Table table,
                  int action,
                  KodoStateManager sm,
                  boolean create)
Description copied from interface: RowManager
Return the row for the given table and owner object, or null if 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.
Specified by:
getRow in interface RowManager

getRow

public Row getRow(Table table,
                  int action,
                  Object oid,
                  boolean create)

getSecondaryRow

public Row getSecondaryRow(Table table,
                           int action)
Description copied from interface: RowManager
Return a row for the given secondary table. The action must be one of Row.ACTION_INSERT, Row.ACTION_UPDATE, Row.ACTION_DELETE.
Specified by:
getSecondaryRow in interface RowManager

flushSecondaryRow

public void flushSecondaryRow(Row row)
Description copied from interface: RowManager
Flush the secondary row; after flushing the row is available for reuse. It will retain all previously set values.
Specified by:
flushSecondaryRow in interface RowManager

getAllRows

public Row getAllRows(Table table,
                      int action)
Description copied from interface: RowManager
Return a logical row representing an update that should be made to all rows of the given table. The action must be one of Row.ACTION_UPDATE, Row.ACTION_DELETE.
Specified by:
getAllRows in interface RowManager

flushAllRows

public void flushAllRows(Row row)
Description copied from interface: RowManager
Flush the logical row.
Specified by:
flushAllRows in interface RowManager

setObjectInternal

protected void setObjectInternal(Column col,
                                 Object val,
                                 int metaType,
                                 Object arg)
                          throws SQLException
Overrides:
setObjectInternal in class AbstractRow

whereObjectInternal

protected void whereObjectInternal(Column col,
                                   Object val,
                                   int metaType,
                                   Object arg)
                            throws SQLException
Overrides:
whereObjectInternal in class AbstractRow

SolarMetric Kodo JDO 3.0.3 generated on February 20 2004

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.