public interface LogicalUndoable extends Undoable
It has specific page information such as its segment Id, container Id, page number, and it knows how to restore a storable row from the information stored in the log record.
LogicalUndoABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK| Modifier and Type | Method and Description |
|---|---|
ContainerHandle |
getContainer()
Return the containerHandle used by this log operation.
|
RecordHandle |
getRecordHandle()
Return the recordHandle stored in the log operation that correspond to
the record that was changed in the rollforward.
|
void |
resetRecordHandle(RecordHandle rh)
If the row has moved, reset the record handle that the undo should be applied on.
|
void |
restoreLoggedRow(java.lang.Object[] row,
LimitObjectInput in)
Restore the row stored in the log operation.
|
generateUndodoMe, getPreparedLog, group, needsRedo, releaseResourcegetTypeFormatIdContainerHandle getContainer() throws StandardException
StandardException - Standard Derby error policyRecordHandle getRecordHandle()
void restoreLoggedRow(java.lang.Object[] row,
LimitObjectInput in)
throws StandardException,
java.io.IOException
row - an IN/OUT parameter, caller passed in the row with
the correct column number and type, the log operation will restore the
row with the optional data stored in the log record.StandardException - Standard Derby error policyjava.io.IOException - Method may read from inLogicalUndovoid resetRecordHandle(RecordHandle rh)
rh - the RecordHandle that represents the row's new locationApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.