| Modifier and Type | Field and Description |
|---|---|
| private transient PhysicalPageOperation | undoOp
The operation to be rolled back |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | PhysicalUndoOperation(BasePage page, PhysicalPageOperation op)
Set up a compensation operation during run time rollback |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | doMe(Transaction
the Transaction that is doing the rollback xact, LogInstant the log instant of this undo operation instant, LimitObjectInput optional data in)Implements org. Apply the undo operation, in this implementation of the RawStore, it can only call the undoMe method of undoOp |
| public final ByteArray | getPreparedLog()
Overrides org. Implements org. The log operations are responsible to create the ByteArray, and the log operations should write out any optional data for the change to the ByteArray. |
| public int | getTypeFormatId()
Implements org. Get a universally unique identifier for the type of this object. |
| public int | group()
Overrides org. Implements org. Get the loggable's group value |
| public void | releaseResource(Transaction xact)
Overrides org. Implements org. Release any resource that was acquired for doMe for rollback or recovery redo. |
| public void | restoreMe(Transaction
the Transaction doing the rollback xact, BasePage the page to rollback changes on undoPage, LogInstant the log instant of this (PageUndo) operation CLRinstant, LimitObjectInput optional data for the rollback operation in)Implements abstract org. Undo the change indicated by this log operation and optional data. |
| public void | setUndoOp(Undoable
the Undoable operation op)Implements org. Set up a PageUndoOperation during recovery redo. |
| public String | toString()
Overrides org. DEBUG: Print self. |
| undoOp | back to summary |
|---|---|
| private transient PhysicalPageOperation undoOp The operation to be rolled back | |
| PhysicalUndoOperation | back to summary |
|---|---|
| pack-priv PhysicalUndoOperation(BasePage page) | |
| PhysicalUndoOperation | back to summary |
|---|---|
| pack-priv PhysicalUndoOperation(BasePage page, PhysicalPageOperation op) Set up a compensation operation during run time rollback | |
| PhysicalUndoOperation | back to summary |
|---|---|
| public PhysicalUndoOperation() Return my format identifier. | |
| doMe | back to summary |
|---|---|
| public final void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, IOException Implements org. Apply the undo operation, in this implementation of the RawStore, it can only call the undoMe method of undoOp
| |
| getPreparedLog | back to summary |
|---|---|
| public final ByteArray getPreparedLog() Overrides org. Implements org. Doc from org. The log operations are responsible to create the ByteArray, and the log operations should write out any optional data for the change to the ByteArray. The ByteArray can be prepared when the log operation is constructed, or it can be prepared when getPreparedLog() is called. Called by the log manager to allow the log operation to pass the buffer which contains optional data that will be available in to doMe() methods. | |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Doc from org. Get a universally unique identifier for the type of this object.
| |
| group | back to summary |
|---|---|
| public int group() Overrides org. Implements org. Doc from org. Get the loggable's group value | |
| releaseResource | back to summary |
|---|---|
| public void releaseResource(Transaction xact) Overrides org. Implements org. Doc from org. Release any resource that was acquired for doMe for rollback or recovery redo. This resource is acquired in either generateUndo (if this is a compensation operation during run time rollback or recovery rollback) or in needsRedo (if this is during recovery redo). The run time transaction context should have all the resource already acquird for run time roll forward, so there is no need to releaseResource during run time roll forward. This method must be safe to be called multiple times. | |
| restoreMe | back to summary |
|---|---|
| public void restoreMe(Transaction xact, BasePage undoPage, LogInstant CLRinstant, LimitObjectInput in) Implements abstract org. Doc from org. Undo the change indicated by this log operation and optional data.
The page the undo should apply to is the latched undoPage.
The undoPage must be the same page as the doMe page and the undo
operation must restore the before image of the row that changed.
| |
| setUndoOp | back to summary |
|---|---|
| public void setUndoOp(Undoable op) Implements org. Set up a PageUndoOperation during recovery redo.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. DEBUG: Print self.
| |