| 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>DbSequence::close()</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="seq.html" title="Chapter 12. The DbSequence Handle" /> |
| 11 | <link rel="prev" href="seqcreate.html" title="DbSequence" /> |
| 12 | <link rel="next" href="seqget.html" title="DbSequence::get()" /> |
| 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">DbSequence::close()</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="seqcreate.html">Prev</a> </td> |
| 25 | <th width="60%" align="center">Chapter 12. |
| 26 | The DbSequence Handle |
| 27 | </th> |
| 28 | <td width="20%" align="right"> <a accesskey="n" href="seqget.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="seqclose"></a>DbSequence::close()</h2> |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 | <pre class="programlisting">#include <db_cxx.h> |
| 42 | |
| 43 | int |
| 44 | DbSequence::close(u_int32_t flags);</pre> |
| 45 | <p> |
| 46 | The <code class="methodname">DbSequence::close()</code> method closes the sequence handle. Any |
| 47 | unused cached values are lost. |
| 48 | </p> |
| 49 | <p> |
| 50 | The <a class="link" href="seq.html" title="Chapter 12. The DbSequence Handle">DbSequence</a> handle |
| 51 | may not be accessed again after <code class="methodname">DbSequence::close()</code> is called, |
| 52 | regardless of its return. |
| 53 | </p> |
| 54 | <p> |
| 55 | The <code class="methodname">DbSequence::close()</code> <span> |
| 56 | |
| 57 | <span> |
| 58 | method either returns a non-zero error value or throws an |
| 59 | exception that encapsulates a non-zero error value on |
| 60 | failure, and returns 0 on success. |
| 61 | </span> |
| 62 | </span> |
| 63 | </p> |
| 64 | <div class="sect2" lang="en" xml:lang="en"> |
| 65 | <div class="titlepage"> |
| 66 | <div> |
| 67 | <div> |
| 68 | <h3 class="title"><a id="idp10066032"></a>Parameters</h3> |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 | <div class="sect3" lang="en" xml:lang="en"> |
| 73 | <div class="titlepage"> |
| 74 | <div> |
| 75 | <div> |
| 76 | <h4 class="title"><a id="idp10065384"></a>flags</h4> |
| 77 | </div> |
| 78 | </div> |
| 79 | </div> |
| 80 | <p> |
| 81 | The <span class="bold"><strong>flags</strong></span> parameter is currently |
| 82 | unused, and must be set to 0. |
| 83 | </p> |
| 84 | </div> |
| 85 | </div> |
| 86 | <div class="sect2" lang="en" xml:lang="en"> |
| 87 | <div class="titlepage"> |
| 88 | <div> |
| 89 | <div> |
| 90 | <h3 class="title"><a id="idp10068192"></a>Errors</h3> |
| 91 | </div> |
| 92 | </div> |
| 93 | </div> |
| 94 | <p> |
| 95 | The <code class="methodname">DbSequence::close()</code> method <span> |
| 96 | |
| 97 | <span> |
| 98 | method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a> |
| 99 | exception, encapsulating one of the following non-zero errors, or return one |
| 100 | of the following non-zero errors: |
| 101 | </span> |
| 102 | </span> |
| 103 | </p> |
| 104 | <div class="sect3" lang="en" xml:lang="en"> |
| 105 | <div class="titlepage"> |
| 106 | <div> |
| 107 | <div> |
| 108 | <h4 class="title"><a id="idp10072280"></a>EINVAL</h4> |
| 109 | </div> |
| 110 | </div> |
| 111 | </div> |
| 112 | <p> |
| 113 | An invalid flag value or parameter was specified. |
| 114 | </p> |
| 115 | </div> |
| 116 | </div> |
| 117 | <div class="sect2" lang="en" xml:lang="en"> |
| 118 | <div class="titlepage"> |
| 119 | <div> |
| 120 | <div> |
| 121 | <h3 class="title"><a id="idp10070984"></a>Class</h3> |
| 122 | </div> |
| 123 | </div> |
| 124 | </div> |
| 125 | <p> |
| 126 | <a class="link" href="seq.html" title="Chapter 12. The DbSequence Handle">DbSequence</a> |
| 127 | </p> |
| 128 | </div> |
| 129 | <div class="sect2" lang="en" xml:lang="en"> |
| 130 | <div class="titlepage"> |
| 131 | <div> |
| 132 | <div> |
| 133 | <h3 class="title"><a id="idp10073608"></a>See Also</h3> |
| 134 | </div> |
| 135 | </div> |
| 136 | </div> |
| 137 | <p> |
| 138 | <a class="xref" href="seq.html#seqlist" title="Sequences and Related Methods">Sequences and Related Methods</a> |
| 139 | </p> |
| 140 | </div> |
| 141 | </div> |
| 142 | <div class="navfooter"> |
| 143 | <hr /> |
| 144 | <table width="100%" summary="Navigation footer"> |
| 145 | <tr> |
| 146 | <td width="40%" align="left"><a accesskey="p" href="seqcreate.html">Prev</a> </td> |
| 147 | <td width="20%" align="center"> |
| 148 | <a accesskey="u" href="seq.html">Up</a> |
| 149 | </td> |
| 150 | <td width="40%" align="right"> <a accesskey="n" href="seqget.html">Next</a></td> |
| 151 | </tr> |
| 152 | <tr> |
| 153 | <td width="40%" align="left" valign="top">DbSequence </td> |
| 154 | <td width="20%" align="center"> |
| 155 | <a accesskey="h" href="index.html">Home</a> |
| 156 | </td> |
| 157 | <td width="40%" align="right" valign="top"> DbSequence::get()</td> |
| 158 | </tr> |
| 159 | </table> |
| 160 | </div> |
| 161 | </body> |
| 162 | </html> |