java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat, LogicalUndopublic 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 LogicalUndorawtran - 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 TypedFormatTypedFormat.getTypeFormatId()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.lang.ClassNotFoundException - Thrown if the stored representation is
serialized and a class named in the stream could not be found.java.io.IOExceptionExternalizable.readExternal(java.io.ObjectInput)Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.