java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat, Compensation, Loggable, RePreparablepublic final class PhysicalUndoOperation extends PageBasicOperation implements Compensation
| Format ID | LOGOP_PAGE_PHYSICAL_UNDO the formatId is written by FormatIdOutputStream when this object is written out by writeObject |
| Purpose | |
| update a physical log operation | |
| Upgrade | |
| Disk Layout | PageBasicOperation the super class OptionalData none (compensation operation never have optional data) |
| Modifier and Type | Field | Description |
|---|---|---|
private PhysicalPageOperation |
undoOp |
The operation to be rolled back
|
ABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCKcontainerHdl, foundHere, page| Constructor | Description |
|---|---|
PhysicalUndoOperation() |
Return my format identifier.
|
PhysicalUndoOperation(BasePage page) |
|
PhysicalUndoOperation(BasePage page,
PhysicalPageOperation op) |
Set up a compensation operation during run time rollback
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
doMe(Transaction xact,
LogInstant instant,
LimitObjectInput in) |
Apply the undo operation, in this implementation of the
RawStore, it can only call the undoMe method of undoOp
|
ByteArray |
getPreparedLog() |
the default for optional data is set to null.
|
int |
getTypeFormatId() |
Get a universally unique identifier for the type of
this object.
|
int |
group() |
A page operation is a RAWSTORE log record
|
void |
releaseResource(Transaction xact) |
Release latched page and any other resources acquired during a previous
findpage, safe to call multiple times.
|
void |
restoreMe(Transaction xact,
BasePage undoPage,
LogInstant CLRinstant,
LimitObjectInput in) |
Undo the change indicated by this log operation and optional data.
|
void |
setUndoOp(Undoable op) |
Set up a PageUndoOperation during recovery redo.
|
java.lang.String |
toString() |
DEBUG: Print self.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindpage, getPage, getPageForRedoRecovery, getPageId, getPageVersion, needsRedo, readExternal, reclaimPrepareLocks, resetPageNumber, writeExternalprivate transient PhysicalPageOperation undoOp
PhysicalUndoOperation(BasePage page)
PhysicalUndoOperation(BasePage page, PhysicalPageOperation op)
public PhysicalUndoOperation()
public int getTypeFormatId()
TypedFormatgetTypeFormatId in interface TypedFormatpublic void setUndoOp(Undoable op)
setUndoOp in interface Compensationop - the Undoable operationLoggable.needsRedo(org.apache.derby.iapi.store.raw.Transaction)public final void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, java.io.IOException
doMe in interface Loggablexact - the Transaction that is doing the rollbackinstant - the log instant of this undo operationin - optional datajava.io.IOException - Can be thrown by any of the methods of InputStream.StandardException - Standard Derby policy.public void releaseResource(Transaction xact)
PageBasicOperationreleaseResource in interface LoggablereleaseResource in class PageBasicOperationpublic int group()
PageBasicOperationgroup in interface Loggablegroup in class PageBasicOperationpublic final ByteArray getPreparedLog()
PageBasicOperationgetPreparedLog in interface LoggablegetPreparedLog in class PageBasicOperationpublic void restoreMe(Transaction xact, BasePage undoPage, LogInstant CLRinstant, LimitObjectInput in)
PageBasicOperationrestoreMe in class PageBasicOperationxact - the Transaction doing the rollbackundoPage - the page to rollback changes onCLRinstant - the log instant of this (PageUndo) operationin - optional data for the rollback operationpublic java.lang.String toString()
toString in class PageBasicOperationApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.