|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.jdbc.sql.RowManagerImpl
public class RowManagerImpl
Manages SQL rows during an insert/update/delete process.
Constructor Summary | |
---|---|
RowManagerImpl(boolean order)
Constructor. |
Method Summary | |
---|---|
void |
flushAllRows(Row row)
Flush the logical row. |
void |
flushSecondaryRow(Row row)
Flush the secondary row; after flushing the row is available for reuse. |
Collection |
getAllRowDeletes()
Return any 'all row' deletes. |
Row |
getAllRows(Table table,
int action)
Return a logical row representing an update that should be made to all rows of the given table. |
Collection |
getAllRowUpdates()
Return any 'all row' updates. |
Collection |
getDeletes()
Return all deleted primary rows. |
Collection |
getInserts()
Return all inserted primary rows. |
List |
getOrdered()
Return the ordered primary rows. |
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. |
Collection |
getSecondaryDeletes()
Return all deleted secondary rows. |
Row |
getSecondaryRow(Table table,
int action)
Return a row for the given secondary table. |
Collection |
getSecondaryUpdates()
Return all inserted and updated secondary rows. |
Collection |
getUpdates()
Return all updated primary rows. |
boolean |
hasAutoAssignConstraints()
Whether any primary rows have auto-assign constraints. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowManagerImpl(boolean order)
order
- whether to keep track of the order in which rows are addedMethod Detail |
---|
public boolean hasAutoAssignConstraints()
public List getOrdered()
public Collection getInserts()
public Collection getUpdates()
public Collection getDeletes()
public Collection getSecondaryUpdates()
public Collection getSecondaryDeletes()
public Collection getAllRowUpdates()
public Collection getAllRowDeletes()
public Row getSecondaryRow(Table table, int action)
RowManager
Row.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 RowManager
public void flushSecondaryRow(Row row) throws SQLException
RowManager
flushSecondaryRow
in interface RowManager
SQLException
public Row getAllRows(Table table, int action)
RowManager
Row.ACTION_UPDATE
, Row.ACTION_DELETE
.
getAllRows
in interface RowManager
public void flushAllRows(Row row)
RowManager
flushAllRows
in interface RowManager
public Row getRow(Table table, int action, OpenJPAStateManager sm, boolean create)
RowManager
create
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 RowManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation is deprecated and will be removed in the next release of WebLogic Server.