This class must not contain any persistent state, as this class is stored in the log record of the insert/delete.
org.apache.derby.iapi.store.raw.LogicalUndoable , org.apache.derby.iapi.store.raw.Undoable#generateUndo
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Page | findUndo(Transaction
the transaction doing the rollback rawtran, LogicalUndoable the page operation that supports logical undo. This
LogicalUndo function pointer is a field of that
pageOperation pageOp, LimitObjectInput data stored in the log stream that contains the record
data necessary to restore the row. in)Implements org. Find the page and record to undo. |
| public int | getTypeFormatId()
Implements org. Return my format identifier. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. Restore the in-memory representation from the stream. |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. This object has no state, so nothing to write. |
| B2IUndo | back to summary |
|---|---|
| public B2IUndo() | |
| findUndo | back to summary |
|---|---|
| public Page findUndo(Transaction rawtran, LogicalUndoable pageOp, LimitObjectInput in) throws StandardException, IOException Implements org. Find the page and record to undo. If no logical undo is necessary, i.e., row has not moved, then just return the latched page where undo should go. If the record has moved, it has a new recordId on the new page, this routine needs to call pageOp.resetRecord with the new RecordHandle so that the logging system can update the compensation Operation with the new location.
| |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Return my format identifier.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Restore the in-memory representation from the stream. This object has no state, so nothing to restore.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. This object has no state, so nothing to write.
| |