![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
00001 /* 00002 Copyright 2007 - 2008 MySQL AB, 2008 - 2009 Sun Microsystems, Inc. All rights reserved. 00003 00004 The MySQL Connector/C++ is licensed under the terms of the GPL 00005 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most 00006 MySQL Connectors. There are special exceptions to the terms and 00007 conditions of the GPL as it is applied to this software, see the 00008 FLOSS License Exception 00009 <http://www.mysql.com/about/legal/licensing/foss-exception.html>. 00010 */ 00011 00012 #ifndef _SQL_STATEMENT_H_ 00013 #define _SQL_STATEMENT_H_ 00014 00015 #include "config.h" 00016 #include "resultset.h" 00017 00018 #include <string> 00019 00020 namespace sql 00021 { 00022 00023 class ResultSet; 00024 class Connection; 00025 class SQLWarning; 00026 00027 00028 class Statement 00029 { 00030 public: 00031 virtual ~Statement() {}; 00032 00033 virtual Connection * getConnection() = 0; 00034 00035 virtual void clearWarnings() = 0; 00036 00037 virtual void close() = 0; 00038 00039 virtual bool execute(const std::string& sql) = 0; 00040 00041 virtual ResultSet * executeQuery(const std::string& sql) = 0; 00042 00043 virtual int executeUpdate(const std::string& sql) = 0; 00044 00045 virtual bool getMoreResults() = 0; 00046 00047 virtual ResultSet * getResultSet() = 0; 00048 00049 virtual sql::ResultSet::enum_type getResultSetType() = 0; 00050 00051 virtual uint64_t getUpdateCount() = 0; 00052 00053 virtual const SQLWarning * getWarnings() = 0; 00054 00055 virtual Statement * setResultSetType(sql::ResultSet::enum_type type) = 0; 00056 }; 00057 00058 } /* namespace sql */ 00059 00060 #endif /* _SQL_STATEMENT_H_ */
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.