| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| protected int | |
| protected transient ByteArray |
| Access | Constructor and Description |
|---|---|
| pack-priv | DeleteOperation(RawTransaction t, BasePage page, int slot, int recordId, boolean delete, LogicalUndo undo)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | doMe(Transaction
the Transaction xact, LogInstant the log instant of this operation instant, LimitObjectInput optional data in)Implements org. Mark the record as deleted on the page. |
| public ByteArray | getPreparedLog()
Overrides org. Implements org. The log operations are responsible to create the ByteArray, and the log operations should write out any optional data for the change to the ByteArray. |
| public int | getTypeFormatId()
Implements org. Return my format identifier. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Overrides org. Implements java. Read this in |
| public void | restoreLoggedRow(Object[]
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. row, LimitObjectInput in)Implements org. Restore the row stored in the optional data of the log record. |
| public void | restoreMe(Transaction
the Transaction doing the rollback xact, BasePage the page to rollback changes on undoPage, LogInstant the log instant of this (PageUndo) operation CLRinstant, LimitObjectInput optional data for the rollback operation in)Implements abstract org. restore the before image of the page |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public void | undoMe(Transaction
the Transaction doing the rollback xact, BasePage the page to rollback changes on undoPage, int the recordId to rollback changes on undoRecordId, LogInstant the log instant of this (PageUndo) operation CLRInstant, LimitObjectInput optional data for the rollback operation in)Implements abstract org. Mark the record as not deleted, and then fix up the in-memory copy of the page. |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Overrides org. Implements java. Write this out. |
| private void |
| delete | back to summary |
|---|---|
| protected boolean delete | |
| doMeSlot | back to summary |
|---|---|
| protected int doMeSlot | |
| preparedLog | back to summary |
|---|---|
| protected transient ByteArray preparedLog | |
| DeleteOperation | back to summary |
|---|---|
| pack-priv DeleteOperation(RawTransaction t, BasePage page, int slot, int recordId, boolean delete, LogicalUndo undo) throws StandardException | |
| DeleteOperation | back to summary |
|---|---|
| public DeleteOperation() | |
| doMe | back to summary |
|---|---|
| public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, IOException Implements org. Mark the record as deleted on the page.
| |
| getPreparedLog | back to summary |
|---|---|
| public ByteArray getPreparedLog() Overrides org. Implements org. Doc from org. The log operations are responsible to create the ByteArray, and the log operations should write out any optional data for the change to the ByteArray. The ByteArray can be prepared when the log operation is constructed, or it can be prepared when getPreparedLog() is called. Called by the log manager to allow the log operation to pass the buffer which contains optional data that will be available in to doMe() methods. | |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Return my format identifier.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Overrides org. Implements java. Read this in
| |
| restoreLoggedRow | back to summary |
|---|---|
| public void restoreLoggedRow(Object[] row, LimitObjectInput in) throws StandardException, IOException Implements org. Restore the row stored in the optional data of the log record.
| |
| restoreMe | back to summary |
|---|---|
| public void restoreMe(Transaction xact, BasePage undoPage, LogInstant CLRinstant, LimitObjectInput in) throws StandardException, IOException Implements abstract org. restore the before image of the page
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| undoMe | back to summary |
|---|---|
| public void undoMe(Transaction xact, BasePage undoPage, int undoRecordId, LogInstant CLRInstant, LimitObjectInput in) throws StandardException, IOException Implements abstract org. Mark the record as not deleted, and then fix up the in-memory copy of the page. All logical undo logic has already been taken care of by generateUndo.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Overrides org. Implements java. Write this out.
| |
| writeOptionalDataToBuffer | back to summary |
|---|---|
| private void writeOptionalDataToBuffer(RawTransaction t) throws StandardException, IOException if logical undo, writes out the row that was deleted
| |