lib/BasicDML.hpp

Go to the documentation of this file.
00001 //    <oraload - loads and gets lobs (Large Objects) into and out of an Oracle Database> 
00002 //    Copyright (C) <2004-2007> <Ralf Duenkelmann>
00003 //
00004 //    This library is free software; you can redistribute it and/or modify it under the terms of the 
00005 //    GNU Lesser General Public License as published by the Free Software Foundation; 
00006 //    either version 2.1 of the License, or (at your option) any later version.
00007 //
00008 //    This library is distributed in the hope that it will be useful, 
00009 //    but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
00010 //    FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
00011 //
00012 //    You should have received a copy of the GNU Lesser General Public License along with this library; 
00013 //    if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00014 
00015 #include <iostream>
00016 #include <stdlib.h>
00017 #include <fstream>
00018 #include <cstdio>
00019 #include <occi.h>
00020 using namespace oracle::occi;
00021 using namespace std;
00022 #include "Connection.hpp"
00023 
00024 #ifndef BASIC__DML_HPP
00025 #define BASIC__DML_HPP
00026 
00036 class BasicDML:public Conn
00037 {
00038   private:
00039   Statement *stmt;  // Statement
00040   string sqlStmt;   // the sql itself with or without binds
00041   string bind[255]; // the bind values
00042   string bind_type[255]; // the bind datatypes
00043 
00044   public:
00045   
00048   BasicDML ();
00049 
00055   BasicDML (string user, string pass, string db);
00056   
00065   string displayRows (int selectCount,unsigned int bindCount);
00066 
00073   void setSQLStmt (string s);
00074 
00083   void setBind(int pos, string datatype , string wert) ;
00084   
00091   int InsertRow(string pSql);
00092   
00098   int InsertRow(void);
00099   
00102   void Commit(void);
00103   
00106   void Rollback(void);
00107 };
00108 
00109 #endif

Generated on Wed Jun 6 17:56:27 2007 for LobShooter for Oracle (oraload) by  doxygen 1.5.1