Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

ResultSet.h

00001 /*
00002  * $Id: ResultSet.h,v 1.5 2003/09/04 19:53:13 mindstorm2600 Exp $
00003  */
00004 #ifndef __CLAW_RESULTSET_H__
00005 #define __CLAW_RESULTSET_H__
00006 #include<DatabaseInterface.h>
00007 #include<SQLDriver.h>
00008 #include<SQLField.h>
00009 
00010 namespace clawsoft{
00011 
00012         class SQLDriver;
00013 
00020         class ResultSet:public DatabaseInterface{
00021                 private:
00022                 protected:
00023                         bool _status;
00024                         Uint32 r_handle;
00025                         SQLDriver *driver;
00026                         SQLField *row;
00027                         int nrows;
00028                         int ncols;
00029                         //List<String> _columns;
00030                 public:
00031                         ResultSet(SQLDriver *drv, Uint32 __rhandle, bool __status);
00032                         ~ResultSet();
00033                         bool status();
00034                         const int numRows();
00035                         const int numCols();
00036                         const String &getColName(const int index);
00037                         const SQLField *getRow();
00038                         const SQLField &get(const int index);
00039                         const SQLField &get(const String &colname);
00040                         const SQLField *fetchNextRow();
00041         };
00042 };
00043 
00044 #endif

Authors:

Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara

Powered by:

SourceForgeLogo