00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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 <string>
00052
00053 namespace fatalmind {
00054 namespace mysql {
00055
00060 class SQLExecute
00061 : public Command<fatalmind::ResourceType::mysql>
00062 , public SQL::Bind<SQLType, SQLTypeImpl>
00063 {
00064 public:
00065 SQLExecute(const std::string& SQL);
00066 SQLExecute(const ResourcePool<ResourceType>& p, const std::string& SQL);
00067 virtual ~SQLExecute();
00068 virtual void execute(mysqlResource&);
00069
00070 virtual void outputoperator(std::ostream&) const;
00071
00072 protected:
00073 virtual Clone* DoClone() const;
00074
00075 private:
00076 std::string _SQL;
00077 };
00078
00079
00080 }
00081 }
00082 #endif