#include <NdbOperation.hpp>
Inheritance diagram for NdbOperation:
|
Lock when performing read |
|
Define the NdbOperation to be a standard operation of type deleteTuple. When calling NdbTransaction::execute, this operation delete a tuple.
Reimplemented in NdbIndexOperation. |
|
Define a search condition with equality. The condition is true if the attribute has the given value. To set search conditions on multiple attributes, use several equals (then all of them must be satisfied for the tuple to be selected).
|
|
This method replaces getValue/setValue for blobs. It creates a blob handle NdbBlob. A second call with same argument returns the previously created handle. The handle is linked to the operation and is maintained automatically. See NdbBlob for details. |
|
Return lock mode for operation |
|
Get the latest error code.
|
|
Get the method number where the error occured.
|
|
Get table object for this operation |
|
Get table name of this operation. |
|
Defines a retrieval operation of an attribute value. The NDB API allocate memory for the NdbRecAttr object that will hold the returned attribute value.
|
|
Define the NdbOperation to be a standard operation of type insertTuple. When calling NdbTransaction::execute, this operation adds a new tuple to the table.
Reimplemented in NdbIndexOperation. |
|
Define the NdbOperation to be a standard operation of type readTuple. When calling NdbTransaction::execute, this operation reads a tuple.
Reimplemented in NdbIndexOperation. |
|
Define an attribute to set or update in query. To set a NULL value, use the following construct: setValue("ATTR_NAME", (char*)NULL); There are a number of NdbOperation::setValue methods that take a certain type as input (pass by value rather than passing a pointer). As the interface is currently implemented it is the responsibility of the application programmer to use the correct types. The NDB API will however check that the application sends a correct length to the interface as given in the length parameter. The passing of char* as the value can contain any type or any type of array. If length is not provided or set to zero, then the API will assume that the pointer is correct and not bother with checking it.
|
|
Define the NdbOperation to be a standard operation of type updateTuple. When calling NdbTransaction::execute, this operation updates a tuple in the table.
Reimplemented in NdbIndexOperation. |
|
Define the NdbOperation to be a standard operation of type writeTuple. When calling NdbTransaction::execute, this operation writes a tuple to the table. If the tuple exists, it updates it, otherwise an insert takes place.
|