| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected transient int | |
| protected transient ByteArray | |
| protected int |
| Access | Constructor and Description |
|---|---|
| pack-priv | UpdateOperation(RawTransaction t, BasePage page, int slot, int recordId, Object[] row, FormatableBitSet validColumns, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, RecordHandle headRowHandle)
|
| 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. Store the new record directly over the old record, the implementation of storeRecord is responsible for removing any old data. |
| public int | |
| 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. |
| private RecordHandle | |
| 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 | reclaimPrepareLocks(Transaction t, LockingPolicy
The locking policy to use to claim the locks. locking_policy)Overrides org. Implements org. reclaim locks associated with the changes in this 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, LogInstant the log instant of this (PageUndo) operation CLRInstant, LimitObjectInput optional data for the rollback operation in)Implements abstract org. Store the old record directly over the new record, the implementation of storeRecord is responsible for removing any new data. |
| 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, DynamicByteArrayOutputStream logBuffer, Object[] row, FormatableBitSet validColumns, int realStartColumn, int realSpaceOnPage, RecordHandle headRowHandle)
Write out the changed colums of new record (from the row) followed by changed columns of the old record (from the page). |
| doMeSlot | back to summary |
|---|---|
| protected int doMeSlot | |
| nextColumn | back to summary |
|---|---|
| protected transient int nextColumn | |
| preparedLog | back to summary |
|---|---|
| protected transient ByteArray preparedLog | |
| recordId | back to summary |
|---|---|
| protected int recordId | |
| UpdateOperation | back to summary |
|---|---|
| pack-priv UpdateOperation(RawTransaction t, BasePage page, int slot, int recordId, Object[] row, FormatableBitSet validColumns, int realStartColumn, DynamicByteArrayOutputStream logBuffer, int realSpaceOnPage, RecordHandle headRowHandle) throws StandardException | |
| UpdateOperation | back to summary |
|---|---|
| public UpdateOperation() | |
| doMe | back to summary |
|---|---|
| public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, IOException Implements org. Store the new record directly over the old record, the implementation of storeRecord is responsible for removing any old data.
| |
| getNextStartColumn | back to summary |
|---|---|
| public int getNextStartColumn() Return the last column of the row this operation logged | |
| 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. | |
| getRecordHandle | back to summary |
|---|---|
| private RecordHandle getRecordHandle() return RecordHandle of the update row. Return the RecordHandle that should be locked when updating the row in this UpdateOperation.
| |
| 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
| |
| reclaimPrepareLocks | back to summary |
|---|---|
| public void reclaimPrepareLocks(Transaction t, LockingPolicy locking_policy) throws StandardException Overrides org. Implements org. reclaim locks associated with the changes in this 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-
| |
| 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, DynamicByteArrayOutputStream logBuffer, Object[] row, FormatableBitSet validColumns, int realStartColumn, int realSpaceOnPage, RecordHandle headRowHandle) throws StandardException, IOException Write out the changed colums of new record (from the row) followed by changed columns of the old record (from the page).
| |