📄 classodbc_1_1_result_set.html.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::ResultSet class Reference</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> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> </center><hr><h1>odbc::ResultSet Class Reference</h1>A result set. <a href="#_details">More...</a><p><code>#include <<a class="el" href="resultset_8h-source.html">resultset.h</a>></code><p><p>Inheritance diagram for odbc::ResultSet::<p><center><img src="classodbc_1_1_result_set.gif" usemap="#odbc::ResultSet_map" border="0"></center><map name="odbc::ResultSet_map"><area href="classodbc_1_1_error_handler.html" alt="odbc::ErrorHandler" shape="rect" coords="0,0,121,24"></map><a href="classodbc_1_1_result_set-members.html">List of all members.</a><h2>Public Types</h2><ul><li>enum { <a class="el" href="classodbc_1_1_result_set.html#s5s0">CONCUR_READ_ONLY</a>, <a class="el" href="classodbc_1_1_result_set.html#s5s1">CONCUR_UPDATABLE</a> }<dl class="el"><dd><font size=-1><em><a class="el" href="classodbc_1_1_result_set.html">ResultSet</a> concurrency constants.</em> <a href="#s5">More...</a><em><br><br></em></font></dl><li>enum { <a class="el" href="classodbc_1_1_result_set.html#s6s2">TYPE_FORWARD_ONLY</a>, <a class="el" href="classodbc_1_1_result_set.html#s6s3">TYPE_SCROLL_INSENSITIVE</a>, <a class="el" href="classodbc_1_1_result_set.html#s6s4">TYPE_SCROLL_SENSITIVE</a> }<dl class="el"><dd><font size=-1><em><a class="el" href="classodbc_1_1_result_set.html">ResultSet</a> type constants.</em> <a href="#s6">More...</a><em><br><br></em></font></dl></ul><h2>Public Methods</h2><ul><li><a name="a0" doxytag="odbc::ResultSet::~ResultSet"></a>virtual <a class="el" href="classodbc_1_1_result_set.html#a0">~ResultSet</a> ()<dl class="el"><dd><font size=-1><em>Destructor.<br><br></em></font></dl><li>bool <a class="el" href="classodbc_1_1_result_set.html#a1">absolute</a> (int row)<dl class="el"><dd><font size=-1><em>Moves the cursor to a specific row in this result set.</em> <a href="#a1">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classodbc_1_1_result_set.html#a2">relative</a> (int rows)<dl class="el"><dd><font size=-1><em>Moves the cursor inside the result set relative to the current row.</em> <a href="#a2">More...</a><em><br><br></em></font></dl><li><a name="a3" doxytag="odbc::ResultSet::afterLast"></a>void <a class="el" href="classodbc_1_1_result_set.html#a3">afterLast</a> ()<dl class="el"><dd><font size=-1><em>Places the cursor after the last row in the result set.<br><br></em></font></dl><li><a name="a4" doxytag="odbc::ResultSet::beforeFirst"></a>void <a class="el" href="classodbc_1_1_result_set.html#a4">beforeFirst</a> ()<dl class="el"><dd><font size=-1><em>Places the cursor before the first row in the result set.<br><br></em></font></dl><li><a name="a5" doxytag="odbc::ResultSet::isAfterLast"></a>bool <a class="el" href="classodbc_1_1_result_set.html#a5">isAfterLast</a> ()<dl class="el"><dd><font size=-1><em>Checks if the cursor is after the last row in the result set.<br><br></em></font></dl><li><a name="a6" doxytag="odbc::ResultSet::isBeforeFirst"></a>bool <a class="el" href="classodbc_1_1_result_set.html#a6">isBeforeFirst</a> ()<dl class="el"><dd><font size=-1><em>Checks if the cursor is before the first row in the result set.<br><br></em></font></dl><li><a name="a7" doxytag="odbc::ResultSet::isFirst"></a>bool <a class="el" href="classodbc_1_1_result_set.html#a7">isFirst</a> ()<dl class="el"><dd><font size=-1><em>Checks if the cursor is on the first row in the result set.<br><br></em></font></dl><li><a name="a8" doxytag="odbc::ResultSet::isLast"></a>bool <a class="el" href="classodbc_1_1_result_set.html#a8">isLast</a> ()<dl class="el"><dd><font size=-1><em>Checks if the cursor is on the last row in the result set.<br><br></em></font></dl><li>int <a class="el" href="classodbc_1_1_result_set.html#a9">getRow</a> ()<dl class="el"><dd><font size=-1><em>Returns the current row number.</em> <a href="#a9">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classodbc_1_1_result_set.html#a10">next</a> ()<dl class="el"><dd><font size=-1><em>Moves to the next row in the result set.</em> <a href="#a10">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classodbc_1_1_result_set.html#a11">previous</a> ()<dl class="el"><dd><font size=-1><em>Moves to the previous row in the result set.</em> <a href="#a11">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classodbc_1_1_result_set.html#a12">first</a> ()<dl class="el"><dd><font size=-1><em>Moves to the first row in the result set.</em> <a href="#a12">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classodbc_1_1_result_set.html#a13">last</a> ()<dl class="el"><dd><font size=-1><em>Moves to the last row in the result set.</em> <a href="#a13">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a14">moveToInsertRow</a> ()<dl class="el"><dd><font size=-1><em>Moves the cursor to the 'insert row' of this result set.</em> <a href="#a14">More...</a><em><br><br></em></font></dl><li><a name="a15" doxytag="odbc::ResultSet::moveToCurrentRow"></a>void <a class="el" href="classodbc_1_1_result_set.html#a15">moveToCurrentRow</a> ()<dl class="el"><dd><font size=-1><em>Moves the cursor back to where it was before it was moved to the insert row.<br><br></em></font></dl><li><a name="a16" doxytag="odbc::ResultSet::refreshRow"></a>void <a class="el" href="classodbc_1_1_result_set.html#a16">refreshRow</a> ()<dl class="el"><dd><font size=-1><em>Refreshes the current row.<br><br></em></font></dl><li><a name="a17" doxytag="odbc::ResultSet::deleteRow"></a>void <a class="el" href="classodbc_1_1_result_set.html#a17">deleteRow</a> ()<dl class="el"><dd><font size=-1><em>Deletes the current row.<br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a18">insertRow</a> ()<dl class="el"><dd><font size=-1><em>Inserts the current row.</em> <a href="#a18">More...</a><em><br><br></em></font></dl><li><a name="a19" doxytag="odbc::ResultSet::updateRow"></a>void <a class="el" href="classodbc_1_1_result_set.html#a19">updateRow</a> ()<dl class="el"><dd><font size=-1><em>Updates the current row.<br><br></em></font></dl><li><a name="a20" doxytag="odbc::ResultSet::cancelRowUpdates"></a>void <a class="el" href="classodbc_1_1_result_set.html#a20">cancelRowUpdates</a> ()<dl class="el"><dd><font size=-1><em>Cancels any updates done to the current row.<br><br></em></font></dl><li><a class="el" href="classodbc_1_1_result_set_meta_data.html">ResultSetMetaData</a> * <a class="el" href="classodbc_1_1_result_set.html#a21">getMetaData</a> ()<dl class="el"><dd><font size=-1><em>Returns meta data about this result set.</em> <a href="#a21">More...</a><em><br><br></em></font></dl><li><a name="a22" doxytag="odbc::ResultSet::findColumn"></a>int <a class="el" href="classodbc_1_1_result_set.html#a22">findColumn</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Find a column index by the column's name.<br><br></em></font></dl><li><a name="a23" doxytag="odbc::ResultSet::rowDeleted"></a>bool <a class="el" href="classodbc_1_1_result_set.html#a23">rowDeleted</a> ()<dl class="el"><dd><font size=-1><em>Checks if the current row is deleted.<br><br></em></font></dl><li><a name="a24" doxytag="odbc::ResultSet::rowInserted"></a>bool <a class="el" href="classodbc_1_1_result_set.html#a24">rowInserted</a> ()<dl class="el"><dd><font size=-1><em>Checks if the current row was inserted.<br><br></em></font></dl><li><a name="a25" doxytag="odbc::ResultSet::rowUpdated"></a>bool <a class="el" href="classodbc_1_1_result_set.html#a25">rowUpdated</a> ()<dl class="el"><dd><font size=-1><em>Checks if the current row was updated.<br><br></em></font></dl><li><a name="a26" doxytag="odbc::ResultSet::getType"></a>int <a class="el" href="classodbc_1_1_result_set.html#a26">getType</a> ()<dl class="el"><dd><font size=-1><em>Gets the type of this result set.<br><br></em></font></dl><li><a name="a27" doxytag="odbc::ResultSet::getConcurrency"></a>int <a class="el" href="classodbc_1_1_result_set.html#a27">getConcurrency</a> ()<dl class="el"><dd><font size=-1><em>Gets the concurrency of this result set.<br><br></em></font></dl><li><a name="a28" doxytag="odbc::ResultSet::getFetchSize"></a>int <a class="el" href="classodbc_1_1_result_set.html#a28">getFetchSize</a> ()<dl class="el"><dd><font size=-1><em>Gets this result set's current fetch size.<br><br></em></font></dl><li><a name="a29" doxytag="odbc::ResultSet::setFetchSize"></a>void <a class="el" href="classodbc_1_1_result_set.html#a29">setFetchSize</a> (int fetchSize)<dl class="el"><dd><font size=-1><em>Sets this result set's fetch size (doesn't apply immediately).<br><br></em></font></dl><li><a name="a30" doxytag="odbc::ResultSet::getCursorName"></a>std::string <a class="el" href="classodbc_1_1_result_set.html#a30">getCursorName</a> ()<dl class="el"><dd><font size=-1><em>Gets the cursor name associated with this result set.<br><br></em></font></dl><li><a name="a31" doxytag="odbc::ResultSet::getStatement"></a><a class="el" href="classodbc_1_1_statement.html">Statement</a> * <a class="el" href="classodbc_1_1_result_set.html#a31">getStatement</a> ()<dl class="el"><dd><font size=-1><em>Gets the <a class="el" href="classodbc_1_1_statement.html">Statement</a> that created this result set.<br><br></em></font></dl><li>double <a class="el" href="classodbc_1_1_result_set.html#a32">getDouble</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a double.</em> <a href="#a32">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classodbc_1_1_result_set.html#a33">getBoolean</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a bool.</em> <a href="#a33">More...</a><em><br><br></em></font></dl><li>signed char <a class="el" href="classodbc_1_1_result_set.html#a34">getByte</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a signed char.</em> <a href="#a34">More...</a><em><br><br></em></font></dl><li><a class="el" href="classodbc_1_1_bytes.html">Bytes</a> <a class="el" href="classodbc_1_1_result_set.html#a35">getBytes</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a chunk of bytes.</em> <a href="#a35">More...</a><em><br><br></em></font></dl><li><a class="el" href="classodbc_1_1_date.html">Date</a> <a class="el" href="classodbc_1_1_result_set.html#a36">getDate</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a <a class="el" href="classodbc_1_1_date.html">Date</a>.</em> <a href="#a36">More...</a><em><br><br></em></font></dl><li>float <a class="el" href="classodbc_1_1_result_set.html#a37">getFloat</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a float.</em> <a href="#a37">More...</a><em><br><br></em></font></dl><li>int <a class="el" href="classodbc_1_1_result_set.html#a38">getInt</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as an int.</em> <a href="#a38">More...</a><em><br><br></em></font></dl><li>Long <a class="el" href="classodbc_1_1_result_set.html#a39">getLong</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a Long.</em> <a href="#a39">More...</a><em><br><br></em></font></dl><li>short <a class="el" href="classodbc_1_1_result_set.html#a40">getShort</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a short.</em> <a href="#a40">More...</a><em><br><br></em></font></dl><li>std::string <a class="el" href="classodbc_1_1_result_set.html#a41">getString</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a string.</em> <a href="#a41">More...</a><em><br><br></em></font></dl><li><a class="el" href="classodbc_1_1_time.html">Time</a> <a class="el" href="classodbc_1_1_result_set.html#a42">getTime</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a <a class="el" href="classodbc_1_1_time.html">Time</a>.</em> <a href="#a42">More...</a><em><br><br></em></font></dl><li><a class="el" href="classodbc_1_1_timestamp.html">Timestamp</a> <a class="el" href="classodbc_1_1_result_set.html#a43">getTimestamp</a> (int idx)<dl class="el"><dd><font size=-1><em>Gets a column's value as a <a class="el" href="classodbc_1_1_timestamp.html">Timestamp</a>.</em> <a href="#a43">More...</a><em><br><br></em></font></dl><li>double <a class="el" href="classodbc_1_1_result_set.html#a44">getDouble</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a double.</em> <a href="#a44">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classodbc_1_1_result_set.html#a45">getBoolean</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a bool.</em> <a href="#a45">More...</a><em><br><br></em></font></dl><li>signed char <a class="el" href="classodbc_1_1_result_set.html#a46">getByte</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a signed char.</em> <a href="#a46">More...</a><em><br><br></em></font></dl><li><a class="el" href="classodbc_1_1_bytes.html">Bytes</a> <a class="el" href="classodbc_1_1_result_set.html#a47">getBytes</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a chunk of bytes.</em> <a href="#a47">More...</a><em><br><br></em></font></dl><li><a class="el" href="classodbc_1_1_date.html">Date</a> <a class="el" href="classodbc_1_1_result_set.html#a48">getDate</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a <a class="el" href="classodbc_1_1_date.html">Date</a>.</em> <a href="#a48">More...</a><em><br><br></em></font></dl><li>float <a class="el" href="classodbc_1_1_result_set.html#a49">getFloat</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a float.</em> <a href="#a49">More...</a><em><br><br></em></font></dl><li>int <a class="el" href="classodbc_1_1_result_set.html#a50">getInt</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as an int.</em> <a href="#a50">More...</a><em><br><br></em></font></dl><li>Long <a class="el" href="classodbc_1_1_result_set.html#a51">getLong</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a Long.</em> <a href="#a51">More...</a><em><br><br></em></font></dl><li>short <a class="el" href="classodbc_1_1_result_set.html#a52">getShort</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a short.</em> <a href="#a52">More...</a><em><br><br></em></font></dl><li>std::string <a class="el" href="classodbc_1_1_result_set.html#a53">getString</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a string.</em> <a href="#a53">More...</a><em><br><br></em></font></dl><li><a class="el" href="classodbc_1_1_time.html">Time</a> <a class="el" href="classodbc_1_1_result_set.html#a54">getTime</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a <a class="el" href="classodbc_1_1_time.html">Time</a>.</em> <a href="#a54">More...</a><em><br><br></em></font></dl><li><a class="el" href="classodbc_1_1_timestamp.html">Timestamp</a> <a class="el" href="classodbc_1_1_result_set.html#a55">getTimestamp</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Gets a column's value as a <a class="el" href="classodbc_1_1_timestamp.html">Timestamp</a>.</em> <a href="#a55">More...</a><em><br><br></em></font></dl><li>std::istream * <a class="el" href="classodbc_1_1_result_set.html#a56">getAsciiStream</a> (int idx)<dl class="el"><dd><font size=-1><em>Fetches a column's value as a stream.</em> <a href="#a56">More...</a><em><br><br></em></font></dl><li>std::istream * <a class="el" href="classodbc_1_1_result_set.html#a57">getAsciiStream</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Fetches a column's value as a stream.</em> <a href="#a57">More...</a><em><br><br></em></font></dl><li>std::istream * <a class="el" href="classodbc_1_1_result_set.html#a58">getBinaryStream</a> (int idx)<dl class="el"><dd><font size=-1><em>Fetches a column's value as a stream.</em> <a href="#a58">More...</a><em><br><br></em></font></dl><li>std::istream * <a class="el" href="classodbc_1_1_result_set.html#a59">getBinaryStream</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Fetches a column's value as a stream.</em> <a href="#a59">More...</a><em><br><br></em></font></dl><li>bool <a class="el" href="classodbc_1_1_result_set.html#a60">wasNull</a> ()<dl class="el"><dd><font size=-1><em>Checks if the last fetched column value was NULL.</em> <a href="#a60">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a61">updateDouble</a> (int idx, double val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a double.</em> <a href="#a61">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a62">updateBoolean</a> (int idx, bool val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a bool.</em> <a href="#a62">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a63">updateByte</a> (int idx, signed char val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a signed char.</em> <a href="#a63">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a64">updateBytes</a> (int idx, const <a class="el" href="classodbc_1_1_bytes.html">Bytes</a> &val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a chunk of bytes.</em> <a href="#a64">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a65">updateDate</a> (int idx, const <a class="el" href="classodbc_1_1_date.html">Date</a> &val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a <a class="el" href="classodbc_1_1_date.html">Date</a>.</em> <a href="#a65">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a66">updateFloat</a> (int idx, float val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a float.</em> <a href="#a66">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a67">updateInt</a> (int idx, int val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to an int.</em> <a href="#a67">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a68">updateLong</a> (int idx, Long val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a Long.</em> <a href="#a68">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a69">updateShort</a> (int idx, short val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a short.</em> <a href="#a69">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a70">updateString</a> (int idx, const std::string &val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a string.</em> <a href="#a70">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a71">updateTime</a> (int idx, const <a class="el" href="classodbc_1_1_time.html">Time</a> &val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a <a class="el" href="classodbc_1_1_time.html">Time</a>.</em> <a href="#a71">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a72">updateTimestamp</a> (int idx, const <a class="el" href="classodbc_1_1_timestamp.html">Timestamp</a> &val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a <a class="el" href="classodbc_1_1_timestamp.html">Timestamp</a>.</em> <a href="#a72">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a73">updateNull</a> (int idx)<dl class="el"><dd><font size=-1><em>Sets the value of a column to NULL.</em> <a href="#a73">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a74">updateDouble</a> (const std::string &colName, double val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a double.</em> <a href="#a74">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a75">updateBoolean</a> (const std::string &colName, bool val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a bool.</em> <a href="#a75">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a76">updateByte</a> (const std::string &colName, signed char val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a signed char.</em> <a href="#a76">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a77">updateBytes</a> (const std::string &colName, const <a class="el" href="classodbc_1_1_bytes.html">Bytes</a> &val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a chunk of bytes.</em> <a href="#a77">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a78">updateDate</a> (const std::string &colName, const <a class="el" href="classodbc_1_1_date.html">Date</a> &val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a <a class="el" href="classodbc_1_1_date.html">Date</a>.</em> <a href="#a78">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a79">updateFloat</a> (const std::string &colName, float val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a float.</em> <a href="#a79">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a80">updateInt</a> (const std::string &colName, int val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to an int.</em> <a href="#a80">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a81">updateLong</a> (const std::string &colName, Long val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a Long.</em> <a href="#a81">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a82">updateShort</a> (const std::string &colName, short val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a short.</em> <a href="#a82">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a83">updateString</a> (const std::string &colName, const std::string &val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a string.</em> <a href="#a83">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a84">updateTime</a> (const std::string &colName, const <a class="el" href="classodbc_1_1_time.html">Time</a> &val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a <a class="el" href="classodbc_1_1_time.html">Time</a>.</em> <a href="#a84">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a85">updateTimestamp</a> (const std::string &colName, const <a class="el" href="classodbc_1_1_timestamp.html">Timestamp</a> &val)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a <a class="el" href="classodbc_1_1_timestamp.html">Timestamp</a>.</em> <a href="#a85">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a86">updateAsciiStream</a> (int idx, std::istream *s, int len)<dl class="el"><dd><font size=-1><em>Sets the value of a column to a stream.</em> <a href="#a86">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a87">updateAsciiStream</a> (const std::string &colName, std::istream *s, int len)<dl class="el"><dd><font size=-1><em>Sets the value of a column to the contens of a stream.</em> <a href="#a87">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a88">updateBinaryStream</a> (int idx, std::istream *s, int len)<dl class="el"><dd><font size=-1><em>Sets the value of a column to the contens of a stream.</em> <a href="#a88">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a89">updateBinaryStream</a> (const std::string &colName, std::istream *s, int len)<dl class="el"><dd><font size=-1><em>Sets the value of a column to the contens of a stream.</em> <a href="#a89">More...</a><em><br><br></em></font></dl><li>void <a class="el" href="classodbc_1_1_result_set.html#a90">updateNull</a> (const std::string &colName)<dl class="el"><dd><font size=-1><em>Sets the value of a column to NULL.</em> <a href="#a90">More...</a><em><br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>A result set.<p><hr><h2>Member Enumeration Documentation</h2><a name="s5" doxytag="odbc::ResultSet::@12"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> anonymous enum </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><a class="el" href="classodbc_1_1_result_set.html">ResultSet</a> concurrency constants.<p><dl compact><dt><b>Enumeration values:</b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="s5s0" doxytag="CONCUR_READ_ONLY"></a><em>CONCUR_READ_ONLY</em></em> </td><td>The <a class="el" href="classodbc_1_1_result_set.html">ResultSet</a> is read only.</td></tr><tr><td valign=top><em><a name="s5s1" doxytag="CONCUR_UPDATABLE"></a><em>CONCUR_UPDATABLE</em></em> </td><td>The <a class="el" href="classodbc_1_1_result_set.html">ResultSet</a> is updatable.</td></tr></table></dl> </td> </tr></table><a name="s6" doxytag="odbc::ResultSet::@13"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> anonymous enum </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><a class="el" href="classodbc_1_1_result_set.html">ResultSet</a> type constants.<p><dl compact><dt><b>Enumeration values:</b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="s6s2" doxytag="TYPE_FORWARD_ONLY"></a><em>TYPE_FORWARD_ONLY</em></em> </td><td>The result set only goes forward.</td></tr><tr><td valign=top><em><a name="s6s3" doxytag="TYPE_SCROLL_INSENSITIVE"></a><em>TYPE_SCROLL_INSENSITIVE</em></em> </td><td>The result set is scrollable, but the data in it is not affected by changes in the database.</td></tr><tr><td valign=top><em><a name="s6s4" doxytag="TYPE_SCROLL_SENSITIVE"></a><em>TYPE_SCROLL_SENSITIVE</em></em> </td><td>The result set is scrollable and sensitive to database changes.</td></tr></table></dl> </td> </tr></table><hr><h2>Member Function Documentation</h2><a name="a1" doxytag="odbc::ResultSet::absolute"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool odbc::ResultSet::absolute </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>row</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Moves the cursor to a specific row in this result set.<p>If row is negative, the actual row number is calculated from the end of the result set. Calling <code>absolute(0)</code> is equivalent to calling <code><a class="el" href="classodbc_1_1_result_set.html#a4">beforeFirst</a>()</code> <dl compact><dt><b>Returns: </b><dd>true if the cursor is in the result set </dl> </td> </tr></table><a name="a12" doxytag="odbc::ResultSet::first"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool odbc::ResultSet::first </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Moves to the first row in the result set.<p><dl compact><dt><b>Returns: </b><dd>true if the cursor is in the result set </dl> </td> </tr></table><a name="a57" doxytag="odbc::ResultSet::getAsciiStream"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> std::istream* odbc::ResultSet::getAsciiStream </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname1" valign="top" nowrap> <em>colName</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -