![]() |
ATLAS Offline Software
|
#include <GlobalTransaction.h>
Public Types | |
| enum | Type { UNDEFINED, READ, UPDATE } |
| Transaction type enumeration. More... | |
Public Member Functions | |
| GlobalTransaction (DatabaseRegistry ®istry) | |
| Constructor. More... | |
| virtual | ~GlobalTransaction () |
| Destructor. More... | |
| bool | start (ITransaction::Type type=READ) |
| Starts a new transaction. Returns the success of the operation. More... | |
| bool | commit () |
| Commits the transaction. More... | |
| bool | commitAndHold () |
| Commits and holds the transaction. More... | |
| void | rollback () |
| Rolls back the transaction. More... | |
| bool | isActive () const |
| Checks if the transaction is active. More... | |
| void | update () |
| Reverts to update mode. More... | |
| ITransaction::Type | type () const |
| Returns the transaction type. More... | |
Private Attributes | |
| ITransaction::Type | m_type |
| The current transaction type. More... | |
| DatabaseRegistry & | m_databases |
| The registered databases. More... | |
GlobalTransaction is an implementation of the ITransaction interface.
Definition at line 20 of file GlobalTransaction.h.
|
inherited |
Transaction type enumeration.
| Enumerator | |
|---|---|
| UNDEFINED | |
| READ | |
| UPDATE | |
Definition at line 28 of file ITransaction.h.
|
explicit |
Constructor.
|
virtual |
Destructor.
|
virtual |
Commits the transaction.
Implements pool::ITransaction.
|
virtual |
Commits and holds the transaction.
Implements pool::ITransaction.
|
virtual |
Checks if the transaction is active.
Implements pool::ITransaction.
|
virtual |
Rolls back the transaction.
Implements pool::ITransaction.
|
virtual |
Starts a new transaction. Returns the success of the operation.
Implements pool::ITransaction.
|
virtual |
Returns the transaction type.
Implements pool::ITransaction.
|
virtual |
Reverts to update mode.
Implements pool::ITransaction.
|
private |
The registered databases.
Definition at line 54 of file GlobalTransaction.h.
|
private |
The current transaction type.
Definition at line 51 of file GlobalTransaction.h.
1.8.18