org.apache.derby.iapi.store.raw
Interface Compensation

All Superinterfaces:
java.io.Externalizable, Formatable, Loggable, java.io.Serializable, TypedFormat
All Known Implementing Classes:
ContainerUndoOperation, EncryptContainerUndoOperation, LogicalUndoOperation, PhysicalUndoOperation

public interface Compensation
extends Loggable

A Compensation operation can compensate for the action of a log operation. A Compensation operation itself is not undo-able, i.e., it is loggable but not undoable. A Compensation operation is generated by the logging system when it calls undoable.generateUndo(). GenerateUndo should be the only way a compensation operation can be made.

See Also:
Undoable.generateUndo(org.apache.derby.iapi.store.raw.Transaction, org.apache.derby.iapi.services.io.LimitObjectInput)

Field Summary
 
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
 
Method Summary
 void setUndoOp(Undoable op)
          Set up the undoable operation during recovery redo.
 
Methods inherited from interface org.apache.derby.iapi.store.raw.Loggable
doMe, getPreparedLog, group, needsRedo, releaseResource
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 
Methods inherited from interface org.apache.derby.iapi.services.io.TypedFormat
getTypeFormatId
 

Method Detail

setUndoOp

void setUndoOp(Undoable op)
Set up the undoable operation during recovery redo.

Parameters:
op - the Undoable operation
See Also:
Loggable.needsRedo(org.apache.derby.iapi.store.raw.Transaction)

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.