|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.access.btree.index.B2IUndo
public class B2IUndo
The B2IUndo interface packages up the routines which the rawstore needs to call to perform logical undo of a record in a B2i. The rawstore will determine that a page has changed since the record was written, and if it has it will call the findUndo() interface, to find the page where the record exists (as it may have moved).
This class must not contain any persistent state, as this class is stored in the log record of the insert/delete.
LogicalUndoable
,
Undoable.generateUndo(org.apache.derby.iapi.store.raw.Transaction, org.apache.derby.iapi.services.io.LimitObjectInput)
,
Serialized FormConstructor Summary | |
---|---|
B2IUndo()
|
Method Summary | |
---|---|
Page |
findUndo(Transaction rawtran,
LogicalUndoable pageOp,
LimitObjectInput in)
Find the page and record to undo. |
int |
getTypeFormatId()
Return my format identifier. |
void |
readExternal(ArrayInputStream in)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public B2IUndo()
Method Detail |
---|
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 policy
java.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)
public void readExternal(ArrayInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
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 |