public static class StateComparisonVersionStrategy.CustomUpdate extends RowImpl implements RowManager
ACTION_DELETE, ACTION_INSERT, ACTION_UNKNOWN, ACTION_UPDATE| Modifier and Type | Method and Description |
|---|---|
void |
flushAllRows(Row row)
Flush the logical row.
|
void |
flushSecondaryRow(Row row)
Flush the secondary row; after flushing the row is available for reuse.
|
java.util.Collection |
getAllRowDeletes() |
Row |
getAllRows(Table table,
int action)
Return a logical row representing an update that should be made to
all rows of the given table.
|
java.util.Collection |
getAllRowUpdates() |
java.util.Collection |
getDeletes() |
java.util.Collection |
getInserts() |
Row |
getRow(Table table,
int action,
OpenJPAStateManager 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. |
java.util.Collection |
getSecondaryDeletes() |
Row |
getSecondaryRow(Table table,
int action)
Return a row for the given secondary table.
|
java.util.Collection |
getSecondaryUpdates() |
java.lang.String |
getSQL(DBDictionary dict)
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.
|
java.util.Collection |
getUpdates() |
boolean |
hasAutoAssignConstraints() |
protected RowImpl |
newInstance(Column[] cols,
int action)
Return a new row.
|
void |
setObject(Column col,
java.lang.Object val)
Set the value of the given column in this row.
|
canSet, canSetAny, clearForeignKey, clearRelationId, clone, copyInto, flush, flush, generateSQL, getAction, getColumns, getFailedObject, getParameterCount, getPrimaryKey, getSet, getTable, getTypes, getVals, getWhere, isDependent, isFlushed, isValid, setArray, setAsciiStream, setBigDecimal, setBigInteger, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCalendar, setChar, setCharacterStream, setClob, setDate, setDate, setDouble, setFailedObject, setFloat, setFlushed, 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, whereTimestamppublic java.lang.String getSQL(DBDictionary dict)
protected RowImpl newInstance(Column[] cols, int action)
RowImplnewInstance in class RowImplpublic boolean hasAutoAssignConstraints()
public java.util.Collection getInserts()
public java.util.Collection getUpdates()
public java.util.Collection getDeletes()
public java.util.Collection getSecondaryUpdates()
public java.util.Collection getSecondaryDeletes()
public java.util.Collection getAllRowUpdates()
public java.util.Collection getAllRowDeletes()
public Row getRow(Table table, int action, OpenJPAStateManager sm, boolean create)
RowManagercreate 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 RowManagerpublic Row getSecondaryRow(Table table, int action)
RowManagerRow.ACTION_INSERT,
Row.ACTION_UPDATE, Row.ACTION_DELETE.
Note that secondary rows are not considered when creating the foreign
key dependency graph, with can cause constraint violations when using
the UPDATE action. Only use this action if the secondary
row does not have restrict-action foreign keys. Otherwise use both
a delete and then an insert to perform the update.getSecondaryRow in interface RowManagerpublic void flushSecondaryRow(Row row)
RowManagerflushSecondaryRow in interface RowManagerpublic Row getAllRows(Table table, int action)
RowManagerRow.ACTION_UPDATE, Row.ACTION_DELETE.getAllRows in interface RowManagerpublic void flushAllRows(Row row)
RowManagerflushAllRows in interface RowManagerCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.