|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.jdbc.sql.RowImpl org.apache.openjpa.jdbc.sql.SecondaryRow
public class SecondaryRow
Secondary table row that tracks foreign keys to auto-inc columns.
Field Summary |
---|
Fields inherited from class org.apache.openjpa.jdbc.sql.RowImpl |
---|
flags, NULL, VALID |
Fields inherited from interface org.apache.openjpa.jdbc.sql.Row |
---|
ACTION_DELETE, ACTION_INSERT, ACTION_UNKNOWN, ACTION_UPDATE |
Constructor Summary | |
---|---|
SecondaryRow(Table table,
int action)
Constructor; supply table and action. |
Method Summary | |
---|---|
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(Table table,
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecondaryRow(Table table, int action)
Method Detail |
---|
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 null
SQLException
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(Table table, int action)
RowImpl
newInstance
in class RowImpl
public void copyInto(RowImpl row, boolean whereOnly)
RowImpl
copyInto
in class RowImpl
whereOnly
- if true, only copy where conditions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |