kodo.jdbc.meta.strats
Class LockGroupStateComparisonVersionStrategy.CustomUpdate
java.lang.Object
org.apache.openjpa.jdbc.sql.RowImpl
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.
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 |
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
Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.