|
|||||||||
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.EncryptContainerUndoOperation
public class EncryptContainerUndoOperation
A Encrypt Container undo operation rolls back the change of a Encrypt Container operation
Field Summary | |
---|---|
private EncryptContainerOperation |
undoOp
|
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 | |
---|---|
EncryptContainerUndoOperation()
|
|
EncryptContainerUndoOperation(EncryptContainerOperation op)
Set up a Encrypt 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 |
ByteArray |
getPreparedLog()
the default for prepared log is always null for all the operations that don't have optionalData. |
int |
getTypeFormatId()
Return my format identifier. |
int |
group()
Get the loggable's group value |
boolean |
needsRedo(Transaction xact)
Check if this operation needs to be redone during recovery redo. |
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. |
java.lang.String |
toString()
DEBUG: Print self. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private transient EncryptContainerOperation undoOp
Constructor Detail |
---|
public EncryptContainerUndoOperation(EncryptContainerOperation op)
op
- Encrypt contaner operatation that is to be undone.public EncryptContainerUndoOperation()
Method Detail |
---|
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
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 boolean needsRedo(Transaction xact) throws StandardException
needsRedo
in interface Loggable
xact
- the transaction that is doing the rollback
StandardException
- Standard Derby error policyLoggable.releaseResource(org.apache.derby.iapi.store.raw.Transaction)
public ByteArray getPreparedLog()
getPreparedLog
in interface Loggable
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 Derby policy.EncryptContainerOperation.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
public int group()
Loggable
group
in interface Loggable
public java.lang.String toString()
toString
in class java.lang.Object
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |