Documentation Home
MySQL Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 4.8Mb
PDF (A4) - 4.8Mb
EPUB - 1.9Mb
HTML Download (TGZ) - 1.8Mb
HTML Download (Zip) - 1.9Mb


2.3.30.1 NdbTransaction Types

Abstract

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

2.3.30.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:

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.30.2.2, “NdbTransaction::commitStatus()”.

2.3.30.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.30.2.4, “NdbTransaction::execute()”.)

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

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.

User Comments
Sign Up Login You must be logged in to post a comment.