Debian Codegraph @

docs/api_reference/CXX/seqinitial_value.html

raw symbols SCIP
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::initial_value()</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="seqget_range.html" title="DbSequence::get_range()" />
12 <link rel="next" href="seqopen.html" title="DbSequence::open()" />
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::initial_value()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="seqget_range.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="seqopen.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="seqinitial_value"></a>DbSequence::initial_value()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbSequence::initial_value(db_seq_t value);</pre>
45 <p>
46 Set the initial value for a sequence. This call is only effective
47 when the sequence is being created.
48 </p>
49 <p>
50 The <code class="methodname">DbSequence::initial_value()</code> method may not be called after the
51 <a class="xref" href="seqopen.html" title="DbSequence::open()">DbSequence::open()</a>
52 method is called.
53 </p>
54 <p>
55 The <code class="methodname">DbSequence::initial_value()</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="idp10125224"></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="idp10125392"></a>value</h4>
77 </div>
78 </div>
79 </div>
80 <p>
81 The initial value to set.
82 </p>
83 </div>
84 </div>
85 <div class="sect2" lang="en" xml:lang="en">
86 <div class="titlepage">
87 <div>
88 <div>
89 <h3 class="title"><a id="idp10126736"></a>Errors</h3>
90 </div>
91 </div>
92 </div>
93 <p>
94 The <code class="methodname">DbSequence::initial_value()</code> <span>
95
96 <span>
97 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
98 exception, encapsulating one of the following non-zero errors, or return one
99 of the following non-zero errors:
100 </span>
101 </span>
102 </p>
103 <div class="sect3" lang="en" xml:lang="en">
104 <div class="titlepage">
105 <div>
106 <div>
107 <h4 class="title"><a id="idp10130112"></a>EINVAL</h4>
108 </div>
109 </div>
110 </div>
111 <p>
112 An invalid flag value or parameter was specified.
113 </p>
114 </div>
115 </div>
116 <div class="sect2" lang="en" xml:lang="en">
117 <div class="titlepage">
118 <div>
119 <div>
120 <h3 class="title"><a id="idp10128816"></a>Class</h3>
121 </div>
122 </div>
123 </div>
124 <p>
125 <a class="link" href="seq.html" title="Chapter 12.  The DbSequence Handle">DbSequence</a>
126 </p>
127 </div>
128 <div class="sect2" lang="en" xml:lang="en">
129 <div class="titlepage">
130 <div>
131 <div>
132 <h3 class="title"><a id="idp10041624"></a>See Also</h3>
133 </div>
134 </div>
135 </div>
136 <p>
137 <a class="xref" href="seq.html#seqlist" title="Sequences and Related Methods">Sequences and Related Methods</a>
138 </p>
139 </div>
140 </div>
141 <div class="navfooter">
142 <hr />
143 <table width="100%" summary="Navigation footer">
144 <tr>
145 <td width="40%" align="left"><a accesskey="p" href="seqget_range.html">Prev</a> </td>
146 <td width="20%" align="center">
147 <a accesskey="u" href="seq.html">Up</a>
148 </td>
149 <td width="40%" align="right"> <a accesskey="n" href="seqopen.html">Next</a></td>
150 </tr>
151 <tr>
152 <td width="40%" align="left" valign="top">DbSequence::get_range() </td>
153 <td width="20%" align="center">
154 <a accesskey="h" href="index.html">Home</a>
155 </td>
156 <td width="40%" align="right" valign="top"> DbSequence::open()</td>
157 </tr>
158 </table>
159 </div>
160 </body>
161 </html>