Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

AlephDbManager Class Reference

The DataBase manager. More...

#include <AlephDbManager.h>

Inheritance diagram for AlephDbManager:

Inheritance graph
[legend]
Collaboration diagram for AlephDbManager:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual AlephRC initialize ()
 the initialization step. More...

virtual AlephRC terminate ()
 the terminating step. More...

virtual AlephTransaction transactionType () const
 get the current transaction type. More...

virtual void setTransactionType (const AlephTransaction &transType)
 set the current transaction type. More...

virtual AlephRC startTransaction (const AlephTransaction &transType)
 start a transaction, transType = READING or UPDATE. More...

virtual AlephRC stopTransaction ()
 stop the current transaction, sets transType to HALTED. More...

virtual AlephRC commitAndHoldTransaction ()
 do a commit and hold. More...

virtual AlephRC openExistingDb (const vector< string > &aDbName, const string &mode="TRANSTY")
 open an existing database. More...

virtual AlephRC openNewDb (const string &aDbName)
 open a new database. More...

virtual string dbName () const
 return the name of the current database. More...

virtual void setDbName (const string &aDbName)
 set the name of the current database. More...

virtual AlephRC StoreEvent (AlphaBanks *event)
 store an event. More...

virtual AlephRC GetEvent (AlphaBanks *)
 get the next event. More...


Static Public Methods

AlephManagerTheAlephDbManager ()
 the instance function of the Singleton. More...


Protected Methods

 AlephDbManager ()
virtual ~AlephDbManager ()

Private Attributes

string _dbName
AlephTransaction _theTransactionType

Static Private Attributes

AlephManager_theAlephDbManager = 0

Detailed Description

The DataBase manager.

Definition at line 26 of file AlephDbManager.h.


Constructor & Destructor Documentation

AlephDbManager::AlephDbManager ( ) [protected]
 

Definition at line 88 of file AlephDbManager.cpp.

AlephDbManager::~AlephDbManager ( ) [protected, virtual]
 

Definition at line 99 of file AlephDbManager.cpp.


Member Function Documentation

AlephRC AlephDbManager::GetEvent ( AlphaBanks * theoutput ) [virtual]
 

get the next event.

Reimplemented in AlephROOTDbManager.

Definition at line 223 of file AlephDbManager.cpp.

Referenced by AlephROOTExManager::loopAllRead(), and AlephROOTExManager::loopInterRead().

AlephRC AlephDbManager::StoreEvent ( AlphaBanks * event ) [virtual]
 

store an event.

Reimplemented in AlephROOTDbManager.

Definition at line 217 of file AlephDbManager.cpp.

AlephManager * AlephDbManager::TheAlephDbManager ( ) [static]
 

the instance function of the Singleton.

Definition at line 28 of file AlephDbManager.cpp.

Referenced by AlephSession::initialize().

AlephRC AlephDbManager::commitAndHoldTransaction ( ) [virtual]
 

do a commit and hold.

Definition at line 174 of file AlephDbManager.cpp.

string AlephDbManager::dbName ( ) const [virtual]
 

return the name of the current database.

Definition at line 202 of file AlephDbManager.cpp.

AlephRC AlephDbManager::initialize ( ) [virtual]
 

the initialization step.

Reimplemented from AlephManager.

Reimplemented in AlephROOTDbManager.

Definition at line 108 of file AlephDbManager.cpp.

AlephRC AlephDbManager::openExistingDb ( const vector< string > & aDbName,
const string & mode = "TRANSTY" ) [virtual]
 

open an existing database.

Reimplemented in AlephROOTDbManager.

Definition at line 183 of file AlephDbManager.cpp.

AlephRC AlephDbManager::openNewDb ( const string & aDbName ) [virtual]
 

open a new database.

Reimplemented in AlephROOTDbManager.

Definition at line 193 of file AlephDbManager.cpp.

void AlephDbManager::setDbName ( const string & aDbName ) [virtual]
 

set the name of the current database.

Definition at line 211 of file AlephDbManager.cpp.

Referenced by AlephROOTDbManager::openExistingDb(), AlephROOTDbManager::openNewDb(), and AlephROOTDbManager::terminate().

void AlephDbManager::setTransactionType ( const AlephTransaction & transType ) [virtual]
 

set the current transaction type.

Definition at line 144 of file AlephDbManager.cpp.

Referenced by startTransaction(), and stopTransaction().

AlephRC AlephDbManager::startTransaction ( const AlephTransaction & transType ) [virtual]
 

start a transaction, transType = READING or UPDATE.

Definition at line 152 of file AlephDbManager.cpp.

Referenced by initialize(), AlephROOTExManager::loopAllRead(), AlephEpioExManager::loopAllRead(), AlephEpioExManager::loopAllWrite(), AlephROOTExManager::loopInterRead(), and AlephEpioExManager::loopInterRead().

AlephRC AlephDbManager::stopTransaction ( ) [virtual]
 

stop the current transaction, sets transType to HALTED.

Definition at line 163 of file AlephDbManager.cpp.

Referenced by AlephROOTExManager::loopAllRead(), AlephEpioExManager::loopAllRead(), AlephEpioExManager::loopAllWrite(), AlephROOTExManager::loopInterRead(), AlephEpioExManager::loopInterRead(), and terminate().

AlephRC AlephDbManager::terminate ( ) [virtual]
 

the terminating step.

Reimplemented from AlephManager.

Reimplemented in AlephROOTDbManager.

Definition at line 122 of file AlephDbManager.cpp.

AlephTransaction AlephDbManager::transactionType ( ) const [virtual]
 

get the current transaction type.

Definition at line 136 of file AlephDbManager.cpp.


Member Data Documentation

string AlephDbManager::_dbName [private]
 

Definition at line 69 of file AlephDbManager.h.

AlephManager * AlephDbManager::_theAlephDbManager = 0 [static, private]
 

Definition at line 23 of file AlephDbManager.cpp.

AlephTransaction AlephDbManager::_theTransactionType [private]
 

Definition at line 71 of file AlephDbManager.h.


The documentation for this class was generated from the following files:
Generated at Wed Jun 18 17:21:14 2003 for ALPHA++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001