00001 // LICENSE: (Please see the file COPYING for details) 00002 // 00003 // NUS - Nemesis Utilities System: A C++ application development framework 00004 // Copyright (C) 2006, 2008 Otavio Rodolfo Piske 00005 // 00006 // This file is part of NUS 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Lesser General Public 00010 // License as published by the Free Software Foundation version 2.1 00011 // of the License. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 // Lesser General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU Lesser General Public 00019 // License along with this library; if not, write to the Free Software 00020 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00021 // 00022 #ifndef NSQLQUERY_H_ 00023 #define NSQLQUERY_H_ 00024 00025 #include "nobject.h" 00026 #include "nstring.h" 00027 #include "nvtype.h" 00028 00037 class NSqlQuery: public NObject { 00038 public: 00042 NSqlQuery(void); 00043 00048 NSqlQuery(const NString &query); 00049 00054 NSqlQuery(const NSqlQuery &other); 00055 00059 ~NSqlQuery(void); 00060 00061 00068 bool bindValue(const NString &name, const NVtype &value); 00069 00075 bool addBindValue(const NVtype &value); 00076 00077 00082 void set(const NString &query); 00083 00088 NString get(void) const; 00089 00090 private: 00091 NString m_query; 00092 }; 00093 00094 #endif // NSQLQUERY_H_