⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 callablestatement_8h-source.html.svn-base

📁 絲路server源碼 Silk Road server source
💻 SVN-BASE
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>odbc++/callablestatement.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"><!-- Generated by Doxygen 1.2.13.1 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center><hr><h1>odbc++/callablestatement.h</h1><div class="fragment"><pre>00001 <font class="comment">/* </font>00002 <font class="comment">   This file is part of libodbc++.</font>00003 <font class="comment">   </font>00004 <font class="comment">   Copyright (C) 1999-2000 Manush Dodunekov &lt;manush@stendahls.net&gt;</font>00005 <font class="comment">   </font>00006 <font class="comment">   This library is free software; you can redistribute it and/or</font>00007 <font class="comment">   modify it under the terms of the GNU Library General Public</font>00008 <font class="comment">   License as published by the Free Software Foundation; either</font>00009 <font class="comment">   version 2 of the License, or (at your option) any later version.</font>00010 <font class="comment">   </font>00011 <font class="comment">   This library is distributed in the hope that it will be useful,</font>00012 <font class="comment">   but WITHOUT ANY WARRANTY; without even the implied warranty of</font>00013 <font class="comment">   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</font>00014 <font class="comment">   Library General Public License for more details.</font>00015 <font class="comment">   </font>00016 <font class="comment">   You should have received a copy of the GNU Library General Public License</font>00017 <font class="comment">   along with this library; see the file COPYING.  If not, write to</font>00018 <font class="comment">   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,</font>00019 <font class="comment">   Boston, MA 02111-1307, USA.</font>00020 <font class="comment">*/</font>00021 00022 <font class="preprocessor">#ifndef __ODBCXX_CALLABLESTATEMENT_H</font>00023 <font class="preprocessor"></font><font class="preprocessor">#define __ODBCXX_CALLABLESTATEMENT_H</font>00024 <font class="preprocessor"></font>00025 <font class="preprocessor">#include &lt;odbc++/setup.h&gt;</font>00026 <font class="preprocessor">#include &lt;odbc++/types.h&gt;</font>00027 <font class="preprocessor">#include &lt;odbc++/preparedstatement.h&gt;</font>00028 <a name="l00029"></a><a class="code" href="namespaceodbc.html">00029</a> <font class="keyword">namespace </font>odbc {00030 <a name="l00057"></a><a class="code" href="classodbc_1_1_callable_statement.html">00057</a>   <font class="keyword">class </font>ODBCXX_EXPORT CallableStatement : <font class="keyword">public</font> PreparedStatement {00058     <font class="keyword">friend</font> <font class="keyword">class </font>Connection;00059     00060   <font class="keyword">private</font>:00061     <font class="keywordtype">bool</font> lastWasNull_;00062 00063   <font class="keyword">protected</font>:00064     CallableStatement(Connection* con,00065                       SQLHSTMT hstmt,00066                       <font class="keyword">const</font> ODBCXX_STRING&amp; sql,00067                       <font class="keywordtype">int</font> resultSetType,00068                       <font class="keywordtype">int</font> resultSetConcurrency);00069     00070   <font class="keyword">public</font>:00072     <font class="keyword">virtual</font> ~CallableStatement();00073     00077     <font class="keywordtype">double</font> getDouble(<font class="keywordtype">int</font> idx);00078 00082     <font class="keywordtype">bool</font> getBoolean(<font class="keywordtype">int</font> idx);00083 00087     <font class="keywordtype">signed</font> <font class="keywordtype">char</font> getByte(<font class="keywordtype">int</font> idx);00088 00092     ODBCXX_BYTES getBytes(<font class="keywordtype">int</font> idx);00093 00097     Date getDate(<font class="keywordtype">int</font> idx);00098 00102     <font class="keywordtype">float</font> getFloat(<font class="keywordtype">int</font> idx);00103 00107     <font class="keywordtype">int</font> getInt(<font class="keywordtype">int</font> idx);00108 00112     Long getLong(<font class="keywordtype">int</font> idx);00113 00117     <font class="keywordtype">short</font> getShort(<font class="keywordtype">int</font> idx);00118 00122     ODBCXX_STRING getString(<font class="keywordtype">int</font> idx);00123 00127     Time getTime(<font class="keywordtype">int</font> idx);00128 00132     Timestamp getTimestamp(<font class="keywordtype">int</font> idx);00133 <a name="l00139"></a><a class="code" href="classodbc_1_1_callable_statement.html#a13">00139</a>     <font class="keywordtype">void</font> registerOutParameter(<font class="keywordtype">int</font> idx, <font class="keywordtype">int</font> sqlType) {00140       this-&gt;registerOutParameter(idx,sqlType,0);00141     }00142 00149     <font class="keywordtype">void</font> registerOutParameter(<font class="keywordtype">int</font> idx, <font class="keywordtype">int</font> sqlType, <font class="keywordtype">int</font> scale);00150 00154     <font class="keywordtype">void</font> registerInParameter(<font class="keywordtype">int</font> idx);00155 <a name="l00157"></a><a class="code" href="classodbc_1_1_callable_statement.html#a16">00157</a>     <font class="keywordtype">bool</font> wasNull() {00158       <font class="keywordflow">return</font> lastWasNull_;00159     }00160   };00161 00162   00163 } <font class="comment">// namespace odbc</font>00164 00165 00166 <font class="preprocessor">#endif // __ODBCXX_CALLABLESTATEMENT_H</font></pre></div><hr><div align=center><a class=footer href="http://orcane.net/freeodbc++/">Go back to the freeodbc++ homepage</a></div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -