Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 204ec3a8a895ae5700811efd516cad83 > files > 17

libzdb-devel-2.8.1-1.fc15.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libzdb: ResultSet.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<style type="text/css" media="screen">
    body,div,p,dl{font: normal normal normal 14px/18px Helvetica,Arial,sans-serif;}
</style>
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="contents">
<h1>ResultSet.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
A <b>ResultSet</b> represents a database result set. 
<p>
A ResultSet is created by executing a SQL SELECT statement using either <a class="el" href="Connection_8h.html#3d1e39204654573ccac3d8ba3a2eae58" title="Executes the given SQL statement, which returns a single ResultSet object.">Connection_executeQuery()</a> or <a class="el" href="PreparedStatement_8h.html#3e33ed8289ac8b8b11438b009a169e63" title="Executes the prepared SQL statement, which returns a single ResultSet object.">PreparedStatement_executeQuery()</a>.<p>
A ResultSet maintains a cursor pointing to its current row of data. Initially the cursor is positioned before the first row. <a class="el" href="ResultSet_8h.html#ad8fdb37da072341e44b847b3f1e8daa" title="Moves the cursor down one row from its current position.">ResultSet_next()</a> moves the cursor to the next row, and because it returns false when there are no more rows in the ResultSet object, it can be used in a while loop to iterate through the result set. A ResultSet object is not updatable and has a cursor that moves forward only. Thus, you can iterate through it only once and only from the first row to the last row.<p>
The ResultSet interface provides getter methods for retrieving column values from the current row. Values can be retrieved using either the index number of the column or the name of the column. In general, using the column index will be more efficient. <em>Columns are numbered from 1.</em><p>
Column names used as input to getter methods are case sensitive. When a getter method is called with a column name and several columns have the same name, the value of the first matching column will be returned. The column name option is designed to be used when column names are used in the SQL query that generated the result set. For columns that are NOT explicitly named in the query, it is best to use column indices.<p>
<h3>Example</h3>
<p>
The following examples demonstrate how to obtain a ResultSet and how to get values from the set: <pre>
 ResultSet_T r = Connection_executeQuery(con, "SELECT ssn, name, picture FROM employees");
 while (ResultSet_next(r)) 
 {
      int ssn = ResultSet_getIntByName(r, "ssn");
      const char *name =  ResultSet_getStringByName(r, "name");
      int pictureSize;
      const void *picture = ResultSet_getBlobByName(r, "picture", &amp;pictureSize);
      [..]
 }
 </pre> Here is another example where a generated result is selected and printed: <pre>
 ResultSet_T r = Connection_executeQuery(con, "SELECT count(*) FROM users");
 printf("Number of users: %s\n", ResultSet_next(r) ? ResultSet_getString(r, 1) : "no users");
 </pre><p>
<h3>Automatic type conversions</h3>
<p>
A ResultSet store values internally as bytes and convert values on-the-fly to numeric types when requested, such as when <a class="el" href="ResultSet_8h.html#a73672053b34ee50c21eac0783b28719" title="Retrieves the value of the designated column in the current row of this ResultSet...">ResultSet_getInt()</a> or one of the other numeric get-methods are called. In the above example, even if <em>count(*)</em> returns a numeric value, we can use <a class="el" href="ResultSet_8h.html#0e4af3b3642b4c63a97a9d5d5587e212" title="Retrieves the value of the designated column in the current row of this ResultSet...">ResultSet_getString()</a> to get the number as a string or if we choose, we can use <a class="el" href="ResultSet_8h.html#a73672053b34ee50c21eac0783b28719" title="Retrieves the value of the designated column in the current row of this ResultSet...">ResultSet_getInt()</a> to get the value as an integer. In the latter case, note that if the column value cannot be converted to a number, an SQLException is thrown.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="Connection_8h.html" title="A Connection represent a connection to a SQL database system.">Connection.h</a> <a class="el" href="PreparedStatement_8h.html" title="A PreparedStatement represent a single SQL statement pre-compiled into byte code...">PreparedStatement.h</a> <a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#0acb682b8260ab1c60b918599864e2e5">T</a>&nbsp;&nbsp;&nbsp;ResultSet_T</td></tr>

<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef struct <a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#24514489b0962fafe8414bfae95aa268">T</a></td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#ad8fdb37da072341e44b847b3f1e8daa">ResultSet_next</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Moves the cursor down one row from its current position.  <a href="#ad8fdb37da072341e44b847b3f1e8daa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#0e4af3b3642b4c63a97a9d5d5587e212">ResultSet_getString</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, int columnIndex)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the value of the designated column in the current row of this ResultSet object as a C-string.  <a href="#0e4af3b3642b4c63a97a9d5d5587e212"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#6d170a21b28fcafa93243b943fd96e0c">ResultSet_getStringByName</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, const char *columnName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the value of the designated column in the current row of this ResultSet object as a C-string.  <a href="#6d170a21b28fcafa93243b943fd96e0c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#a73672053b34ee50c21eac0783b28719">ResultSet_getInt</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, int columnIndex)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the value of the designated column in the current row of this ResultSet object as an int.  <a href="#a73672053b34ee50c21eac0783b28719"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#51563d2ce1e948806d34c0960f5d66dc">ResultSet_getIntByName</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, const char *columnName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the value of the designated column in the current row of this ResultSet object as an int.  <a href="#51563d2ce1e948806d34c0960f5d66dc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">long long int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#73cdf5516e24a97678cd8a88edb1809d">ResultSet_getLLong</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, int columnIndex)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the value of the designated column in the current row of this ResultSet object as a long long.  <a href="#73cdf5516e24a97678cd8a88edb1809d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">long long int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#c6565434f4323818fe88dacf08197091">ResultSet_getLLongByName</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, const char *columnName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the value of the designated column in the current row of this ResultSet object as a long long.  <a href="#c6565434f4323818fe88dacf08197091"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#b501755d054fea3bdab5de15a2259e9e">ResultSet_getDouble</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, int columnIndex)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the value of the designated column in the current row of this ResultSet object as a double.  <a href="#b501755d054fea3bdab5de15a2259e9e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#38c392c208d0f6be4c6b4a29c624a367">ResultSet_getDoubleByName</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, const char *columnName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the value of the designated column in the current row of this ResultSet object as a double.  <a href="#38c392c208d0f6be4c6b4a29c624a367"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#2c4e359cacb767ca278233ec25c41133">ResultSet_getBlob</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, int columnIndex, int *size)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the value of the designated column in the current row of this ResultSet object as a void pointer.  <a href="#2c4e359cacb767ca278233ec25c41133"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#0e03a70f0a8bb1677fcfe6f811ceeb19">ResultSet_getBlobByName</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, const char *columnName, int *size)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retrieves the value of the designated column in the current row of this ResultSet object as a void pointer.  <a href="#0e03a70f0a8bb1677fcfe6f811ceeb19"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Properties</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#74a9a4c55f9ff432e6cbb5c196627427">ResultSet_getColumnCount</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of columns in this ResultSet object.  <a href="#74a9a4c55f9ff432e6cbb5c196627427"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#201ee8c329807a71dc3a6ac6cd3a3879">ResultSet_getColumnName</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, int columnIndex)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the designated column's name.  <a href="#201ee8c329807a71dc3a6ac6cd3a3879"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">long&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ResultSet_8h.html#3f9283bcdd0ae95a05b22f30c9c1a08b">ResultSet_getColumnSize</a> (<a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a> R, int columnIndex)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns column size in bytes.  <a href="#3f9283bcdd0ae95a05b22f30c9c1a08b"></a><br></td></tr>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="0acb682b8260ab1c60b918599864e2e5"></a><!-- doxytag: member="ResultSet.h::T" ref="0acb682b8260ab1c60b918599864e2e5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;&nbsp;&nbsp;ResultSet_T          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="24514489b0962fafe8414bfae95aa268"></a><!-- doxytag: member="ResultSet.h::T" ref="24514489b0962fafe8414bfae95aa268" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>* <a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="74a9a4c55f9ff432e6cbb5c196627427"></a><!-- doxytag: member="ResultSet.h::ResultSet_getColumnCount" ref="74a9a4c55f9ff432e6cbb5c196627427" args="(T R)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ResultSet_getColumnCount           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the number of columns in this ResultSet object. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of columns </dd></dl>

</div>
</div><p>
<a class="anchor" name="201ee8c329807a71dc3a6ac6cd3a3879"></a><!-- doxytag: member="ResultSet.h::ResultSet_getColumnName" ref="201ee8c329807a71dc3a6ac6cd3a3879" args="(T R, int columnIndex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* ResultSet_getColumnName           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>columnIndex</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the designated column's name. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnIndex</em>&nbsp;</td><td>The first column is 1, the second is 2, ... </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Column name or NULL if the column does not exist. You should use the method <a class="el" href="ResultSet_8h.html#74a9a4c55f9ff432e6cbb5c196627427" title="Returns the number of columns in this ResultSet object.">ResultSet_getColumnCount()</a> to test for the availablity of columns in the result set. </dd></dl>

</div>
</div><p>
<a class="anchor" name="3f9283bcdd0ae95a05b22f30c9c1a08b"></a><!-- doxytag: member="ResultSet.h::ResultSet_getColumnSize" ref="3f9283bcdd0ae95a05b22f30c9c1a08b" args="(T R, int columnIndex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long ResultSet_getColumnSize           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>columnIndex</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns column size in bytes. 
<p>
If the column is a blob then this method returns the number of bytes in that blob. No type conversions occur. If the result is a string (or a number since a number can be converted into a string) then return the number of bytes in the resulting string. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnIndex</em>&nbsp;</td><td>The first column is 1, the second is 2, ... </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Column data size </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if columnIndex is outside the valid range </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="ad8fdb37da072341e44b847b3f1e8daa"></a><!-- doxytag: member="ResultSet.h::ResultSet_next" ref="ad8fdb37da072341e44b847b3f1e8daa" args="(T R)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ResultSet_next           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Moves the cursor down one row from its current position. 
<p>
A ResultSet cursor is initially positioned before the first row; the first call to this method makes the first row the current row; the second call makes the second row the current row, and so on. When there are not more available rows false is returned. An empty ResultSet will return false on the first call to <a class="el" href="ResultSet_8h.html#ad8fdb37da072341e44b847b3f1e8daa" title="Moves the cursor down one row from its current position.">ResultSet_next()</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the new current row is valid; false if there are no more rows </dd></dl>

</div>
</div><p>
<a class="anchor" name="0e4af3b3642b4c63a97a9d5d5587e212"></a><!-- doxytag: member="ResultSet.h::ResultSet_getString" ref="0e4af3b3642b4c63a97a9d5d5587e212" args="(T R, int columnIndex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* ResultSet_getString           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>columnIndex</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the value of the designated column in the current row of this ResultSet object as a C-string. 
<p>
If <code>columnIndex</code> is outside the range [1..<a class="el" href="ResultSet_8h.html#74a9a4c55f9ff432e6cbb5c196627427" title="Returns the number of columns in this ResultSet object.">ResultSet_getColumnCount()</a>] this method throws an SQLException. <em>The returned string may only be valid until the next call to <a class="el" href="ResultSet_8h.html#ad8fdb37da072341e44b847b3f1e8daa" title="Moves the cursor down one row from its current position.">ResultSet_next()</a> and if you plan to use the returned value longer, you must make a copy.</em> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnIndex</em>&nbsp;</td><td>The first column is 1, the second is 2, ... </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The column value; if the value is SQL NULL, the value returned is NULL </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if a database access error occurs or columnIndex is outside the valid range </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="6d170a21b28fcafa93243b943fd96e0c"></a><!-- doxytag: member="ResultSet.h::ResultSet_getStringByName" ref="6d170a21b28fcafa93243b943fd96e0c" args="(T R, const char *columnName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* ResultSet_getStringByName           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>columnName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the value of the designated column in the current row of this ResultSet object as a C-string. 
<p>
If <code>columnName</code> is not found this method throws an SQLException. <em>The returned string may only be valid until the next call to <a class="el" href="ResultSet_8h.html#ad8fdb37da072341e44b847b3f1e8daa" title="Moves the cursor down one row from its current position.">ResultSet_next()</a> and if you plan to use the returned value longer, you must make a copy.</em> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnName</em>&nbsp;</td><td>The SQL name of the column. <em>case-sensitive</em> </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The column value; if the value is SQL NULL, the value returned is NULL </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if a database access error occurs or columnName does not exist </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="a73672053b34ee50c21eac0783b28719"></a><!-- doxytag: member="ResultSet.h::ResultSet_getInt" ref="a73672053b34ee50c21eac0783b28719" args="(T R, int columnIndex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ResultSet_getInt           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>columnIndex</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the value of the designated column in the current row of this ResultSet object as an int. 
<p>
If <code>columnIndex</code> is outside the range [1..<a class="el" href="ResultSet_8h.html#74a9a4c55f9ff432e6cbb5c196627427" title="Returns the number of columns in this ResultSet object.">ResultSet_getColumnCount()</a>] this method throws an SQLException. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnIndex</em>&nbsp;</td><td>The first column is 1, the second is 2, ... </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The column value; if the value is SQL NULL, the value returned is 0 </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if a database access error occurs or columnIndex is outside the valid range </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="51563d2ce1e948806d34c0960f5d66dc"></a><!-- doxytag: member="ResultSet.h::ResultSet_getIntByName" ref="51563d2ce1e948806d34c0960f5d66dc" args="(T R, const char *columnName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ResultSet_getIntByName           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>columnName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the value of the designated column in the current row of this ResultSet object as an int. 
<p>
If <code>columnName</code> is not found this method throws an SQLException. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnName</em>&nbsp;</td><td>The SQL name of the column. <em>case-sensitive</em> </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The column value; if the value is SQL NULL, the value returned is 0 </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if a database access error occurs or columnName does not exist </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="73cdf5516e24a97678cd8a88edb1809d"></a><!-- doxytag: member="ResultSet.h::ResultSet_getLLong" ref="73cdf5516e24a97678cd8a88edb1809d" args="(T R, int columnIndex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long long int ResultSet_getLLong           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>columnIndex</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the value of the designated column in the current row of this ResultSet object as a long long. 
<p>
If <code>columnIndex</code> is outside the range [1..<a class="el" href="ResultSet_8h.html#74a9a4c55f9ff432e6cbb5c196627427" title="Returns the number of columns in this ResultSet object.">ResultSet_getColumnCount()</a>] this method throws an SQLException. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnIndex</em>&nbsp;</td><td>The first column is 1, the second is 2, ... </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The column value; if the value is SQL NULL, the value returned is 0 </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if a database access error occurs or columnIndex is outside the valid range </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="c6565434f4323818fe88dacf08197091"></a><!-- doxytag: member="ResultSet.h::ResultSet_getLLongByName" ref="c6565434f4323818fe88dacf08197091" args="(T R, const char *columnName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long long int ResultSet_getLLongByName           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>columnName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the value of the designated column in the current row of this ResultSet object as a long long. 
<p>
If <code>columnName</code> is not found this method throws an SQLException. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnName</em>&nbsp;</td><td>The SQL name of the column. <em>case-sensitive</em> </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The column value; if the value is SQL NULL, the value returned is 0 </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if a database access error occurs or columnName does not exist </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="b501755d054fea3bdab5de15a2259e9e"></a><!-- doxytag: member="ResultSet.h::ResultSet_getDouble" ref="b501755d054fea3bdab5de15a2259e9e" args="(T R, int columnIndex)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double ResultSet_getDouble           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>columnIndex</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the value of the designated column in the current row of this ResultSet object as a double. 
<p>
If <code>columnIndex</code> is outside the range [1..<a class="el" href="ResultSet_8h.html#74a9a4c55f9ff432e6cbb5c196627427" title="Returns the number of columns in this ResultSet object.">ResultSet_getColumnCount()</a>] this method throws an SQLException. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnIndex</em>&nbsp;</td><td>The first column is 1, the second is 2, ... </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The column value; if the value is SQL NULL, the value returned is 0.0 </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if a database access error occurs or columnIndex is outside the valid range </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="38c392c208d0f6be4c6b4a29c624a367"></a><!-- doxytag: member="ResultSet.h::ResultSet_getDoubleByName" ref="38c392c208d0f6be4c6b4a29c624a367" args="(T R, const char *columnName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double ResultSet_getDoubleByName           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>columnName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the value of the designated column in the current row of this ResultSet object as a double. 
<p>
If <code>columnName</code> is not found this method throws an SQLException. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnName</em>&nbsp;</td><td>The SQL name of the column. <em>case-sensitive</em> </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The column value; if the value is SQL NULL, the value returned is 0.0 </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if a database access error occurs or columnName does not exist </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="2c4e359cacb767ca278233ec25c41133"></a><!-- doxytag: member="ResultSet.h::ResultSet_getBlob" ref="2c4e359cacb767ca278233ec25c41133" args="(T R, int columnIndex, int *size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const void* ResultSet_getBlob           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>columnIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>size</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the value of the designated column in the current row of this ResultSet object as a void pointer. 
<p>
If <code>columnIndex</code> is outside the range [1..<a class="el" href="ResultSet_8h.html#74a9a4c55f9ff432e6cbb5c196627427" title="Returns the number of columns in this ResultSet object.">ResultSet_getColumnCount()</a>] this method throws an SQLException. <em>The returned blob may only be valid until the next call to <a class="el" href="ResultSet_8h.html#ad8fdb37da072341e44b847b3f1e8daa" title="Moves the cursor down one row from its current position.">ResultSet_next()</a> and if you plan to use the returned value longer, you must make a copy.</em> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnIndex</em>&nbsp;</td><td>The first column is 1, the second is 2, ... </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>The number of bytes in the blob is stored in size </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The column value; if the value is SQL NULL, the value returned is NULL </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if a database access error occurs or columnIndex is outside the valid range </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="0e03a70f0a8bb1677fcfe6f811ceeb19"></a><!-- doxytag: member="ResultSet.h::ResultSet_getBlobByName" ref="0e03a70f0a8bb1677fcfe6f811ceeb19" args="(T R, const char *columnName, int *size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const void* ResultSet_getBlobByName           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="URL_8h.html#24514489b0962fafe8414bfae95aa268">T</a>&nbsp;</td>
          <td class="paramname"> <em>R</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>columnName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&nbsp;</td>
          <td class="paramname"> <em>size</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Retrieves the value of the designated column in the current row of this ResultSet object as a void pointer. 
<p>
If <code>columnName</code> is not found this method throws an SQLException. <em>The returned blob may only be valid until the next call to <a class="el" href="ResultSet_8h.html#ad8fdb37da072341e44b847b3f1e8daa" title="Moves the cursor down one row from its current position.">ResultSet_next()</a> and if you plan to use the returned value longer, you must make a copy.</em> <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>R</em>&nbsp;</td><td>A ResultSet object </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>columnName</em>&nbsp;</td><td>The SQL name of the column. <em>case-sensitive</em> </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>The number of bytes in the blob is stored in size </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The column value; if the value is SQL NULL, the value returned is NULL </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>SQLException</em>&nbsp;</td><td>if a database access error occurs or columnName does not exist </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="SQLException_8h.html" title="Signals that an SQL specific exception has occurred.">SQLException.h</a> </dd></dl>

</div>
</div><p>
</div>
<p style="text-align:center;color:#808080;font-size:90%;margin:40px 0 20px 0;">
Copyright &copy; 2004-2011 <a href="http://tildeslash.com/">Tildeslash Ltd</a>. All
rights reserved.</p>
</body></html>