 |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INCLUDE_PERSISTENCYSVC_GLOBALTRANSACTION_H
6 #define INCLUDE_PERSISTENCYSVC_GLOBALTRANSACTION_H
15 namespace PersistencySvc {
DatabaseRegistry & m_databases
The registered databases.
virtual ~GlobalTransaction()
Destructor.
ITransaction::Type type() const
Returns the transaction type.
bool commitAndHold()
Commits and holds the transaction.
AthMessaging wrapper to set the output level in APR components.
Type
Transaction type enumeration.
bool isActive() const
Checks if the transaction is active.
GlobalTransaction(DatabaseRegistry ®istry)
Constructor.
void rollback()
Rolls back the transaction.
void update()
Reverts to update mode.
bool commit()
Commits the transaction.
bool start(ITransaction::Type type=READ)
Starts a new transaction. Returns the success of the operation.
ITransaction::Type m_type
The current transaction type.