[+/-]
Abstract
This section lists and describes the public methods of the
NdbIndexOperation
class.
This class has no public constructor. To create an instance of
NdbIndexOperation
, it is necessary to use the
NdbTransaction::getNdbIndexOperation()
method. See
Section 2.3.19.2.4, “NdbTransaction::getNdbIndexOperation()
”.
Description.
Signature.
const NdbDictionary::Index* getIndex ( void ) const
Parameters. None.
Return value.
A pointer to an Index
object. See
Section 2.3.5, “The Index
Class”.
Description.
This method define the NdbIndexOperation
as
a READ
operation. When the
NdbTransaction::execute()
method is
invoked, the operation reads a tuple. See
Section 2.3.19.2.5, “NdbTransaction::execute()
”.
Signature.
int readTuple
(
LockMode mode
)
Parameters.
mode
specifies the locking mode
used by the read operation. See
Section 2.3.15.1.3, “The NdbOperation::LockMode
Type”, for possible
values.
Return value.
0
on success, -1
on
failure.
Description.
This method defines the NdbIndexOperation
as an UPDATE
operation. When the
NdbTransaction::execute()
method is
invoked, the operation updates a tuple found in the table. See
Section 2.3.19.2.5, “NdbTransaction::execute()
”.
Signature.
int updateTuple ( void )
Parameters. None.
Return value.
0
on success, -1
on
failure.
Description.
This method defines the NdbIndexOperation
as a DELETE
operation. When the
NdbTransaction::execute()
method is
invoked, the operation deletes a tuple from the table. See
Section 2.3.19.2.5, “NdbTransaction::execute()
”.
Signature.
int deleteTuple ( void )
Parameters. None.
Return value.
0
on success, -1
on
failure.