[+/-]
Abstract
This section details the public types belonging to the
NdbTransaction
class.
Description.
This type is used to determine whether failed operations
should force a transaction to be aborted. It is used as an
argument to the execute()
method —
see Section 2.3.19.2.5, “NdbTransaction::execute()
”, for more
information.
Enumeration values.
Value | Description |
---|---|
AbortOnError |
A failed operation causes the transaction to abort. |
AO_IgnoreOnError |
Failed operations are ignored; the transaction continues to execute. |
Beginning with MySQL Cluster NDB 6.2.0, this type belongs to
the NdbOperation
class and its possible
values and default behavior have changed. NDB API application
code written against previous versions of MySQL Cluster that
refers explicitly to
NdbTransaction::AbortOption
values must be
modified to work with MySQL Cluster NDB 6.2.0 or later.
In particular, this effects the use of
NdbTransaction::execute()
in MySQL Cluster
NDB 6.2.0 and later. See
Section 2.3.15.1.1, “The NdbOperation::AbortOption
Type”, and
Section 2.3.19.2.5, “NdbTransaction::execute()
”, for more
information.
Description. This type is used to describe a transaction's commit status.
Enumeration values.
Value | Description |
---|---|
NotStarted |
The transaction has not yet been started. |
Started |
The transaction has started, but is not yet committed. |
Committed |
The transaction has completed, and has been committed. |
Aborted |
The transaction was aborted. |
NeedAbort |
The 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.19.2.10, “NdbTransaction::commitStatus()
”.
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.19.2.5, “NdbTransaction::execute()
”.)
Enumeration values.
Value | Description |
---|---|
NoCommit |
The transaction should execute, but not commit. |
Commit |
The transaction should execute and be committed. |
Rollback |
The transaction should be rolled back. |