Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > 45f6274740296aca6d03a98f5e28e8ca > files > 173

libgdamm5.0-devel-4.99.6-2.mga3.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libgdamm: Gnome::Gda::DataSelect Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">libgdamm
   &#160;<span id="projectnumber">4.99.6</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1-20110925 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceGnome.html">Gnome</a> </li>
      <li class="navelem"><a class="el" href="namespaceGnome_1_1Gda.html">Gda</a> </li>
      <li class="navelem"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html">DataSelect</a> </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#related">Related Functions</a> </div>
  <div class="headertitle">
<div class="title">Gnome::Gda::DataSelect Class Reference<div class="ingroups"><a class="el" href="group__DataModels.html">Data Models</a></div></div> </div>
</div>
<div class="contents">
<!-- doxytag: class="Gnome::Gda::DataSelect" --><!-- doxytag: inherits="Glib::Object,Gnome::Gda::DataModel" -->
<p>Data models returned by the execution of a SELECT statement.  <a href="classGnome_1_1Gda_1_1DataSelect.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for Gnome::Gda::DataSelect:</div>
<div class="dyncontent">
<div class="center"><img src="classGnome_1_1Gda_1_1DataSelect__inherit__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1DataSelect_inherit__map" alt="Inheritance graph"/></div>
<map name="Gnome_1_1Gda_1_1DataSelect_inherit__map" id="Gnome_1_1Gda_1_1DataSelect_inherit__map">
<area shape="rect" id="node2"  /></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for Gnome::Gda::DataSelect:</div>
<div class="dyncontent">
<div class="center"><img src="classGnome_1_1Gda_1_1DataSelect__coll__graph.png" border="0" usemap="#Gnome_1_1Gda_1_1DataSelect_coll__map" alt="Collaboration graph"/></div>
<map name="Gnome_1_1Gda_1_1DataSelect_coll__map" id="Gnome_1_1Gda_1_1DataSelect_coll__map">
<area shape="rect" id="node2"  /></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGnome_1_1Gda_1_1DataSelect-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#a5cb907ed60fa04c1e7545c97d4d3bfea">~DataSelect</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdaDataSelect*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#a8d70723ce447f90fcace10547d5a6fb5">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a8d70723ce447f90fcace10547d5a6fb5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GdaDataSelect*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#a396e274cd7a052d0917b3b9f1f32edab">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a396e274cd7a052d0917b3b9f1f32edab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdaDataSelect*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#ab691e94cdcac3012ac53084a72c5e2c6">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#ab691e94cdcac3012ac53084a72c5e2c6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#aa21e27f04a4fa50237133a2d20166e74">set_row_selection_condition_sql</a> (const <a class="elRef"  >Glib::ustring</a>&amp; sql_where)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Specifies the SQL condition corresponding to the WHERE part of a SELECT statement which would return only 1 row (the expression of the primary key). <a href="#aa21e27f04a4fa50237133a2d20166e74"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#ad671c0a0830330a1e0f755610d561e87">compute_row_selection_condition</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Offers the same features as set_row_selection_condition() but the expression is computed from the meta data associated to the connection being used when <em>model</em> was created. <a href="#ad671c0a0830330a1e0f755610d561e87"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#aff15ccf98acafb4667aec239d883b085">set_modification_statement</a> (const <a class="elRef"  >Statement</a> &gt;&amp; mod_stmt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Informs <em>model</em> that it should allow modifications to the data in some columns and some rows using <em>mod_stmt</em> to propagate those modifications into the database. <a href="#aff15ccf98acafb4667aec239d883b085"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#a54d07a9eddc071c9e0504bfc81d468b3">set_modification_statement_sql</a> (const <a class="elRef"  >Glib::ustring</a>&amp; sql)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Offers the same feature as <a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#aff15ccf98acafb4667aec239d883b085" title="Informs model that it should allow modifications to the data in some columns and some rows using mod_...">set_modification_statement()</a> but using an SQL statement. <a href="#a54d07a9eddc071c9e0504bfc81d468b3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#acaea1daa30a57c6f21d299bdf634228c">compute_modification_statements</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Makes <em>model</em> try to compute INSERT, UPDATE and DELETE statements to be used when modifying <em>model's</em> contents. <a href="#acaea1daa30a57c6f21d299bdf634228c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#ac246ecf72b15bc9ab930cf18cee9c59c">compute_columns_attributes</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes correct attributes for each of <em>model's</em> columns, which includes the "NOT &lt;tt&gt;0&lt;/tt&gt;" attribute, the default value, the precision and scale for numeric values. <a href="#ac246ecf72b15bc9ab930cf18cee9c59c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  >get_connection</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a pointer to the <a class="el" href="classGnome_1_1Gda_1_1Connection.html" title="Manages a connection to a data source.">Gda::Connection</a> object which was used when <em>model</em> was created (and which may be used internally by <em>model</em>). <a href="#af2b82230273430f1b2914aab926a5cd4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#a0ed9108b77032dd05dffcc1a5a37fc73">rerun</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Requests that <em>model</em> be re-run to have an updated result. <a href="#a0ed9108b77032dd05dffcc1a5a37fc73"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  >property_auto_reset</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Automatically re-run the SELECT statement if any parameter has changed since it was first executed. <a href="#a22f4ba3dc584cda540df019609c7b2a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#a8af2d3917c90a341f0e0881c966caa87">property_auto_reset</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Automatically re-run the SELECT statement if any parameter has changed since it was first executed. <a href="#a8af2d3917c90a341f0e0881c966caa87"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  >property_store_all_rows</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Tells if model has analyzed all the rows. <a href="#a1bdf95aaa2d5b33ae1aa0d63a38b12ec"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#aaf3cead9fecbd443955260ea73930b4b">property_store_all_rows</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Tells if model has analyzed all the rows. <a href="#aaf3cead9fecbd443955260ea73930b4b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="elRef"  >property_connection</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classGnome_1_1Gda_1_1Connection.html" title="Manages a connection to a data source.">Connection</a> from which this data model is created. <a href="#a9354b80272577b0ed967815c88e8797d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="elRef"  >property_delete_stmt</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">DELETE <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to remove data. <a href="#a7fb77f3f6c6ce40495e44cc228997560"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="elRef"  >property_delete_stmt</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">DELETE <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to remove data. <a href="#a6de4d17c42404c599048a3c9d4a3000b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="elRef"  >property_insert_stmt</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">INSERT <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to add data. <a href="#a2f01e86f1d8144b605607bb651678efb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="elRef"  >property_insert_stmt</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">INSERT <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to add data. <a href="#aeea03548dc744929e66200a1c7198f89"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="elRef"  >property_prepared_stmt</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Associated prepared statement (for internal usage). <a href="#a4baa856c879278ba17a52d0b92671a6e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="elRef"  >property_prepared_stmt</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Associated prepared statement (for internal usage). <a href="#aa2592842afcdbcc94f29bdda207bef0e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="elRef"  >property_update_stmt</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">UPDATE <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to update data. <a href="#a71190cb5fbcc944975d88048ed23d764"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="elRef"  >property_update_stmt</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">UPDATE <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to update data. <a href="#a92af09fc8a1f73324f4c0f5341461437"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="elRef"  >property_exec_params</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">GdaSet used when the SELECT statement was executed. <a href="#abcaf9df0e7ac96d20aae9f98f71041e2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; guint &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#a1dccf163418f70ac8ca139e5e2408bcd">property_model_usage</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines how the data model may be used. <a href="#a1dccf163418f70ac8ca139e5e2408bcd"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p>
</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef"  />
&lt; <a class="el" href="classGnome_1_1Gda_1_1DataSelect.html">Gnome::Gda::DataSelect</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#a3b12338131eb9a1c71cc4aa1d771dae2">wrap</a> (GdaDataSelect* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef"  ></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Data models returned by the execution of a SELECT statement. </p>
<p>This data model implements the <a class="el" href="classGnome_1_1Gda_1_1DataModel.html" title="Abstract DataModel (Base class for all DataModels).">Gda::DataModel</a> interface and is the required base object when database providers implement a data model returned when a SELECT statement has been executed. As the GdaDataModel interface is implemented, consult the API to access and modify the data held in a GdaDataSelect object.</p>
<p>The default behaviour however is to disallow modifications, and this section documents how to characterize a <a class="el" href="classGnome_1_1Gda_1_1DataSelect.html" title="Data models returned by the execution of a SELECT statement.">Gda::DataSelect</a> to allow modifications. Once this is done, any modification done to the data model whill be propagated to the modified table in the database using INSERT, UPDATE or DELETE statements.</p>
<p>After any modification, it is still possible to read values from the data model (even values for rows which have been modified or inserted). The data model might then execute some SELECT statement to fetch some actualized values. Note: there is a corner case where a modification made to a row would make the row not selected at first in the data model (for example is the original SELECT statement included a clause "WHERE id &lt; 100" and the modification sets the "id" value to 110), then the row will still be in the data model even though it would not be if the SELECT statement which execution created the data model in the first place was re-run. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a5cb907ed60fa04c1e7545c97d4d3bfea"></a><!-- doxytag: member="Gnome::Gda::DataSelect::~DataSelect" ref="a5cb907ed60fa04c1e7545c97d4d3bfea" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gnome::Gda::DataSelect::~DataSelect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac246ecf72b15bc9ab930cf18cee9c59c"></a><!-- doxytag: member="Gnome::Gda::DataSelect::compute_columns_attributes" ref="ac246ecf72b15bc9ab930cf18cee9c59c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gnome::Gda::DataSelect::compute_columns_attributes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Computes correct attributes for each of <em>model's</em> columns, which includes the "NOT &lt;tt&gt;0&lt;/tt&gt;" attribute, the default value, the precision and scale for numeric values. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. </dd></dl>

</div>
</div>
<a class="anchor" id="acaea1daa30a57c6f21d299bdf634228c"></a><!-- doxytag: member="Gnome::Gda::DataSelect::compute_modification_statements" ref="acaea1daa30a57c6f21d299bdf634228c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gnome::Gda::DataSelect::compute_modification_statements </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Makes <em>model</em> try to compute INSERT, UPDATE and DELETE statements to be used when modifying <em>model's</em> contents. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>any modification statement set using <a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#aff15ccf98acafb4667aec239d883b085" title="Informs model that it should allow modifications to the data in some columns and some rows using mod_...">set_modification_statement()</a> will first be unset </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. If <code>false</code> is returned, then some modification statement may still have been computed. </dd></dl>

</div>
</div>
<a class="anchor" id="ad671c0a0830330a1e0f755610d561e87"></a><!-- doxytag: member="Gnome::Gda::DataSelect::compute_row_selection_condition" ref="ad671c0a0830330a1e0f755610d561e87" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gnome::Gda::DataSelect::compute_row_selection_condition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Offers the same features as set_row_selection_condition() but the expression is computed from the meta data associated to the connection being used when <em>model</em> was created. </p>
<p>NOTE1: make sure the meta data associated to the connection is up to date before using this method, see <a class="el" href="classGnome_1_1Gda_1_1Connection.html#a09020e66ecc8268caef2f9c9c352d9cf" title="Update the full meta store information.">Gda::Connection::update_meta_store()</a>.</p>
<p>NOTE2: if the SELECT statement from which <em>model</em> has been created uses more than one table, or if the table used does not have any primary key, then this method will fail </p>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. </dd></dl>

</div>
</div>
<a class="anchor" id="af2b82230273430f1b2914aab926a5cd4"></a><!-- doxytag: member="Gnome::Gda::DataSelect::get_connection" ref="af2b82230273430f1b2914aab926a5cd4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Connection</a>&gt; Gnome::Gda::DataSelect::get_connection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a pointer to the <a class="el" href="classGnome_1_1Gda_1_1Connection.html" title="Manages a connection to a data source.">Gda::Connection</a> object which was used when <em>model</em> was created (and which may be used internally by <em>model</em>). </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the <a class="el" href="classGnome_1_1Gda_1_1Connection.html" title="Manages a connection to a data source.">Gda::Connection</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a8d70723ce447f90fcace10547d5a6fb5"></a><!-- doxytag: member="Gnome::Gda::DataSelect::gobj" ref="a8d70723ce447f90fcace10547d5a6fb5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaDataSelect* Gnome::Gda::DataSelect::gobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="el" href="classGnome_1_1Gda_1_1DataModel.html#a63b551e8308d050dbd5ab8964b405e76">Gnome::Gda::DataModel</a>.</p>

</div>
</div>
<a class="anchor" id="a396e274cd7a052d0917b3b9f1f32edab"></a><!-- doxytag: member="Gnome::Gda::DataSelect::gobj" ref="a396e274cd7a052d0917b3b9f1f32edab" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GdaDataSelect* Gnome::Gda::DataSelect::gobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="el" href="classGnome_1_1Gda_1_1DataModel.html#af06bc95c0e33adf8a3faca1870190a7f">Gnome::Gda::DataModel</a>.</p>

</div>
</div>
<a class="anchor" id="ab691e94cdcac3012ac53084a72c5e2c6"></a><!-- doxytag: member="Gnome::Gda::DataSelect::gobj_copy" ref="ab691e94cdcac3012ac53084a72c5e2c6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdaDataSelect* Gnome::Gda::DataSelect::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>

</div>
</div>
<a class="anchor" id="a22f4ba3dc584cda540df019609c7b2a1"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_auto_reset" ref="a22f4ba3dc584cda540df019609c7b2a1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Glib::PropertyProxy</a>&lt;bool&gt; Gnome::Gda::DataSelect::property_auto_reset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Automatically re-run the SELECT statement if any parameter has changed since it was first executed. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a8af2d3917c90a341f0e0881c966caa87"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_auto_reset" ref="a8af2d3917c90a341f0e0881c966caa87" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Glib::PropertyProxy_ReadOnly</a>&lt;bool&gt; Gnome::Gda::DataSelect::property_auto_reset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Automatically re-run the SELECT statement if any parameter has changed since it was first executed. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a9354b80272577b0ed967815c88e8797d"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_connection" ref="a9354b80272577b0ed967815c88e8797d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Connection</a>&gt; &gt; Gnome::Gda::DataSelect::property_connection </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="classGnome_1_1Gda_1_1Connection.html" title="Manages a connection to a data source.">Connection</a> from which this data model is created. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a7fb77f3f6c6ce40495e44cc228997560"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_delete_stmt" ref="a7fb77f3f6c6ce40495e44cc228997560" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Statement</a>&gt; &gt; Gnome::Gda::DataSelect::property_delete_stmt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>DELETE <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to remove data. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a6de4d17c42404c599048a3c9d4a3000b"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_delete_stmt" ref="a6de4d17c42404c599048a3c9d4a3000b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Statement</a>&gt; &gt; Gnome::Gda::DataSelect::property_delete_stmt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>DELETE <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to remove data. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="abcaf9df0e7ac96d20aae9f98f71041e2"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_exec_params" ref="abcaf9df0e7ac96d20aae9f98f71041e2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Set</a>&gt; &gt; Gnome::Gda::DataSelect::property_exec_params </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>GdaSet used when the SELECT statement was executed. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a2f01e86f1d8144b605607bb651678efb"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_insert_stmt" ref="a2f01e86f1d8144b605607bb651678efb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Statement</a>&gt; &gt; Gnome::Gda::DataSelect::property_insert_stmt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>INSERT <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to add data. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="aeea03548dc744929e66200a1c7198f89"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_insert_stmt" ref="aeea03548dc744929e66200a1c7198f89" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Statement</a>&gt; &gt; Gnome::Gda::DataSelect::property_insert_stmt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>INSERT <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to add data. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a1dccf163418f70ac8ca139e5e2408bcd"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_model_usage" ref="a1dccf163418f70ac8ca139e5e2408bcd" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Glib::PropertyProxy_ReadOnly</a>&lt;guint&gt; Gnome::Gda::DataSelect::property_model_usage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines how the data model may be used. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a4baa856c879278ba17a52d0b92671a6e"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_prepared_stmt" ref="a4baa856c879278ba17a52d0b92671a6e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Statement</a>&gt; &gt; Gnome::Gda::DataSelect::property_prepared_stmt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Associated prepared statement (for internal usage). </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="aa2592842afcdbcc94f29bdda207bef0e"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_prepared_stmt" ref="aa2592842afcdbcc94f29bdda207bef0e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Statement</a>&gt; &gt; Gnome::Gda::DataSelect::property_prepared_stmt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Associated prepared statement (for internal usage). </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a1bdf95aaa2d5b33ae1aa0d63a38b12ec"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_store_all_rows" ref="a1bdf95aaa2d5b33ae1aa0d63a38b12ec" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Glib::PropertyProxy</a>&lt;bool&gt; Gnome::Gda::DataSelect::property_store_all_rows </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tells if model has analyzed all the rows. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="aaf3cead9fecbd443955260ea73930b4b"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_store_all_rows" ref="aaf3cead9fecbd443955260ea73930b4b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Glib::PropertyProxy_ReadOnly</a>&lt;bool&gt; Gnome::Gda::DataSelect::property_store_all_rows </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tells if model has analyzed all the rows. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a71190cb5fbcc944975d88048ed23d764"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_update_stmt" ref="a71190cb5fbcc944975d88048ed23d764" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Statement</a>&gt; &gt; Gnome::Gda::DataSelect::property_update_stmt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>UPDATE <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to update data. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a92af09fc8a1f73324f4c0f5341461437"></a><!-- doxytag: member="Gnome::Gda::DataSelect::property_update_stmt" ref="a92af09fc8a1f73324f4c0f5341461437" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Statement</a>&gt; &gt; Gnome::Gda::DataSelect::property_update_stmt </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>UPDATE <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Statement</a> to be executed to update data. </p>
<p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl>

</div>
</div>
<a class="anchor" id="a0ed9108b77032dd05dffcc1a5a37fc73"></a><!-- doxytag: member="Gnome::Gda::DataSelect::rerun" ref="a0ed9108b77032dd05dffcc1a5a37fc73" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gnome::Gda::DataSelect::rerun </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Requests that <em>model</em> be re-run to have an updated result. </p>
<p>If an error occurs, then <em>model</em> will not be changed.</p>
<dl class="since_4_2"><dt><b><a class="el" href="since_4_2.html#_since_4_2000004">Since libgdamm 4.2:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. </dd></dl>

</div>
</div>
<a class="anchor" id="aff15ccf98acafb4667aec239d883b085"></a><!-- doxytag: member="Gnome::Gda::DataSelect::set_modification_statement" ref="aff15ccf98acafb4667aec239d883b085" args="(const Glib::RefPtr&lt; Statement &gt; &amp;mod_stmt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gnome::Gda::DataSelect::set_modification_statement </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef"  >Statement</a> &gt;&amp;&#160;</td>
          <td class="paramname"><em>mod_stmt</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Informs <em>model</em> that it should allow modifications to the data in some columns and some rows using <em>mod_stmt</em> to propagate those modifications into the database. </p>
<p>If <em>mod_stmt</em> is: &lt;itemizedlist&gt; &lt;listitem&gt;an UPDATE statement, then all the rows in <em>model</em> will be modifyable&lt;/listitem&gt; &lt;listitem&gt;a DELETE statement, then it will be possible to delete rows in <em>model</em> &lt;/listitem&gt; &lt;listitem&gt;in INSERT statement, then it will be possible to add some rows to <em>model</em> &lt;/listitem&gt; &lt;listitem&gt;any other statement, then this method will return an error&lt;/listitem&gt; &lt;/itemizedlist&gt;</p>
<p>This method can be called several times to specify different types of modification.</p>
<p>If <em>mod_stmt</em> is an UPDATE or DELETE statement then it should have a WHERE part which identifies a unique row in <em>model</em> (please note that this property can't be checked but may result in <em>model</em> behaving in an unpredictable way).</p>
<p>NOTE1: However, if the set_row_selection_condition() or <a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#aa21e27f04a4fa50237133a2d20166e74" title="Specifies the SQL condition corresponding to the WHERE part of a SELECT statement which would return ...">set_row_selection_condition_sql()</a> have been successfully be called before, the WHERE part of <em>mod_stmt</em> <em>WILL</em> be modified to use the row selection condition specified through one of these methods (please not that it is then possible to avoid specifying a WHERE part in <em>mod_stmt</em> then).</p>
<p>NOTE2: if set_row_selection_condition() or <a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#aa21e27f04a4fa50237133a2d20166e74" title="Specifies the SQL condition corresponding to the WHERE part of a SELECT statement which would return ...">set_row_selection_condition_sql()</a> have not yet been successfully be called before, then the WHERE part of <em>mod_stmt</em> will be used as if one of these functions had been called. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mod_stmt</td><td>A <a class="el" href="classGnome_1_1Gda_1_1Statement.html" title="Single SQL statement.">Gda::Statement</a> (INSERT, UPDATE or DELETE). </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. </dd></dl>

</div>
</div>
<a class="anchor" id="a54d07a9eddc071c9e0504bfc81d468b3"></a><!-- doxytag: member="Gnome::Gda::DataSelect::set_modification_statement_sql" ref="a54d07a9eddc071c9e0504bfc81d468b3" args="(const Glib::ustring &amp;sql)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gnome::Gda::DataSelect::set_modification_statement_sql </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef"  >Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>sql</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Offers the same feature as <a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#aff15ccf98acafb4667aec239d883b085" title="Informs model that it should allow modifications to the data in some columns and some rows using mod_...">set_modification_statement()</a> but using an SQL statement. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sql</td><td>An SQL text. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. </dd></dl>

</div>
</div>
<a class="anchor" id="aa21e27f04a4fa50237133a2d20166e74"></a><!-- doxytag: member="Gnome::Gda::DataSelect::set_row_selection_condition_sql" ref="aa21e27f04a4fa50237133a2d20166e74" args="(const Glib::ustring &amp;sql_where)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gnome::Gda::DataSelect::set_row_selection_condition_sql </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef"  >Glib::ustring</a> &amp;&#160;</td>
          <td class="paramname"><em>sql_where</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Specifies the SQL condition corresponding to the WHERE part of a SELECT statement which would return only 1 row (the expression of the primary key). </p>
<p>For example for a table created as &lt;![CDATA["CREATE TABLE mytable (part1 int NOT &lt;tt&gt;0&lt;/tt&gt;, part2 string NOT &lt;tt&gt;0&lt;/tt&gt;,  name string, PRIMARY KEY (part1, part2))"]]&gt;, and if <em>pmodel</em> corresponds to the execution of the &lt;![CDATA["SELECT name, part1, part2 FROM mytable"]]&gt;, then the sensible value for <em>sql_where</em> would be &lt;![CDATA["part1 = ##-1::int AND part2 = ##-2::string"]]&gt; because the values of the 'part1' field are located in <em>pmodel's</em> column number 1 and the values of the 'part2' field are located in <em>pmodel's</em> column number 2 and the primary key is composed of (part1, part2).</p>
<p>For more information about the syntax of the parameters (named &lt;![CDATA["##-1::int"]]&gt; for example), see the GdaSqlParser documentation, and <a class="el" href="classGnome_1_1Gda_1_1DataSelect.html#aff15ccf98acafb4667aec239d883b085" title="Informs model that it should allow modifications to the data in some columns and some rows using mod_...">set_modification_statement()</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">sql_where</td><td>An SQL condition (without the WHERE keyword). </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if no error occurred. </dd></dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a3b12338131eb9a1c71cc4aa1d771dae2"></a><!-- doxytag: member="Gnome::Gda::DataSelect::wrap" ref="a3b12338131eb9a1c71cc4aa1d771dae2" args="(GdaDataSelect *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef"  >Gnome::Gda::DataSelect</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GdaDataSelect *&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>take_copy</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="elRef"  >Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td>The C instance. </td></tr>
    <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>libgdamm/dataselect.h</li>
</ul>
</div>


<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 20 2011 22:38:13 for libgdamm by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1-20110925
</small></address>

</body>
</html>