#include <CdbBdbWCdb.hh>
Inheritance diagram for CdbBdbWCdb:

Public Member Functions | |
| CdbBdbWCdb () | |
| The default constructor. | |
| virtual | ~CdbBdbWCdb () |
| The destructor. | |
| virtual const char * | technologyName () const |
| Get the technology name of this instance. | |
| virtual const char * | implementationName () const |
| Get the implementation name of this instance. | |
| virtual void | initialize () |
| Initialize the API. | |
| virtual bool | isInitialized () |
| Check if the API is initialized. | |
| virtual CdbStatus | getDefaultDatabase (std::string &theDatabase) |
| Get default database name. | |
| virtual CdbStatus | getDefaultView (std::string &theView, const char *theDatabase) |
| Get default view name. | |
| virtual CdbStatus | setDefaultDatabase (const char *theDatabaseName) |
| Set default database name. | |
| virtual CdbStatus | setDefaultView (const char *theViewName, const char *theDatabaseName) |
| Set default view name. | |
| virtual CdbStatus | findDatabase (CdbDatabasePtr &thePtr, const char *theName=0) |
| Find the specified Database. | |
| virtual CdbStatus | databaseIterator (CdbDatabaseItr &theItr) |
| Initialize an instance of an iterator for the known databases names. | |
Protected Member Functions | |
| virtual CdbTransactionBase * | transaction (CdbTransaction::Mode theMode) const |
| Get the transaction manager and start new transaction if needed. | |
This is a simple implementation for a singleton interface on the top of the "old" BDB API. Here is how the concepts of the new API map onto the old one:
Definition at line 32 of file CdbBdbWCdb.hh.
|
|
The default constructor. More details... Definition at line 31 of file CdbBdbWCdb.cc. References CDB_DEBUG_STREAM, CdbBdbWrapper::implementation(), Cdb::set(), CdbStatus::Success, and CdbBdbWrapper::technology(). |
|
|
The destructor. The destructor is protected to prevent clients from deleting objects which may be shared with others. Definition at line 53 of file CdbBdbWCdb.cc. |
|
|
Initialize an instance of an iterator for the known databases names. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 276 of file CdbBdbWCdb.cc. References CdbDatabaseItr, Cdb::get(), implementationName(), isInitialized(), CdbStatus::Success, and technologyName(). |
|
||||||||||||
|
Find the specified Database. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 215 of file CdbBdbWCdb.cc. References CdbStatus::Error, Cdb::get(), getDefaultDatabase(), implementationName(), isInitialized(), CdbStatus::Success, and technologyName(). |
|
|
Get default database name. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 86 of file CdbBdbWCdb.cc. References isInitialized(), and CdbStatus::Success. Referenced by findDatabase(). |
|
||||||||||||
|
Get default view name. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 96 of file CdbBdbWCdb.cc. References isInitialized(), CdbStatus::NotFound, and CdbStatus::Success. |
|
|
Get the implementation name of this instance. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 63 of file CdbBdbWCdb.cc. References CdbBdbWrapper::implementation(). Referenced by databaseIterator(), and findDatabase(). |
|
|
Initialize the API. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 69 of file CdbBdbWCdb.cc. |
|
|
Check if the API is initialized. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 80 of file CdbBdbWCdb.cc. Referenced by databaseIterator(), findDatabase(), getDefaultDatabase(), getDefaultView(), setDefaultDatabase(), and setDefaultView(). |
|
|
Set default database name. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 134 of file CdbBdbWCdb.cc. References isInitialized(), CdbStatus::NotFound, and CdbStatus::Success. |
|
||||||||||||
|
Set default view name. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 169 of file CdbBdbWCdb.cc. References isInitialized(), CdbStatus::NotFound, and CdbStatus::Success. |
|
|
Get the technology name of this instance. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 57 of file CdbBdbWCdb.cc. References CdbBdbWrapper::technology(). Referenced by databaseIterator(), and findDatabase(). |
|
|
Get the transaction manager and start new transaction if needed. Implements the corresponding method from the base class or interface.
Implements Cdb. Definition at line 300 of file CdbBdbWCdb.cc. References CdbTransaction::Read, and CdbTransaction::Update. |
1.3-rc3