| 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>DB_MULTIPLE_NEXT</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 API Reference" /> |
| 10 | <link rel="up" href="dbt.html" title="Chapter 4. The DBT Handle" /> |
| 11 | <link rel="prev" href="DB_MULTIPLE_INIT.html" title="DB_MULTIPLE_INIT" /> |
| 12 | <link rel="next" href="DB_MULTIPLE_KEY_NEXT.html" title="DB_MULTIPLE_KEY_NEXT" /> |
| 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">DB_MULTIPLE_NEXT</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="DB_MULTIPLE_INIT.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 4. |
| 26 | The DBT Handle |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="DB_MULTIPLE_KEY_NEXT.html">Next</a></td> |
| 29 | </tr> |
| 30 | </table> |
| 31 | <hr /> |
| 32 | </div> |
| 33 | <div class="sect1" lang="en" xml:lang="en"> |
| 34 | <div class="titlepage"> |
| 35 | <div> |
| 36 | <div> |
| 37 | <h2 class="title" style="clear: both"><a id="DB_MULTIPLE_NEXT"></a>DB_MULTIPLE_NEXT</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db.h> |
| 42 | |
| 43 | DB_MULTIPLE_NEXT(void *pointer, DBT *data, void *retdata, |
| 44 | size_t retdlen); </pre> |
| 45 | <p> |
| 46 | If either of the |
| 47 | <a class="link" href="dbcget.html#dbcget_DB_MULTIPLE">DB_MULTIPLE</a> |
| 48 | or |
| 49 | <a class="link" href="dbcget.html#dbcget_DB_MULTIPLE_KEY">DB_MULTIPLE_KEY</a> |
| 50 | flags were specified to the <a class="xref" href="dbget.html" title="DB->get()">DB->get()</a> or |
| 51 | <a class="xref" href="dbcget.html" title="DBcursor->get()">DBcursor->get()</a> methods, the data |
| 52 | <a class="link" href="dbt.html" title="Chapter 4. The DBT Handle">DBT</a> returned by those interfaces will |
| 53 | refer to a buffer that is filled with data. Access to that data is through the |
| 54 | DB_MULTIPLE_* macros. |
| 55 | </p> |
| 56 | <p> |
| 57 | Returns the next <a class="link" href="dbt.html" title="Chapter 4. The DBT Handle">DBT</a> in the bulk |
| 58 | retrieval set. |
| 59 | </p> |
| 60 | <div class="sect2" lang="en" xml:lang="en"> |
| 61 | <div class="titlepage"> |
| 62 | <div> |
| 63 | <div> |
| 64 | <h3 class="title"><a id="idp51121464"></a>Parameters</h3> |
| 65 | </div> |
| 66 | </div> |
| 67 | </div> |
| 68 | <div class="sect3" lang="en" xml:lang="en"> |
| 69 | <div class="titlepage"> |
| 70 | <div> |
| 71 | <div> |
| 72 | <h4 class="title"><a id="idp51121656"></a>pointer</h4> |
| 73 | </div> |
| 74 | </div> |
| 75 | </div> |
| 76 | <p> |
| 77 | The <span class="bold"><strong>pointer</strong></span> parameter is a variable |
| 78 | that must have been initialized by a call to |
| 79 | <a class="xref" href="DB_MULTIPLE_INIT.html" title="DB_MULTIPLE_INIT">DB_MULTIPLE_INIT</a>. |
| 80 | </p> |
| 81 | <p> |
| 82 | This parameter is set to NULL if there are no more key/data pairs in |
| 83 | the returned set. |
| 84 | </p> |
| 85 | </div> |
| 86 | <div class="sect3" lang="en" xml:lang="en"> |
| 87 | <div class="titlepage"> |
| 88 | <div> |
| 89 | <div> |
| 90 | <h4 class="title"><a id="idp51107832"></a>data</h4> |
| 91 | </div> |
| 92 | </div> |
| 93 | </div> |
| 94 | <p> |
| 95 | The <span class="bold"><strong>data</strong></span> parameter is a |
| 96 | <a class="link" href="dbt.html" title="Chapter 4. The DBT Handle">DBT</a> structure returned from a |
| 97 | successful call to <a class="xref" href="dbget.html" title="DB->get()">DB->get()</a> or |
| 98 | <a class="xref" href="dbcget.html" title="DBcursor->get()">DBcursor->get()</a> for which he |
| 99 | <a class="link" href="dbcget.html#dbcget_DB_MULTIPLE">DB_MULTIPLE</a> |
| 100 | flag was specified. |
| 101 | </p> |
| 102 | <p> |
| 103 | The <span class="bold"><strong>data</strong></span> parameter must have been initialized by |
| 104 | a call to <a class="xref" href="DB_MULTIPLE_INIT.html" title="DB_MULTIPLE_INIT">DB_MULTIPLE_INIT</a>. |
| 105 | </p> |
| 106 | </div> |
| 107 | <div class="sect3" lang="en" xml:lang="en"> |
| 108 | <div class="titlepage"> |
| 109 | <div> |
| 110 | <div> |
| 111 | <h4 class="title"><a id="idp51093528"></a>retdata</h4> |
| 112 | </div> |
| 113 | </div> |
| 114 | </div> |
| 115 | <p> |
| 116 | The <span class="bold"><strong>retdata</strong></span> is set |
| 117 | to the next data element in the returned set. |
| 118 | </p> |
| 119 | </div> |
| 120 | <div class="sect3" lang="en" xml:lang="en"> |
| 121 | <div class="titlepage"> |
| 122 | <div> |
| 123 | <div> |
| 124 | <h4 class="title"><a id="idp51083792"></a>retdlen</h4> |
| 125 | </div> |
| 126 | </div> |
| 127 | </div> |
| 128 | <p> |
| 129 | The <span class="bold"><strong>retdlen</strong></span> parameter is set to |
| 130 | the length, in bytes, of that data element. When used with the Queue and |
| 131 | Recno access methods, <span class="bold"><strong>retdata</strong></span> parameter |
| 132 | will be set to NULL for deleted records. |
| 133 | </p> |
| 134 | </div> |
| 135 | </div> |
| 136 | <div class="sect2" lang="en" xml:lang="en"> |
| 137 | <div class="titlepage"> |
| 138 | <div> |
| 139 | <div> |
| 140 | <h3 class="title"><a id="idp51122416"></a>Class</h3> |
| 141 | </div> |
| 142 | </div> |
| 143 | </div> |
| 144 | <p> |
| 145 | <a class="link" href="dbt.html" title="Chapter 4. The DBT Handle">DBT</a> |
| 146 | </p> |
| 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="idp51123496"></a>See Also</h3> |
| 153 | </div> |
| 154 | </div> |
| 155 | </div> |
| 156 | <p> |
| 157 | <a class="xref" href="dbt.html#dbtlist" title="DBT and Bulk Operations">DBT and Bulk Operations</a> |
| 158 | </p> |
| 159 | </div> |
| 160 | </div> |
| 161 | <div class="navfooter"> |
| 162 | <hr /> |
| 163 | <table width="100%" summary="Navigation footer"> |
| 164 | <tr> |
| 165 | <td width="40%" align="left"><a accesskey="p" href="DB_MULTIPLE_INIT.html">Prev</a> </td> |
| 166 | <td width="20%" align="center"> |
| 167 | <a accesskey="u" href="dbt.html">Up</a> |
| 168 | </td> |
| 169 | <td width="40%" align="right"> <a accesskey="n" href="DB_MULTIPLE_KEY_NEXT.html">Next</a></td> |
| 170 | </tr> |
| 171 | <tr> |
| 172 | <td width="40%" align="left" valign="top">DB_MULTIPLE_INIT </td> |
| 173 | <td width="20%" align="center"> |
| 174 | <a accesskey="h" href="index.html">Home</a> |
| 175 | </td> |
| 176 | <td width="40%" align="right" valign="top"> DB_MULTIPLE_KEY_NEXT</td> |
| 177 | </tr> |
| 178 | </table> |
| 179 | </div> |
| 180 | </body> |
| 181 | </html> |