Leosac
0.8.0
Open Source Access Control
|
Acts like an odb::transaction, with the exception that it will becomes the active transaction at construction, and will retore the previous (if any) transaction when it gets destroyed. More...
#include <MultiplexedTransaction.hpp>
Public Member Functions | |
MultiplexedTransaction (odb::transaction_impl *impl) | |
~MultiplexedTransaction () | |
void | commit () |
Commit the transaction. More... | |
void | rollback () |
Rollback the transaction. More... | |
Private Attributes | |
bool | had_previous_ |
std::unique_ptr< odb::transaction > | transaction_ |
odb::transaction * | previous_ |
Acts like an odb::transaction, with the exception that it will becomes the active transaction at construction, and will retore the previous (if any) transaction when it gets destroyed.
Definition at line 35 of file MultiplexedTransaction.hpp.
MultiplexedTransaction::MultiplexedTransaction | ( | odb::transaction_impl * | impl | ) |
Definition at line 27 of file MultiplexedTransaction.cpp.
MultiplexedTransaction::~MultiplexedTransaction | ( | ) |
Definition at line 38 of file MultiplexedTransaction.cpp.
void MultiplexedTransaction::commit | ( | ) |
Commit the transaction.
The call is forward to the real odb::transaction object.
Definition at line 47 of file MultiplexedTransaction.cpp.
void MultiplexedTransaction::rollback | ( | ) |
Rollback the transaction.
Definition at line 52 of file MultiplexedTransaction.cpp.
|
private |
Definition at line 54 of file MultiplexedTransaction.hpp.
|
private |
Definition at line 56 of file MultiplexedTransaction.hpp.
|
private |
Definition at line 55 of file MultiplexedTransaction.hpp.