Abstract
This section discusses the NdbOperation
class.
Parent class. None
Child classes. NdbIndexOperation, NdbScanOperation
NdbOperation
Subclasses.
This diagram shows the relationships of
NdbOperation
, its subclasses, and their public
types:
Description.
NdbOperation
represents a
“generic” data operation. Its subclasses represent
more specific types of operations. See
Section 2.3.15.1.2, “The NdbOperation::Type
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:
Method | Purpose / Use |
---|---|
getValue() |
Allocates an attribute value holder for later access |
getBlobHandle() |
Used to access blob attributes |
getTableName() |
Gets the name of the table used for this operation |
getTable() |
Gets the table object used for this operation |
getNdbError() |
Gets the latest error |
getNdbErrorLine() |
Gets the number of the method where the latest error occurred |
getType() |
Gets the type of operation |
getLockMode() |
Gets the operation's lock mode |
getNdbTransaction() |
Gets the NdbTransaction object for this operation |
equal() |
Defines a search condition using equality |
setValue() |
Defines an attribute to set or update |
insertTuple() |
Adds a new tuple to a table |
updateTuple() |
Updates an existing tuple in a table |
readTuple() |
Reads a tuple from a table |
writeTuple() |
Inserts or updates a tuple |
deleteTuple() |
Removes a tuple from a table |
For detailed descriptions, signatures, and examples of use for each
of these methods, see Section 2.3.15.2, “NdbOperation
Methods”.
Types.
The NdbOperation
class defines three public
types, as shown in the following table:
Type | Purpose / Use |
---|---|
AbortOption |
Determines whether a failed operation causes failure of the transaction of which it is part |
Type |
Operation access types |
LockMode |
The type of lock used when performing a read operation |
For a discussion of each of these types, along with its possible
values, see Section 2.3.15.1, “NdbOperation
Types”.
Class diagram.
This diagram shows all the available methods and enumerated types
of the NdbOperation
class:
For more information about the use of
NdbOperation
, see
Section 1.3.2.3.1, “Single-row operations”.