|
|||||||||
| 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.ContainerBasicOperation
org.apache.derby.impl.store.raw.data.ContainerUndoOperation
public class ContainerUndoOperation
A Container undo operation rolls back the change of a Container operation
| Field Summary | |
|---|---|
private ContainerOperation |
undoOp
|
| Fields inherited from class org.apache.derby.impl.store.raw.data.ContainerBasicOperation |
|---|
containerHdl, containerId |
| 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 | |
|---|---|
ContainerUndoOperation()
|
|
ContainerUndoOperation(RawContainerHandle hdl,
ContainerOperation op)
Set up a Container undo 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 |
int |
getTypeFormatId()
Return my format identifier. |
int |
group()
A space operation is a RAWSTORE log record |
void |
readExternal(java.io.ObjectInput in)
|
void |
releaseResource(Transaction xact)
Release any resource that was acquired for doMe for rollback or recovery redo. |
void |
setUndoOp(Undoable op)
Set up a Container undo operation during recovery redo. |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class org.apache.derby.impl.store.raw.data.ContainerBasicOperation |
|---|
findContainer, findContainerForRedoRecovery, getPreparedLog, needsRedo, toString |
| 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 |
|---|
getPreparedLog, needsRedo |
| Field Detail |
|---|
private transient ContainerOperation undoOp
| Constructor Detail |
|---|
public ContainerUndoOperation(RawContainerHandle hdl,
ContainerOperation op)
throws StandardException
StandardException - container Handle is not activepublic ContainerUndoOperation()
| Method Detail |
|---|
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class ContainerBasicOperationjava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class ContainerBasicOperationjava.io.IOException - cannot read log record from log stream
java.lang.ClassNotFoundException - cannot read ByteArray objectpublic int getTypeFormatId()
getTypeFormatId 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 compenstaion operationin - optional data
java.io.IOException - Can be thrown by any of the methods of ObjectInput.
StandardException - Standard Derby error policy.ContainerOperation.generateUndo(org.apache.derby.iapi.store.raw.Transaction, org.apache.derby.iapi.services.io.LimitObjectInput)public void releaseResource(Transaction xact)
Loggable
releaseResource in interface LoggablereleaseResource in class ContainerBasicOperationpublic int group()
ContainerBasicOperation
group in interface Loggablegroup in class ContainerBasicOperation
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||