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

📄 classdbanycursor.html

📁 FastDb是高效的内存数据库系统
💻 HTML
📖 第 1 页 / 共 4 页
字号:
        <tr>          <td></td>          <td></td>          <td class="md" nowrap>void const *&nbsp;</td>          <td class="mdname" nowrap> <em>minValue</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>void const *&nbsp;</td>          <td class="mdname" nowrap> <em>maxValue</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Select all records from the table with specfied range of the key values <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>key</em>&nbsp;</td><td>name of the key field </td></tr>    <tr><td valign=top><em>minValue</em>&nbsp;</td><td>inclusive low bound for key values, if <code>NULL</code> then there is no low bound </td></tr>    <tr><td valign=top><em>maxValue</em>&nbsp;</td><td>inclusive high bound for key values, if <code>NULL</code> then there is no high bound </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>number of selected records </dd></dl>    </td>  </tr></table><a class="anchor" name="dbCursor_3_01Sequencer_01_4a34" doxytag="dbAnyCursor::setPrefetchMode" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void dbAnyCursor::setPrefetchMode </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">bool&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>mode</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set prefetch mode. By default, current record is fetch as soon as it is becomes current. But sometimesyou need only OIDs of selected records. In this case setting prefetchMode to false can help. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>mode</em>&nbsp;</td><td>if <code>false</code> then current record is not fetched. You should explicitly call <code>fetch</code> method if you want to fetch it. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="dbCursor_3_01Sequencer_01_4a44" doxytag="dbAnyCursor::setRecord" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void dbAnyCursor::setRecord </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>rec</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set destination for selected record rec - buffer to which fields of current record will be fetched     </td>  </tr></table><a class="anchor" name="dbCursor_3_01Sequencer_01_4a32" doxytag="dbAnyCursor::setSelectionLimit" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void dbAnyCursor::setSelectionLimit </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">size_t&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>lim</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Specify maximal number of records to be selected     </td>  </tr></table><a class="anchor" name="dbCursor_3_01Sequencer_01_4a43" doxytag="dbAnyCursor::setTable" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void dbAnyCursor::setTable </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classdbTableDescriptor.html">dbTableDescriptor</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aTable</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set table for the cursor <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>aTable</em>&nbsp;</td><td>table which records will be iterated </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="dbCursor_3_01Sequencer_01_4a40" doxytag="dbAnyCursor::skip" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool dbAnyCursor::skip </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>n</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Skip specified number of records <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>n</em>&nbsp;</td><td>if positive then skip <code>n</code> records forward, if negative then skip <code>-n</code> records backward </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if specified number of records was successfully skipped, <code>false</code> if there is no next (<code>n &gt; 0</code>) or previous (<code>n &lt; 0</code>) record in the selction. </dd></dl>    </td>  </tr></table><a class="anchor" name="dbCursor_3_01Sequencer_01_4a20" doxytag="dbAnyCursor::toArrayOfOid" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> oid_t* dbAnyCursor::toArrayOfOid </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">oid_t *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>arr</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Extract OIDs of selected recrods in array <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>arr</em>&nbsp;</td><td>if <code>arr</code> is not null, then this array is used as destination (it should be at least selection.nRows long)<br> If <code>arr</code> is null, then new array is created by new oid_t[] and returned by this method </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>if <code>arr</code> is not null, then <code>arr</code>, otherwise array created by this method </dd></dl>    </td>  </tr></table><a class="anchor" name="dbCursor_3_01Sequencer_01_4a39" doxytag="dbAnyCursor::unfreeze" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void dbAnyCursor::unfreeze </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Unfreeze cursor. This method starts new transaction and restore state of the cursor     </td>  </tr></table><a class="anchor" name="dbCursor_3_01Sequencer_01_4a33" doxytag="dbAnyCursor::unsetSelectionLimit" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void dbAnyCursor::unsetSelectionLimit </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Remove selection limit     </td>  </tr></table><a class="anchor" name="dbCursor_3_01Sequencer_01_4a29" doxytag="dbAnyCursor::update" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void dbAnyCursor::update </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Update current record. You should changed value of current record before and then call update method to save changes to the database     </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="cursor_8h-source.html">cursor.h</a></ul><hr size="1"><address style="align: right;"><small>Generated on Thu Feb 12 13:04:48 2004 for FastDB by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.5 </small></address></body></html>

⌨️ 快捷键说明

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