SQLExecute.hh

00001 //********************************************************************
00002 //*** ResourcePool/mysql/SQLExecute.hh
00003 //*** Copyright (c) 2003-2009 by Markus Winand <mws@fatalmind.com>
00004 //*** $Id: SQLExecute.hh,v 1.21 2009-03-17 18:06:29 mws Exp $
00005 //********************************************************************
00006 /*
00007 This file is part of ResourcePool.
00008 
00009 ResourcePool is free software; you can redistribute it
00010 and/or modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2 of
00012 the License, or (at your option) any later version.
00013 
00014 ResourcePool is distributed in the hope that it will be
00015 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
00016 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 GNU General Public License for more details.
00018 
00019 You should have received a copy of the GNU General Public License
00020 along with ResourcePool; if not, write to the Free Software
00021 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00022 02111-1307  USA */
00023 
00024 #ifndef RESOURCEPOOL_MYSQL_RESOURCEPOOL_HH
00025 #include "ResourcePool.hh"
00026 #endif
00027 
00028 #ifndef RESOURCEPOOL_MYSQL_SQLEXECUTE_HH
00029 #define RESOURCEPOOL_MYSQL_SQLEXECUTE_HH
00030 
00031 #ifndef RESOURCEPOOL_COMMAND_HH
00032 #include "ResourcePool/Command.hh"
00033 #endif
00034 
00035 #ifndef RESOURCEPOOL_MYSQL_SQLTYPE_HH
00036 #include "SQLType.hh"
00037 #endif
00038 
00039 #ifndef RESOURCEPOOL_MYSQL_MYSQLFWD_HH
00040 #include "mysqlFwd.hh"
00041 #endif
00042 
00043 #ifndef INCLUDED_GC_PTR_HH
00044 #include "mm/gc_ptr.hh"
00045 #endif
00046 
00047 #ifndef RESOURCEPOOL_SQL_BIND_HH
00048 #include "ResourcePool/SQL/Bind.hh"
00049 #endif
00050 
00051 #include "ResourcePool/SQL/SQLStatement.hh"
00052 
00053 #include <string>
00054 
00055 namespace fatalmind {
00056 namespace mysql {
00057 
00062 class SQLExecute
00063 : public Command<fatalmind::ResourceType::mysql>
00064 , public SQL::Bind<SQLType, SQLTypeImpl> 
00065 {
00066     public:
00067         SQLExecute(const SQL::SQLStatement& SQL);
00068         SQLExecute(const ResourcePool<ResourceType>& p, const SQL::SQLStatement& SQL);
00069         virtual ~SQLExecute();
00070         virtual void execute(mysqlResource&);
00071 
00072         virtual void outputoperator(std::ostream&) const;
00073 
00074     protected:
00075         virtual Clone* DoClone() const;
00076 
00077     private:
00078         SQL::SQLStatement _SQL;
00079 };
00080 
00081 
00082 } // namespace mysql
00083 } // namespace fatalmind
00084 #endif

Generated on Mon Nov 9 16:21:24 2009 for ResourcePool by  doxygen 1.5.3