<!--$Id: seq_class.so,v 1.12 2004/10/18 19:46:31 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle. All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB: DbSequence</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<table width="100%"><tr valign=top>
<td>
<b>DbSequence</b>
</td>
<td align=right>
<a href="../../db4-devel-4.7.25/api_cxx/api_core.html"><img src="../../db4-devel-4.7.25/images/api.gif" alt="API"></a>
<a href="../../db4-devel-4.7.25/ref/toc.html"><img src="../../db4-devel-4.7.25/images/ref.gif" alt="Ref"></a></td>
</tr></table>
<hr size=1 noshade>
<tt>
<b><pre>
#include <db_cxx.h>
<p>
class DbSequence {
public:
DbSequence(Db *db, u_int32_t flags);
~DbSequence();
<p>
DB_SEQUENCE *DbSequence::get_DB();
const DB *DbSequence::get_const_DB() const;
static DbSequence *DbSequence::get_DbSequence(DB *db);
static const DbSequence *DbSequence::get_const_DbSequence(const DB *db);
...
};
</pre></b>
<hr size=1 noshade>
<b>Description: DbSequence</b>
<p>The DbSequence handle is the handle used to manipulate a
sequence object. A sequence object is stored in a record in a
database.</p>
<p>DbSequence handles are free-threaded if the <a href="../../db4-devel-4.7.25/api_cxx/env_open.html#DB_THREAD">DB_THREAD</a>
flag is specified to the <a href="../../db4-devel-4.7.25/api_cxx/seq_open.html">DbSequence::open</a> method when the sequence is opened.
Once the <a href="../../db4-devel-4.7.25/api_cxx/seq_close.html">DbSequence::close</a> or <a href="../../db4-devel-4.7.25/api_cxx/seq_remove.html">DbSequence::remove</a> methods are called, the
handle may not be accessed again, regardless of the method's return.</p>
<p>Each handle opened on a sequence may maintain a separate cache of values
which are returned to the application using the <a href="../../db4-devel-4.7.25/api_cxx/seq_get.html">DbSequence::get</a> method
either singly or in groups depending on its <b>delta</b> parameter.</p>
<p>The
constructor creates a
DbSequence object that serves as the handle for a sequence.
Calling the <a href="../../db4-devel-4.7.25/api_cxx/seq_close.html">DbSequence::close</a> or <a href="../../db4-devel-4.7.25/api_cxx/seq_remove.html">DbSequence::remove</a> methods will discard the
handle.</p>
<b>Parameters</b> <br>
<b>db</b><ul compact><li>The <b>db</b> parameter is an open database handle which holds the
persistent data for the sequence. The database may be of any type,
but may not have been configured to support duplicate data items.</ul>
<b>flags</b><ul compact><li>The <b>flags</b> parameter is currently unused, and must be set to 0.</ul>
<br>
<hr size=1 noshade>
<br><b>Class</b>
DbSequence
<br><b>See Also</b>
<a href="../../db4-devel-4.7.25/api_cxx/seq_list.html">Sequences and Related Methods</a>
</tt>
<table width="100%"><tr><td><br></td><td align=right>
<a href="../../db4-devel-4.7.25/api_cxx/api_core.html"><img src="../../db4-devel-4.7.25/images/api.gif" alt="API"></a><a href="../../db4-devel-4.7.25/ref/toc.html"><img src="../../db4-devel-4.7.25/images/ref.gif" alt="Ref"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font>
</body>
</html>
Copyright 2K16 - 2K18 Indonesian Hacker Rulez