Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rdbModel::ResultHandle Class Reference

#include <ResultHandle.h>

Inheritance diagram for rdbModel::ResultHandle:

rdbModel::MysqlResults rdbModel::MysqlResults List of all members.

Public Member Functions

virtual unsigned int getNRows () const =0
 Return number of rows in results.
virtual unsigned int getNRows () const =0
 Return number of rows in results.
virtual bool getRow (std::vector< std::string > &fields, unsigned int i=0, bool clear=true)=0
virtual bool getRow (std::vector< std::string > &fields, unsigned int i=0, bool clear=true)=0
virtual bool getRowCon (char *par, unsigned long *treesize, unsigned int *runFrm, unsigned int *runTo, unsigned int i=0, bool clear=true)=0
virtual bool getRowCon (char *par, unsigned long *treesize, unsigned int *runFrm, unsigned int *runTo, unsigned int i=0, bool clear=true)=0
virtual bool getRowPtrs (std::vector< std::string * > &fields, unsigned int i=0, bool clear=true)=0
virtual bool getRowPtrs (std::vector< std::string * > &fields, unsigned int i=0, bool clear=true)=0
 ResultHandle ()
 ResultHandle ()
virtual ~ResultHandle ()
virtual ~ResultHandle ()

Static Public Member Functions

void cleanFieldPtrs (std::vector< std::string * > &fields)
void cleanFieldPtrs (std::vector< std::string * > &fields)

Detailed Description

Pure virtual class representing results of a query. Each concrete implementation of Connection will have an associated concrete implementation of ResultHandle


Constructor & Destructor Documentation

rdbModel::ResultHandle::ResultHandle  )  [inline]
 

00017 {};

virtual rdbModel::ResultHandle::~ResultHandle  )  [inline, virtual]
 

00018 {};

rdbModel::ResultHandle::ResultHandle  )  [inline]
 

00017 {};

virtual rdbModel::ResultHandle::~ResultHandle  )  [inline, virtual]
 

00018 {};


Member Function Documentation

void rdbModel::ResultHandle::cleanFieldPtrs std::vector< std::string * > &  fields  )  [static]
 

void rdbModel::ResultHandle::cleanFieldPtrs std::vector< std::string * > &  fields  )  [static]
 

00007                                                                  {
00008     for (unsigned i = 0; i < fields.size(); i++) {
00009       if (fields[i] != 0) delete fields[i];
00010     }
00011     fields.resize(0);
00012   }

virtual unsigned int rdbModel::ResultHandle::getNRows  )  const [pure virtual]
 

Return number of rows in results.

Implemented in rdbModel::MysqlResults, and rdbModel::MysqlResults.

virtual unsigned int rdbModel::ResultHandle::getNRows  )  const [pure virtual]
 

Return number of rows in results.

Implemented in rdbModel::MysqlResults, and rdbModel::MysqlResults.

virtual bool rdbModel::ResultHandle::getRow std::vector< std::string > &  fields,
unsigned int  i = 0,
bool  clear = true
[pure virtual]
 

Get array of field values for ith row of result set

Implemented in rdbModel::MysqlResults, and rdbModel::MysqlResults.

virtual bool rdbModel::ResultHandle::getRow std::vector< std::string > &  fields,
unsigned int  i = 0,
bool  clear = true
[pure virtual]
 

Get array of field values for ith row of result set

Implemented in rdbModel::MysqlResults, and rdbModel::MysqlResults.

virtual bool rdbModel::ResultHandle::getRowCon char *  par,
unsigned long *  treesize,
unsigned int *  runFrm,
unsigned int *  runTo,
unsigned int  i = 0,
bool  clear = true
[pure virtual]
 

Implemented in rdbModel::MysqlResults, and rdbModel::MysqlResults.

virtual bool rdbModel::ResultHandle::getRowCon char *  par,
unsigned long *  treesize,
unsigned int *  runFrm,
unsigned int *  runTo,
unsigned int  i = 0,
bool  clear = true
[pure virtual]
 

Implemented in rdbModel::MysqlResults, and rdbModel::MysqlResults.

virtual bool rdbModel::ResultHandle::getRowPtrs std::vector< std::string * > &  fields,
unsigned int  i = 0,
bool  clear = true
[pure virtual]
 

Get array of field values for ith row of result set. If a field value is NULL, return a zero ptr for that element of the array

--> It is the responsibility of the caller to delete the strings containing the field values. See service cleanFieldPtrs.

Implemented in rdbModel::MysqlResults, and rdbModel::MysqlResults.

virtual bool rdbModel::ResultHandle::getRowPtrs std::vector< std::string * > &  fields,
unsigned int  i = 0,
bool  clear = true
[pure virtual]
 

Get array of field values for ith row of result set. If a field value is NULL, return a zero ptr for that element of the array

--> It is the responsibility of the caller to delete the strings containing the field values. See service cleanFieldPtrs.

Implemented in rdbModel::MysqlResults, and rdbModel::MysqlResults.


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:22:37 2011 for BOSS6.5.5 by  doxygen 1.3.9.1