[+/-]
- 2.3.25.1 NdbOperation::AbortOption
- 2.3.25.2 NdbOperation::deleteTuple()
- 2.3.25.3 NdbOperation::equal()
- 2.3.25.4 NdbOperation::getBlobHandle()
- 2.3.25.5 NdbOperation::getLockHandle
- 2.3.25.6 NdbOperation::getLockMode()
- 2.3.25.7 NdbOperation::getNdbError()
- 2.3.25.8 NdbOperation::getNdbErrorLine()
- 2.3.25.9 NdbOperation::getTable()
- 2.3.25.10 NdbOperation::getTableName()
- 2.3.25.11 NdbOperation::getNdbTransaction()
- 2.3.25.12 NdbOperation::getType()
- 2.3.25.13 NdbOperation::getValue()
- 2.3.25.14 NdbOperation::insertTuple()
- 2.3.25.15 NdbOperation::LockMode
- 2.3.25.16 NdbOperation::readTuple()
- 2.3.25.17 NdbOperation::setValue()
- 2.3.25.18 NdbOperation::Type
- 2.3.25.19 NdbOperation::writeTuple()
- 2.3.25.20 NdbOperation::updateTuple()
Abstract
This section discusses the NdbOperation
class.
Parent class. None
Child classes.
NdbIndexOperation
,
NdbScanOperation
Description.
NdbOperation
represents a
“generic” data operation. Its subclasses represent
more specific types of operations. See
Section 2.3.25.18, “NdbOperation::Type” for a listing of operation
types and their corresponding NdbOperation
subclasses.
Methods. The following table lists the public methods of this class and the purpose or use of each method:
Table 2.48 NdbOperation class methods and descriptions
Name | Description |
---|---|
deleteTuple() |
Removes a tuple from a table |
equal() |
Defines a search condition using equality |
getBlobHandle() |
Used to access blob attributes |
getLockHandle() |
Gets a lock handle for the operation |
getLockMode() |
Gets the operation's lock mode |
getNdbError() |
Gets the latest error |
getNdbErrorLine() |
Gets the number of the method where the latest error occurred |
getTableName() |
Gets the name of the table used for this operation |
getTable() |
Gets the table object used for this operation |
getNdbTransaction() |
Gets the NdbTransaction object for this
operation |
getType() |
Gets the type of operation |
getValue() |
Allocates an attribute value holder for later access |
insertTuple() |
Adds a new tuple to a table |
readTuple() |
Reads a tuple from a table |
setValue() |
Defines an attribute to set or update |
updateTuple() |
Updates an existing tuple in a table |
writeTuple() |
Inserts or updates a tuple |
This class has no public constructor. To create an instance of
NdbOperation
, you must use
NdbTransaction::getNdbOperation()
.
Types.
The NdbOperation
class defines three public
types, shown in the following table:
Table 2.49 NdbOperation class types and descriptions
Name | Description |
---|---|
AbortOption() |
Determines whether a failed operation causes failure of the transaction of which it is part |
LockMode() |
The type of lock used when performing a read operation |
Type() |
Operation access types |
For more information about the use of
NdbOperation
, see
Section 1.3.2.3.2, “Single-row operations”.