Kodo 4.2.0. generated on July 28 2008

kodo.jdbc.meta.strats
Class LockGroupStateComparisonVersionStrategy.CustomUpdate

java.lang.Object
  extended by org.apache.openjpa.jdbc.sql.RowImpl
      extended by kodo.jdbc.meta.strats.LockGroupStateComparisonVersionStrategy.CustomUpdate
All Implemented Interfaces:
Cloneable, Row, RowManager
Enclosing class:
LockGroupStateComparisonVersionStrategy

public static class LockGroupStateComparisonVersionStrategy.CustomUpdate
extends RowImpl
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.


Field Summary
 
Fields inherited from class org.apache.openjpa.jdbc.sql.RowImpl
flags, NULL, RAW, VALID
 
Fields inherited from interface org.apache.openjpa.jdbc.sql.Row
ACTION_DELETE, ACTION_INSERT, ACTION_UNKNOWN, ACTION_UPDATE
 
Method Summary
 void flushAllRows(Row row)
           
 void flushSecondaryRow(Row row)
           
 Collection getAllRowDeletes()
           
 Row getAllRows(Table table, int action)
           
 Collection getAllRowUpdates()
           
 Collection getDeletes()
           
 Collection getInserts()
           
 Row getRow(Table table, int action, OpenJPAStateManager sm, boolean create)
           
 Collection getSecondaryDeletes()
           
 Row getSecondaryRow(Table table, int action)
           
 Collection getSecondaryUpdates()
           
 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.
 Collection getUpdates()
           
 boolean hasAutoAssignConstraints()
           
protected  RowImpl newInstance(Column[] cols, int action)
           
 void setObject(Column col, Object val)
           
 
Methods inherited from class org.apache.openjpa.jdbc.sql.RowImpl
canSet, canSetAny, clearForeignKey, clearRelationId, clone, copyInto, flush, flush, generateSQL, getAction, getColumns, getFailedObject, getParameterCount, getPrimaryKey, getSet, getSQL, getTable, getTypes, getVals, getWhere, isDependent, isValid, setArray, setAsciiStream, setBigDecimal, setBigInteger, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCalendar, setChar, setCharacterStream, setClob, setDate, setDate, setDouble, setFailedObject, setFloat, setForeignKey, setForeignKey, setInt, setLocale, setLong, setNull, setNull, setNumber, setObject, setPrimaryKey, setPrimaryKey, setRaw, setRelationId, setShort, setString, setTime, setTimestamp, setValid, whereArray, whereAsciiStream, whereBigDecimal, whereBigInteger, whereBinaryStream, whereBlob, whereBoolean, whereByte, whereBytes, whereCalendar, whereChar, whereCharacterStream, whereClob, whereDate, whereDate, whereDouble, whereFloat, whereForeignKey, whereInt, whereLocale, whereLong, whereNull, whereNumber, whereObject, whereObject, wherePrimaryKey, whereRaw, whereShort, whereString, whereTime, whereTimestamp
 
Methods inherited from class java.lang.Object
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.


newInstance

protected RowImpl newInstance(Column[] cols,
                              int action)
Overrides:
newInstance in class RowImpl

hasAutoAssignConstraints

public boolean hasAutoAssignConstraints()

getInserts

public Collection getInserts()

getUpdates

public Collection getUpdates()

getDeletes

public Collection getDeletes()

getSecondaryUpdates

public Collection getSecondaryUpdates()

getSecondaryDeletes

public Collection getSecondaryDeletes()

getAllRowUpdates

public Collection getAllRowUpdates()

getAllRowDeletes

public Collection getAllRowDeletes()

getRow

public Row getRow(Table table,
                  int action,
                  OpenJPAStateManager sm,
                  boolean create)
Specified by:
getRow in interface RowManager

getSecondaryRow

public Row getSecondaryRow(Table table,
                           int action)
Specified by:
getSecondaryRow in interface RowManager

flushSecondaryRow

public void flushSecondaryRow(Row row)
Specified by:
flushSecondaryRow in interface RowManager

getAllRows

public Row getAllRows(Table table,
                      int action)
Specified by:
getAllRows in interface RowManager

flushAllRows

public void flushAllRows(Row row)
Specified by:
flushAllRows in interface RowManager

setObject

public void setObject(Column col,
                      Object val)
               throws SQLException
Specified by:
setObject in interface Row
Overrides:
setObject in class RowImpl
Throws:
SQLException

Kodo 4.2.0. generated on July 28 2008

Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.