![]() |
ATLAS Offline Software
|
#include <PersistencySvc/ITransaction.h>
Public Types | |
| enum | Type { UNDEFINED, READ, UPDATE } |
| Transaction type enumeration. More... | |
Public Member Functions | |
| virtual bool | start (Type type=READ)=0 |
| Starts a new transaction. Returns the success of the operation. More... | |
| virtual bool | commit ()=0 |
| Commits the transaction. More... | |
| virtual bool | commitAndHold ()=0 |
| Commits the holds transaction. More... | |
| virtual void | rollback ()=0 |
| Rolls back the transaction. More... | |
| virtual bool | isActive () const =0 |
| Checks if the transaction is active. More... | |
| virtual void | update ()=0 |
| Reverts to update mode. More... | |
| virtual Type | type () const =0 |
| Returns the transaction type. More... | |
Protected Member Functions | |
| virtual | ~ITransaction () |
| Default destructor. More... | |
ITransaction is the interface class for user (macroscopic transactions) Every operation with the pool storage system should be performed within a transaction. It is up to the specific implementation to perform proper transaction handling (rollbacks, locking, etc...)
Definition at line 21 of file ITransaction.h.
Transaction type enumeration.
| Enumerator | |
|---|---|
| UNDEFINED | |
| READ | |
| UPDATE | |
Definition at line 28 of file ITransaction.h.
|
inlineprotectedvirtual |
|
pure virtual |
Commits the transaction.
Implemented in pool::PersistencySvc::GlobalTransaction.
|
pure virtual |
Commits the holds transaction.
Implemented in pool::PersistencySvc::GlobalTransaction.
|
pure virtual |
Checks if the transaction is active.
Implemented in pool::PersistencySvc::GlobalTransaction.
|
pure virtual |
Rolls back the transaction.
Implemented in pool::PersistencySvc::GlobalTransaction.
Starts a new transaction. Returns the success of the operation.
Implemented in pool::PersistencySvc::GlobalTransaction.
|
pure virtual |
Returns the transaction type.
Implemented in pool::PersistencySvc::GlobalTransaction.
|
pure virtual |
Reverts to update mode.
Implemented in pool::PersistencySvc::GlobalTransaction.
1.8.18