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.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 streamjava.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 rollbackStandardException
- 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 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)
Loggable
releaseResource
in interface Loggable
public int group()
Loggable
public java.lang.String toString()
toString
in class java.lang.Object
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.