/* This file is part of libodbc++. Copyright (C) 1999-2000 Manush Dodunekov <manush@stendahls.net> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __ODBCXX_CALLABLESTATEMENT_H #define __ODBCXX_CALLABLESTATEMENT_H #include <odbc++/setup.h> #include <odbc++/types.h> #include <odbc++/preparedstatement.h> namespace odbc { class ODBCXX_EXPORT CallableStatement : public PreparedStatement { friend class Connection; private: bool lastWasNull_; protected: CallableStatement(Connection* con, SQLHSTMT hstmt, const ODBCXX_STRING& sql, int resultSetType, int resultSetConcurrency); public: virtual ~CallableStatement(); double getDouble(int idx); bool getBoolean(int idx); signed char getByte(int idx); ODBCXX_BYTES getBytes(int idx); Date getDate(int idx); float getFloat(int idx); int getInt(int idx); Long getLong(int idx); short getShort(int idx); ODBCXX_STRING getString(int idx); Time getTime(int idx); Timestamp getTimestamp(int idx); void registerOutParameter(int idx, int sqlType) { this->registerOutParameter(idx,sqlType,0); } void registerOutParameter(int idx, int sqlType, int scale); bool wasNull() { return lastWasNull_; } }; }; // namespace odbc #endif // __ODBCXX_CALLABLESTATEMENT_H