|
|
DbSequence |
#include <db_cxx.h>class DbSequence { public: DbSequence(Db *db, u_int32_t flags); ~DbSequence();
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); ... };
The DbSequence handle is the handle used to manipulate a sequence object. A sequence object is stored in a record in a database.
DbSequence handles are free-threaded if the DB_THREAD flag is specified to the DbSequence::open method when the sequence is opened. Once the DbSequence::close or DbSequence::remove methods are called, the handle may not be accessed again, regardless of the method's return.
Each handle opened on a sequence may maintain a separate cache of values which are returned to the application using the DbSequence::get method either singly or in groups depending on its delta parameter.
The constructor creates a DbSequence object that serves as the handle for a sequence. Calling the DbSequence::close or DbSequence::remove methods will discard the handle.
Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.