Abstract
This section details the public types belonging to the
NdbOperation 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.28.2.4, “NdbTransaction::execute()”, for more
information.
Enumeration values. Possible values are shown, along with descriptions, in the following table:
| Value | Description |
|---|---|
AbortOnError |
A failed operation causes the transaction to abort. |
AO_IgnoreOnError |
Failed operations are ignored; the transaction continues to execute. |
DefaultAbortOption |
The AbortOption value is set according to the
operation type:
|
DefaultAbortOperation is available beginning
with MySQL Cluster NDB 6.2.0. See
Section 2.3.28.2.4, “NdbTransaction::execute()”, for more
information.
Previous to MySQL Cluster NDB 6.2.0, this type belonged to the
NdbTransaction class.
Description. This type describes the lock mode used when performing a read operation.
Enumeration values. Possible values for this type are shown, along with descriptions, in the following table:
| Value | Description |
|---|---|
LM_Read |
Read with shared lock |
LM_Exclusive |
Read with exclusive lock |
LM_CommittedRead |
Ignore locks; read last committed |
LM_SimpleRead |
Read with shared lock, but release lock directly |
There is also support for dirty reads
(LM_Dirty), but this is normally for
internal purposes only, and should not be used for
applications deployed in a production setting.
Description.
Type is used to describe the operation
access type. Each access type is supported by
NdbOperation or one of its
subclasses, as shown in the following table:
Enumeration values. Possible values are shown, along with descriptions, in the following table:
| Value | Description | Class |
|---|---|---|
PrimaryKeyAccess |
A read, insert, update, or delete operation using the table's primary key | NdbOperation |
UniqueIndexAccess |
A read, update, or delete operation using a unique index | NdbIndexOperation |
TableScan |
A full table scan | NdbScanOperation |
OrderedIndexScan |
An ordered index scan | NdbIndexScanOperation |
