hk_mysqldatabase.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
00003 // This file is part of the hk_mysqlclasses library.
00004 // This file may be distributed and/or modified under the terms of the
00005 // GNU Library Public License version 2 as published by the Free Software
00006 // Foundation and appearing in the file COPYING included in the
00007 // packaging of this file.
00008 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00009 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00010 // ****************************************************************************
00011 #ifndef HK_MYSQLDATABASE
00012 #define HK_MYSQLDATABASE
00013 #include "hk_database.h"
00014 #include "hk_mysqldatasource.h"
00015 
00016 class hk_mysqlconnection;
00017 class hk_presentation;
00018 
00019 class hk_mysqldatabase:public hk_database
00020 {
00021     friend class hk_mysqlconnection;
00022 
00023     public:
00024         hk_mysqlconnection* connection(void);
00025         ~hk_mysqldatabase();
00026 
00027     protected:
00028         hk_mysqldatabase(hk_mysqlconnection*c);
00029         void                driver_specific_tablelist(void);
00030         hk_datasource*      driver_specific_new_table(hk_presentation* p);
00031         hk_datasource*      driver_specific_new_resultquery(hk_presentation* p);
00032         hk_actionquery*     driver_specific_new_actionquery(void);
00033         virtual bool    driver_specific_rename_table(const hk_string& oldname,const hk_string& newname);
00034         bool            driver_specific_select_db(void);
00035         void driver_specific_viewlist(void);
00036         virtual hk_datasource* driver_specific_new_view(hk_presentation* p);
00037 
00038     private:
00039         hk_mysqlconnection* p_mysqlconnection;
00040         list<hk_mysqldatasource*> p_dsourcelist;
00041 } ;
00042 #endif

Generated on Tue Nov 28 02:48:08 2006 for Databaseconnectionclasses by  doxygen 1.5.0