| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected int | |
| protected transient ByteArray |
| Access | Constructor and Description |
|---|---|
| pack-priv | UpdateFieldOperation(RawTransaction t, BasePage page, int slot, int recordId, int fieldId, Object column, 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. Change the value of a field. |
| 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. DEBUG: Print self. |
| 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. Restore field to its old value. |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Overrides org. Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| private void | writeOptionalDataToBuffer(RawTransaction t, Object column)
Write the old column value and and new column value as optional data. |
| doMeSlot | back to summary |
|---|---|
| protected int doMeSlot | |
| fieldId | back to summary |
|---|---|
| protected int fieldId | |
| preparedLog | back to summary |
|---|---|
| protected transient ByteArray preparedLog | |
| UpdateFieldOperation | back to summary |
|---|---|
| pack-priv UpdateFieldOperation(RawTransaction t, BasePage page, int slot, int recordId, int fieldId, Object column, LogicalUndo undo) throws StandardException | |
| UpdateFieldOperation | back to summary |
|---|---|
| public UpdateFieldOperation() | |
| doMe | back to summary |
|---|---|
| public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, IOException Implements org. Change the value of a field.
| |
| 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. DEBUG: Print self.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Overrides org. Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |
| writeOptionalDataToBuffer | back to summary |
|---|---|
| private void writeOptionalDataToBuffer(RawTransaction t, Object column) throws StandardException, IOException Write the old column value and and new column value as optional data. If logical undo, writes out the entire row's before image.
| |