Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

cOracleDatabase.h

Go to the documentation of this file.
00001 /******************************************************************************/
00002 /*                                                                            */
00003 /* POLiTe - Persistent Object Library Test                                    */
00004 /*                                        Ph.D. Thesis by Mgr. Michal Kopecky */
00005 /*                                                                            */
00006 /* Charles University Prague                                                  */
00007 /*                                                                            */
00008 /******************************************************************************/
00009 /*                                                                            */
00010 /* File name: ...                                                             */
00011 /* Module: ......                                                             */
00012 /*                                                                            */
00013 /******************************************************************************/
00014 
00015 #ifndef __C_ORACLEDATABASE_H__
00016 #define __C_ORACLEDATABASE_H__
00017 
00018 
00019 // Common POLiTe Header(s)
00020 #include <lTypes.h>
00021 #include <lExceptions.h>
00022 
00023 // Parent Header(s)
00024 #include <cDatabase.h>
00025 
00026 class DLL_External OracleDatabase : public Database
00027 {
00028 #ifdef POLITE_TEST_FRIEND
00029         friend POLITE_TEST_FRIEND;
00030 #endif // POLITE_TEST_FRIEND
00031 
00032 public:
00033         OracleDatabase(const char *ConnectString = NULL);
00034         ~OracleDatabase();
00035 
00036 public:
00037         virtual bool Commit();
00038         virtual bool Rollback();
00039         virtual class Connection *Connect(
00040                 const char *UserName,
00041                 const char *Password
00042                 );
00043 
00044         virtual bool WriteDDL(ofstream &S);
00045         // generates DDL stements nedded for the library to run
00046         virtual char *ColumnTypeDDL(char coltype, int collen);
00047         // returns correct database column type for given attribute type
00048 
00049 protected:
00050         virtual bool _Commit();
00051         virtual bool _Rollback();
00052 };
00053 
00054 #endif //__C_ORACLEDATABASE_H__

Generated on Sun Jul 14 20:51:14 2002 for POLiTe by doxygen1.2.16