![]() |
ATLAS Offline Software
|
Base class for Database Transactions. More...
#include <POOLCore/Transaction.h>
Public Types | |
| enum | Type { TRANSACT_DOM = 1<<0 , TRANSACT_DB = 1<<1 , TRANSACT_CNT = 1<<2 , TRANSACT_NONE = 1<<4 } |
| enum | Action { TRANSACT_START = 1<<8 , TRANSACT_ACTIVE = 1<<9 , TRANSACT_COMMIT = 1<<10 , TRANSACT_FLUSH = 1<<11 , TRANSACT_ROLLBACK = 1<<12 , TRANSACT_ENDED = 1<<13 } |
| enum | Mode { AUTOCOMMIT_OFF = 1<<16 , AUTOCOMMIT_ON = 1<<17 } |
Public Member Functions | |
| int | technology () const |
| Access to the technology type. | |
| virtual Action | state () const =0 |
| Access to the state of the transaction. | |
| virtual Type | type () const =0 |
| Access to the transaction type. | |
Static Public Member Functions | |
| static const char * | actionAsString (Action action) |
| Translate Action to string. | |
Protected Member Functions | |
| Transaction () | |
| Standard empty constructor. | |
| virtual | ~Transaction () |
| Destructor (called only by sub-classes) | |
Protected Attributes | |
| int | m_technology |
| Technology type. | |
Private Member Functions | |
| Transaction (const Transaction &c) | |
| No copy constructor. | |
| Transaction & | operator= (const Transaction &c) |
| No assignment. | |
| bool | operator== (const Transaction &c) const |
| No equals operator. | |
| Enumerator | |
|---|---|
| TRANSACT_START | |
| TRANSACT_ACTIVE | |
| TRANSACT_COMMIT | |
| TRANSACT_FLUSH | |
| TRANSACT_ROLLBACK | |
| TRANSACT_ENDED | |
Definition at line 34 of file Transaction.h.
| Enumerator | |
|---|---|
| AUTOCOMMIT_OFF | |
| AUTOCOMMIT_ON | |
Definition at line 42 of file Transaction.h.
| Enumerator | |
|---|---|
| TRANSACT_DOM | |
| TRANSACT_DB | |
| TRANSACT_CNT | |
| TRANSACT_NONE | |
Definition at line 28 of file Transaction.h.
|
private |
No copy constructor.
|
inlineprotected |
|
inlineprotectedvirtual |
|
private |
No assignment.
|
private |
No equals operator.
|
pure virtual |
Access to the state of the transaction.
|
inline |
|
pure virtual |
Access to the transaction type.
|
protected |
Technology type.
Definition at line 48 of file Transaction.h.