|
|
enum Phase { COMMIT_PHASE_NONE = 0, COMMIT_PHASE_1, COMMIT_PHASE_2, COMMIT_PHASE_3, COMMIT_PHASE_4, COMMIT_PHASE_5, COMMIT_PHASE_DONE } | Phase |
CommitStatus ()
| CommitStatus |
void reset ()
| reset |
bool success ()
| success |
[const]
Test if the current phase has been successful.
Returns: true if the current phase has been successful, otherwise false.
const string& error_msg ()
| error_msg |
[const]
Get a string with the current error message.
Returns: a string with the current error message.
void set_error (const string& error_msg)
| set_error |
Set the commit status as being in error.
Parameters:
error_msg | the message that describes the error. |
CommitStatus::Phase commit_phase ()
| commit_phase |
[const]
Get the current commit phase.
Returns: the current commit phase.
void set_commit_phase (CommitStatus::Phase commit_phase)
| set_commit_phase |
Set the current commit phase.
Parameters:
commit_phase | the new value of the current commit phase. |