ACTION_DELETE, ACTION_INSERT, ACTION_UNKNOWN, ACTION_UPDATE
Modifier | Constructor and Description |
---|---|
protected |
SecondaryRow(Column[] cols,
int action) |
|
SecondaryRow(Table table,
int action)
Constructor; supply table and action.
|
Modifier and Type | Method and Description |
---|---|
void |
copyInto(RowImpl row,
boolean whereOnly)
Copy all values from this row into the given one.
|
protected String |
generateSQL(DBDictionary dict)
Generate the SQL for this row; the result of this method is cached.
|
protected RowImpl |
newInstance(Column[] cols,
int action)
Return a new row.
|
void |
setForeignKey(ForeignKey fk,
ColumnIO io,
OpenJPAStateManager sm)
Set the value of the given foreign key to the given object.
|
void |
setForeignKey(ForeignKey fk,
OpenJPAStateManager sm)
Set the value of the given foreign key to the given object.
|
void |
setRelationId(Column col,
OpenJPAStateManager sm,
RelationId rel)
Set the value of the given column to the identity of given instance,
using the given callback to create the column value.
|
canSet, canSetAny, clearForeignKey, clearRelationId, clone, flush, flush, getAction, getColumns, getFailedObject, getParameterCount, getPrimaryKey, getSet, getSQL, 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, setInt, setLocale, setLong, setNull, setNull, setNumber, setObject, setObject, setPrimaryKey, setPrimaryKey, setRaw, 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
public SecondaryRow(Table table, int action)
protected SecondaryRow(Column[] cols, int action)
public void setForeignKey(ForeignKey fk, OpenJPAStateManager sm) throws SQLException
Row
setForeignKey
in interface Row
setForeignKey
in class RowImpl
SQLException
public void setForeignKey(ForeignKey fk, ColumnIO io, OpenJPAStateManager sm) throws SQLException
Row
setForeignKey
in interface Row
setForeignKey
in class RowImpl
io
- information on which columns are settable; may be nullSQLException
public void setRelationId(Column col, OpenJPAStateManager sm, RelationId rel) throws SQLException
Row
setRelationId
in interface Row
setRelationId
in class RowImpl
SQLException
protected String generateSQL(DBDictionary dict)
RowImpl
generateSQL
in class RowImpl
protected RowImpl newInstance(Column[] cols, int action)
RowImpl
newInstance
in class RowImpl
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.