MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NdbQueryDef Class Reference

#include <NdbQueryBuilder.hpp>

Public Types

enum  QueryType { LookupQuery, SingleScanQuery, MultiScanQuery }

Public Member Functions

Uint32 getNoOfOperations () const
const NdbQueryOperationDefgetQueryOperation (const char *ident) const
const NdbQueryOperationDefgetQueryOperation (Uint32 index) const
bool isScanQuery () const
QueryType getQueryType () const
void destroy () const
NdbQueryDefImpl & getImpl () const
void print () const

Friends

class NdbQueryDefImpl

Detailed Description

NdbQueryDef represents a ::prepare()'d object from NdbQueryBuilder.

The NdbQueryDef is reusable in the sense that it may be executed multiple times. It is valid until it is explicitely released().

The NdbQueryDef must be keept alive until the last thread which executing a query based on this NdbQueryDef has called NdbQuery::close().

A NdbQueryDef is scheduled for execution by appending it to an open transaction - optionally together with a set of parameters specifying the actuall values required by ::execute() (ie. Lookup an bind keys).

Definition at line 490 of file NdbQueryBuilder.hpp.

Member Enumeration Documentation

The different types of query types supported

Enumerator:
LookupQuery 

All operations are PrimaryKey- or UniqueIndexAccess.

SingleScanQuery 

Root is Table- or OrderedIndexScan, childs are 'lookup'.

MultiScanQuery 

Root, and some childs are scans.

Definition at line 499 of file NdbQueryBuilder.hpp.

Member Function Documentation

void NdbQueryDef::print ( void  ) const

Print the query in a semi human readable form

Definition at line 338 of file NdbQueryBuilder.cpp.


The documentation for this class was generated from the following files: