|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.raw.data.PageBasicOperation
org.apache.derby.impl.store.raw.data.PhysicalUndoOperation
public class PhysicalUndoOperation
PhysicalUndoOperation is a compensation operation that rolls back the change of an Undo-able operation. A PhysicalUndoOperation itself is not undo-able, i.e, it is loggable but not undoable.
Format ID | LOGOP_PAGE_PHYSICAL_UNDO the formatId is written by FormatIdOutputStream when this object is written out by writeObject |
Purpose | update a physiacl log operation |
Upgrade | |
Disk Layout | PageBasicOperation the super class OptionalData none (compensation operation never have optional data) |
Field Summary | |
---|---|
private PhysicalPageOperation |
undoOp
The operation to be rolled back |
Fields inherited from class org.apache.derby.impl.store.raw.data.PageBasicOperation |
---|
containerHdl, foundHere, page |
Fields inherited from interface org.apache.derby.iapi.store.raw.Loggable |
---|
ABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK |
Constructor Summary | |
---|---|
|
PhysicalUndoOperation()
Return my format identifier. |
protected |
PhysicalUndoOperation(BasePage page)
|
|
PhysicalUndoOperation(BasePage page,
PhysicalPageOperation op)
Set up a compensation operation during run time rollback |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.derby.impl.store.raw.data.PageBasicOperation |
---|
findpage, getPage, getPageForRedoRecovery, getPageId, getPageVersion, needsRedo, readExternal, reclaimPrepareLocks, resetPageNumber, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.derby.iapi.store.raw.Loggable |
---|
needsRedo |
Methods inherited from interface java.io.Externalizable |
---|
readExternal, writeExternal |
Field Detail |
---|
private transient PhysicalPageOperation undoOp
Constructor Detail |
---|
protected PhysicalUndoOperation(BasePage page)
public PhysicalUndoOperation(BasePage page, PhysicalPageOperation op)
public PhysicalUndoOperation()
Method Detail |
---|
public int getTypeFormatId()
TypedFormat
getTypeFormatId
in interface TypedFormat
public void setUndoOp(Undoable op)
setUndoOp
in interface Compensation
op
- 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 Loggable
xact
- the Transaction that is doing the rollbackinstant
- the log instant of this undo operationin
- optional data
java.io.IOException
- Can be thrown by any of the methods of InputStream.
StandardException
- Standard Derby policy.public void releaseResource(Transaction xact)
PageBasicOperation
releaseResource
in interface Loggable
releaseResource
in class PageBasicOperation
public int group()
PageBasicOperation
group
in interface Loggable
group
in class PageBasicOperation
public final ByteArray getPreparedLog()
PageBasicOperation
getPreparedLog
in interface Loggable
getPreparedLog
in class PageBasicOperation
public void restoreMe(Transaction xact, BasePage undoPage, LogInstant CLRinstant, LimitObjectInput in)
PageBasicOperation
restoreMe
in class PageBasicOperation
xact
- 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 PageBasicOperation
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |