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

SQLConnection.h

00001 /*
00002  * $Id: SQLConnection.h,v 1.3 2003/08/01 20:59:19 mindstorm2600 Exp $
00003  */
00004 #ifndef __CLAW_SQLConnection_H__
00005 #define __CLAW_SQLConnection_H__
00006 
00007 #include<DatabaseInterface.h>
00008 #include<SQLDriver.h>
00009 
00010 namespace clawsoft{
00017         class SQLConnection:public DatabaseInterface{
00018                 private:
00019                         Uint32 __conn;
00020                 protected:
00021                         SQLDriver       *driver;
00022                         String          _server;
00023                         String          _user;
00024                         String          _password;
00025                         int             _port;
00026                         bool            __connected;
00027                 public:
00029                         SQLConnection(SQLDriver *drv);
00033                         SQLConnection(SQLDriver *drv, const String &server, const String &u, const String &p, int port = 0);
00035                         ~SQLConnection();
00041                         void connect(const String &server, const String &u, const String &p, int port = 0);
00045                         void connect();
00048                         void disconnect();
00058                         ResultSet *query(const String &cmd);
00064                         void commit();
00065         };
00066 };
00067 
00068 #endif

Authors:

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

Powered by:

SourceForgeLogo