DbSequence::open API Ref

#include <db_cxx.h>

int int DbSequence::open(DbTxn *txnid, Dbt *key, u_int32_t flags);

int DbSequence::get_dbp(Db **dbp);

int DbSequence::get_key(Dbt *key);


Description: DbSequence::open

The DbSequence::open method opens the sequence represented by the key. The key must be compatible with the underlying database specified in the corresponding call to db_sequence_create.

Parameters
key flags txnid

Description: DbSequence::get_dbp

The DbSequence::get_dbp method returns the database handle.

Parameters
dbp

The DbSequence::get_dbp method may be called at any time during the life of the application.

The DbSequence::get_dbp method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.


Description: DbSequence::get_key

The DbSequence::get_key method returns the key for the sequence.

Parameters
key

The DbSequence::get_key method may be called at any time during the life of the application.

The DbSequence::get_key method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.



Class DbSequence
See Also Sequences and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.