2.3.29.1 NdbTransaction Types

2.3.29.1.1 The NdbTransaction::CommitStatusType Type
2.3.29.1.2 The NdbTransaction::ExecType Type

Abstract

This section details the public types belonging to the NdbTransaction class.

2.3.29.1.1 The NdbTransaction::CommitStatusType Type

Description.  This type is used to describe a transaction's commit status.

Enumeration values.  Possible values are shown, along with descriptions, in the following table:

ValueDescription
NotStartedThe transaction has not yet been started.
StartedThe transaction has started, but is not yet committed.
CommittedThe transaction has completed, and has been committed.
AbortedThe transaction was aborted.
NeedAbortThe transaction has encountered an error, but has not yet been aborted.

A transaction's commit status ca be read using the commitStatus() method. See Section 2.3.29.2.2, “NdbTransaction::commitStatus()”.

2.3.29.1.2 The NdbTransaction::ExecType Type

Description.  This type sets the transaction's execution type; that is, whether it should execute, execute and commit, or abort. It is used as a parameter to the execute() method. (See Section 2.3.29.2.4, “NdbTransaction::execute()”.)

Enumeration values.  Possible values are shown, along with descriptions, in the following table:

ValueDescription
NoCommitThe transaction should execute, but not commit.
CommitThe transaction should execute and be committed.
RollbackThe transaction should be rolled back.