Description. This method is used to delete the current tuple.
const NdbOperation* deleteCurrentTuple ( NdbTransaction* takeOverTrans, const NdbRecord* record, char* row = 0, const unsigned char* mask = 0, const NdbOperation::OperationOptions* opts = 0, Uint32 sizeOfOpts = 0 )
For more information, see Section 2.3.27, “The NdbRecord Interface”.
When used with the
interface, this method takes the parameters listed here:
The transaction (
takeOverTrans) that should perform the lock; when using
NdbRecordwith scans, this parameter is not optional.
NdbRecordreferenced by the scan. This
recordvalue is required, even if no records are being read.
rowfrom which to read. Set this to
NULLif no read is to occur.
maskpointer is optional. If it is present, then only columns for which the corresponding bit in the mask is set are retrieved by the scan.
opts) can be used to provide more finely-grained control of operation definitions. An
OperationOptionsstructure is passed with flags indicating which operation definition options are present. Not all operation types support all operation options; the options supported for each type of operation are shown in the following table:
Table 2.63 Operation types for the NdbRecord OperationOptions
Operation type (Method)
sizeOfOptionsparameter is used to preserve backward compatibility of this interface with previous definitions of the
OperationOptionsstructure. If an unusual size is detected by the interface implementation, it can use this to determine how to interpret the passed
OperationOptionsstructure. To enable this functionality, the caller should pass
sizeof(NdbOperation::OperationOptions)for the value of this argument.
If options are specified, their length (
sizeOfOpts) must be specified as well.
0 on success, or
-1 on failure.