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

CdbCommandTrans Class Reference

This in an abstract base class providing an interface to the transactions management. More...

#include <CdbCommandTrans.hh>

Inheritance diagram for CdbCommandTrans:

CdbCommandTransReadOrUpdate CdbCommandTransVoid List of all members.

Public Member Functions

virtual ~CdbCommandTrans ()
 Destructor.

virtual CdbStatus start ()=0
 Start a new transaction.

virtual CdbStatus commit ()=0
 Commit an active transaction.

virtual CdbStatus commitAndHold ()=0
 Commit and hold an active transaction.

virtual CdbStatus abort ()=0
 Abort an active transaction.


Protected Member Functions

 CdbCommandTrans ()
 Constructor.


Detailed Description

This in an abstract base class providing an interface to the transactions management.

Concrete incarnations of the pure virtual methods defined in this class will implement the corresponding transaction management policies.

NOTES: (1) The actual implementations of operations provided through this . interface will vary.

(2) Always check the status value returned by the operations.

Definition at line 19 of file CdbCommandTrans.hh.


Constructor & Destructor Documentation

CdbCommandTrans::~CdbCommandTrans   [virtual]
 

Destructor.

Definition at line 16 of file CdbCommandTrans.cc.

CdbCommandTrans::CdbCommandTrans   [protected]
 

Constructor.

See also:
CdbCommandTrans

Definition at line 13 of file CdbCommandTrans.cc.


Member Function Documentation

virtual CdbStatus CdbCommandTrans::abort   [pure virtual]
 

Abort an active transaction.

Implemented in CdbCommandTransReadOrUpdate, and CdbCommandTransVoid.

Referenced by CdbCommandBase::execute().

virtual CdbStatus CdbCommandTrans::commit   [pure virtual]
 

Commit an active transaction.

Implemented in CdbCommandTransReadOrUpdate, and CdbCommandTransVoid.

Referenced by CdbCommandBase::checkpoint(), and CdbCommandBase::execute().

virtual CdbStatus CdbCommandTrans::commitAndHold   [pure virtual]
 

Commit and hold an active transaction.

Implemented in CdbCommandTransReadOrUpdate, and CdbCommandTransVoid.

Referenced by CdbCommandBase::checkpoint().

virtual CdbStatus CdbCommandTrans::start   [pure virtual]
 

Start a new transaction.

Implemented in CdbCommandTransReadOrUpdate, and CdbCommandTransVoid.

Referenced by CdbCommandBase::checkpoint(), and CdbCommandBase::execute().


The documentation for this class was generated from the following files:
Generated on Mon Dec 5 18:22:21 2005 for CDB by doxygen1.3-rc3