5#ifndef INCLUDE_PERSISTENCYSVC_GLOBALTRANSACTION_H
6#define INCLUDE_PERSISTENCYSVC_GLOBALTRANSACTION_H
APRMessaging(const std::string &name)
ITransaction is the interface class for user (macroscopic transactions) Every operation with the pool...
Type
Transaction type enumeration.
bool isActive() const
Checks if the transaction is active.
virtual ~GlobalTransaction()
Destructor.
void rollback()
Rolls back the transaction.
DatabaseRegistry & m_databases
The registered databases.
bool commit()
Commits the transaction.
void update()
Reverts to update mode.
bool start(ITransaction::Type type=READ)
Starts a new transaction. Returns the success of the operation.
bool commitAndHold()
Commits and holds the transaction.
ITransaction::Type type() const
Returns the transaction type.
ITransaction::Type m_type
The current transaction type.
GlobalTransaction(DatabaseRegistry ®istry)
Constructor.