java.io.Externalizable
, java.io.Serializable
, Formatable
, TypedFormat
, LogicalUndo
public class B2IUndo extends java.lang.Object implements LogicalUndo, Formatable
This class must not contain any persistent state, as this class is stored in the log record of the insert/delete.
Constructor | Description |
---|---|
B2IUndo() |
Modifier and Type | Method | Description |
---|---|---|
Page |
findUndo(Transaction rawtran,
LogicalUndoable pageOp,
LimitObjectInput in) |
Find the page and record to undo.
|
int |
getTypeFormatId() |
Return my format identifier.
|
void |
readExternal(java.io.ObjectInput in) |
Restore the in-memory representation from the stream.
|
void |
writeExternal(java.io.ObjectOutput out) |
This object has no state, so nothing to write.
|
public Page findUndo(Transaction rawtran, LogicalUndoable pageOp, LimitObjectInput in) throws StandardException, java.io.IOException
findUndo
in interface LogicalUndo
rawtran
- the transaction doing the rollbackpageOp
- the page operation that supports logical undo. This
LogicalUndo function pointer is a field of that
pageOperationin
- data stored in the log stream that contains the record
data necessary to restore the row.StandardException
- Standard Derby error policyjava.io.IOException
- Method may read from InputStreampublic int getTypeFormatId()
getTypeFormatId
in interface TypedFormat
TypedFormat.getTypeFormatId()
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.lang.ClassNotFoundException
- Thrown if the stored representation is
serialized and a class named in the stream could not be found.java.io.IOException
Externalizable.readExternal(java.io.ObjectInput)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.