public interface MOMutableRow2PC extends MOMutableTableRow
MOMutableRow2PC
interface adds support for 2-Phase-Commit
to mutable table rows.Modifier and Type | Method and Description |
---|---|
void |
cleanup(SubRequest subRequest,
int column)
Cleanups resources holds for changes to a single column.
|
void |
cleanupRow(SubRequest request,
DefaultMOTable.ChangeSet changeSet)
Cleans up resources for a row.
|
void |
commit(SubRequest subRequest,
MOTableRow changeSet,
int column)
Commits changes to single column.
|
void |
commitRow(SubRequest subRequest,
MOTableRow changeSet)
Commits a row as described by the supplied change set.
|
void |
prepare(SubRequest subRequest,
MOTableRow changeSet,
int column)
Prepares changing a single column.
|
void |
prepareRow(SubRequest subRequest,
MOTableRow changeSet)
Prepares a row for changes described by the supplied change set.
|
void |
undo(SubRequest subRequest,
int column)
Undos the changes to a single column.
|
void |
undoRow(SubRequest request,
DefaultMOTable.ChangeSet changeSet)
Undos changes to a row.
|
setBaseRow, setValue
getBaseRow, getIndex, getValue, size
void prepareRow(SubRequest subRequest, MOTableRow changeSet)
subRequest
should be set to the appropriate error
status value.
This method is called only once per modified row.
subRequest
- the sub-request that triggered the row change and that can be used
to deny the commit phase by setting its error status.changeSet
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.void prepare(SubRequest subRequest, MOTableRow changeSet, int column)
subRequest
- the sub-request that corresponds to the column change. This object
can be used to deny the commit phase by setting its error status.changeSet
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.column
- the column index of the column to be changed.void commit(SubRequest subRequest, MOTableRow changeSet, int column)
subRequest
- the sub-request that corresponds to the column change. This object
can be used to deny the commit phase and triggering the undo phase
by setting its error status.changeSet
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.column
- the column index of the column to be changed.void commitRow(SubRequest subRequest, MOTableRow changeSet)
subRequest
should be set to
commitFailed
. Setting this error should be avoided under
any circumstances.
This method is called only once per modified row.
subRequest
- the sub-request that triggered the row change and that can be used
to trigger the undo phase by setting its error status.changeSet
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.void cleanup(SubRequest subRequest, int column)
subRequest
- the sub-request that corresponds to the column change.column
- the column index of the changed column.void cleanupRow(SubRequest request, DefaultMOTable.ChangeSet changeSet)
This method is called only once per modified row.
request
- the sub-request that triggered the row change.changeSet
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.void undo(SubRequest subRequest, int column)
subRequest
- the sub-request that corresponds to the column change.column
- the column index of the changed column.void undoRow(SubRequest request, DefaultMOTable.ChangeSet changeSet)
This method is called only once per modified row.
request
- the sub-request that triggered the row change.changeSet
- a MOTableRow instance that represents the state of the row if all
changes have been applied successfully.Copyright © 2020 SNMP4J.org. All rights reserved.