|
||||||||||
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
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, 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()
Get the loggable's group value |
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, findContainerForLoadTran, 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.Externalizable
writeExternal
in class ContainerBasicOperation
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class ContainerBasicOperation
java.io.IOException
- cannot read log record from log stream
java.lang.ClassNotFoundException
- cannot read ByteArray objectpublic int getTypeFormatId()
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 compenstaion operationin
- optional data
java.io.IOException
- Can be thrown by any of the methods of ObjectInput.
StandardException
- Standard Cloudscape 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 Loggable
releaseResource
in class ContainerBasicOperation
public int group()
Loggable
group
in interface Loggable
group
in class ContainerBasicOperation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |