| 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 6 | <title>Chapter 10. Db_base_iterator</title> |
| 7 | <link rel="stylesheet" href="apiReference.css" type="text/css" /> |
| 8 | <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> |
| 9 | <link rel="start" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" /> |
| 10 | <link rel="up" href="index.html" title="Berkeley DB C++ Standard Template Library API Reference" /> |
| 11 | <link rel="prev" href="dbstl_iterators.html" title="Chapter 9. Dbstl Iterator Classes" /> |
| 12 | <link rel="next" href="stldb_base_iteratorclose_cursor.html" title="close_cursor" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">Chapter 10. |
| 22 | Db_base_iterator </th> |
| 23 | </tr> |
| 24 | <tr> |
| 25 | <td width="20%" align="left"><a accesskey="p" href="dbstl_iterators.html">Prev</a> </td> |
| 26 | <th width="60%" align="center"> </th> |
| 27 | <td width="20%" align="right"> <a accesskey="n" href="stldb_base_iteratorclose_cursor.html">Next</a></td> |
| 28 | </tr> |
| 29 | </table> |
| 30 | <hr /> |
| 31 | </div> |
| 32 | <div class="chapter" lang="en" xml:lang="en"> |
| 33 | <div class="titlepage"> |
| 34 | <div> |
| 35 | <div> |
| 36 | <h2 class="title"><a id="db_base_iterator"></a>Chapter 10. |
| 37 | Db_base_iterator </h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <h4><a id="idp50652168"></a> Public Members </h4> |
| 42 | <div class="informaltable"> |
| 43 | <table border="1" width="80%"> |
| 44 | <colgroup> |
| 45 | <col /> |
| 46 | <col /> |
| 47 | </colgroup> |
| 48 | <thead> |
| 49 | <tr> |
| 50 | <th>Member</th> |
| 51 | <th>Description</th> |
| 52 | </tr> |
| 53 | </thead> |
| 54 | <tbody> |
| 55 | <tr> |
| 56 | <td> |
| 57 | <a class="xref" href="db_base_iterator.html#stldb_base_iteratorrefresh" title="refresh">refresh</a> |
| 58 | </td> |
| 59 | <td> |
| 60 | <p>Read data from underlying database via its cursor, and update its cached value. </p> </td> |
| 61 | </tr> |
| 62 | <tr> |
| 63 | <td> |
| 64 | <a class="xref" href="stldb_base_iteratorclose_cursor.html" title="close_cursor">close_cursor</a> |
| 65 | </td> |
| 66 | <td> |
| 67 | <p>Close its cursor. </p> </td> |
| 68 | </tr> |
| 69 | <tr> |
| 70 | <td> |
| 71 | <a class="xref" href="stldb_base_iteratorset_bulk_buffer.html" title="set_bulk_buffer"> |
| 72 | set_bulk_buffer |
| 73 | </a> |
| 74 | </td> |
| 75 | <td> |
| 76 | <p>Call this function to modify bulk buffer size. </p> </td> |
| 77 | </tr> |
| 78 | <tr> |
| 79 | <td> |
| 80 | <a class="xref" href="stldb_base_iteratorget_bulk_bufsize.html" title="get_bulk_bufsize">get_bulk_bufsize</a> |
| 81 | </td> |
| 82 | <td> |
| 83 | <p>Return current bulk buffer size. </p> </td> |
| 84 | </tr> |
| 85 | <tr> |
| 86 | <td> |
| 87 | <a class="xref" href="stldb_base_iteratordb_base_iterator.html" title="db_base_iterator"> |
| 88 | db_base_iterator |
| 89 | </a> |
| 90 | </td> |
| 91 | <td> |
| 92 | <p>Default constructor. </p> </td> |
| 93 | </tr> |
| 94 | <tr> |
| 95 | <td> |
| 96 | <a class="xref" href="stldb_base_iteratoroperator_assign.html" title="operator=">operator=</a> |
| 97 | </td> |
| 98 | <td> |
| 99 | <p>Iterator assignment operator. </p> </td> |
| 100 | </tr> |
| 101 | <tr> |
| 102 | <td> |
| 103 | <a class="xref" href="stldb_base_iteratordstr_db_base_iterator.html" title="~db_base_iterator">~db_base_iterator</a> |
| 104 | </td> |
| 105 | <td> |
| 106 | <p>Destructor. </p> </td> |
| 107 | </tr> |
| 108 | <tr> |
| 109 | <td> |
| 110 | <a class="xref" href="stldb_base_iteratorget_bulk_retrieval.html" title="get_bulk_retrieval">get_bulk_retrieval</a> |
| 111 | </td> |
| 112 | <td> |
| 113 | <p>Get bulk buffer size. </p> </td> |
| 114 | </tr> |
| 115 | <tr> |
| 116 | <td> |
| 117 | <a class="xref" href="stldb_base_iteratoris_rmw.html" title="is_rmw">is_rmw</a> |
| 118 | </td> |
| 119 | <td> |
| 120 | <p>Get DB_RMW setting. </p> </td> |
| 121 | </tr> |
| 122 | <tr> |
| 123 | <td> |
| 124 | <a class="xref" href="stldb_base_iteratoris_directdb_get.html" title="is_directdb_get">is_directdb_get</a> |
| 125 | </td> |
| 126 | <td> |
| 127 | <p>Get direct database get setting. </p> </td> |
| 128 | </tr> |
| 129 | </tbody> |
| 130 | </table> |
| 131 | </div> |
| 132 | <h4><a id="idp50801448"></a> |
| 133 | Group</h4> |
| 134 | <p> |
| 135 | <a class="xref" href="dbstl_iterators.html" title="Chapter 9. Dbstl Iterator Classes"> |
| 136 | Dbstl Iterator Classes </a> |
| 137 | </p> |
| 138 | <p> |
| 139 | </p> |
| 140 | <div class="sect1" lang="en" xml:lang="en"> |
| 141 | <div class="titlepage"> |
| 142 | <div> |
| 143 | <div> |
| 144 | <h2 class="title" style="clear: both"><a id="stldb_base_iteratorrefresh"></a>refresh</h2> |
| 145 | </div> |
| 146 | </div> |
| 147 | </div> |
| 148 | <div class="sect2" lang="en" xml:lang="en"> |
| 149 | <div class="titlepage"> |
| 150 | <div> |
| 151 | <div> |
| 152 | <h3 class="title"><a id="stldb_base_iteratorrefresh_details"></a>Function Details</h3> |
| 153 | </div> |
| 154 | </div> |
| 155 | </div> |
| 156 | <pre class="programlisting"> |
| 157 | int refresh(bool from_db=true) |
| 158 | </pre> |
| 159 | <p>Read data from underlying database via its cursor, and update its cached value. </p> |
| 160 | <div class="sect3" lang="en" xml:lang="en"> |
| 161 | <div class="titlepage"> |
| 162 | <div> |
| 163 | <div> |
| 164 | <h4 class="title"><a id="idp50816016"></a>Parameters</h4> |
| 165 | </div> |
| 166 | </div> |
| 167 | </div> |
| 168 | <div class="sect4" lang="en" xml:lang="en"> |
| 169 | <div class="titlepage"> |
| 170 | <div> |
| 171 | <div> |
| 172 | <h5 class="title"><a id="idp50835072"></a>from_db </h5> |
| 173 | </div> |
| 174 | </div> |
| 175 | </div> |
| 176 | <p>Whether retrieve data from database rather than using the cached data in this iterator. </p> |
| 177 | </div> |
| 178 | </div> |
| 179 | <div class="sect3" lang="en" xml:lang="en"> |
| 180 | <div class="titlepage"> |
| 181 | <div> |
| 182 | <div> |
| 183 | <h4 class="title"><a id="idp50822880"></a>Return Value</h4> |
| 184 | </div> |
| 185 | </div> |
| 186 | </div> |
| 187 | <p>0 if succeeded. Otherwise an <a class="link" href="DbstlException.html" title="Chapter 30. DbstlException">DbstlException</a> |
| 188 | exception will be thrown. </p> |
| 189 | </div> |
| 190 | </div> |
| 191 | <div class="sect2" lang="en" xml:lang="en"> |
| 192 | <div class="titlepage"> |
| 193 | <div> |
| 194 | <div> |
| 195 | <h3 class="title"><a id="idp50823616"></a>Class</h3> |
| 196 | </div> |
| 197 | </div> |
| 198 | </div> |
| 199 | <p> |
| 200 | <a class="link" href="db_base_iterator.html" title="Chapter 10. Db_base_iterator">db_base_iterator</a> |
| 201 | </p> |
| 202 | </div> |
| 203 | </div> |
| 204 | </div> |
| 205 | <div class="navfooter"> |
| 206 | <hr /> |
| 207 | <table width="100%" summary="Navigation footer"> |
| 208 | <tr> |
| 209 | <td width="40%" align="left"><a accesskey="p" href="dbstl_iterators.html">Prev</a> </td> |
| 210 | <td width="20%" align="center"> </td> |
| 211 | <td width="40%" align="right"> <a accesskey="n" href="stldb_base_iteratorclose_cursor.html">Next</a></td> |
| 212 | </tr> |
| 213 | <tr> |
| 214 | <td width="40%" align="left" valign="top">Chapter 9. |
| 215 | Dbstl Iterator Classes </td> |
| 216 | <td width="20%" align="center"> |
| 217 | <a accesskey="h" href="index.html">Home</a> |
| 218 | </td> |
| 219 | <td width="40%" align="right" valign="top"> close_cursor</td> |
| 220 | </tr> |
| 221 | </table> |
| 222 | </div> |
| 223 | </body> |
| 224 | </html> |