public class EncryptContainerUndoOperation extends java.lang.Object implements Compensation
| Modifier and Type | Field and Description |
|---|---|
private EncryptContainerOperation |
undoOp |
ABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK| Constructor and Description |
|---|
EncryptContainerUndoOperation() |
EncryptContainerUndoOperation(EncryptContainerOperation op)
Set up a Encrypt Container undo operation during run time rollback
|
| Modifier and Type | Method and Description |
|---|---|
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) |
private transient EncryptContainerOperation undoOp
public EncryptContainerUndoOperation(EncryptContainerOperation op)
op - Encrypt contaner operatation that is to be undone.public EncryptContainerUndoOperation()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException - cannot read log record from log streamjava.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 boolean needsRedo(Transaction xact) throws StandardException
needsRedo in interface Loggablexact - the transaction that is doing the rollbackStandardException - Standard Derby error policyLoggable.releaseResource(org.apache.derby.iapi.store.raw.Transaction)public ByteArray getPreparedLog()
getPreparedLog in interface Loggablepublic 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 datajava.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)
LoggablereleaseResource in interface Loggablepublic int group()
Loggablepublic java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.