#include <ScopedTransaction.h>
Public Member Functions | |
bool | commit () |
Commits the transaction. More... | |
bool | isActive (bool checkIfReadOnly=false) const |
Checks if the transaction is active. More... | |
bool | rollback () |
Rolls back the transaction. More... | |
ScopedTransaction (Transaction &dbTransaction) | |
ScopedTransaction (const ScopedTransaction &trans) | |
bool | start (bool readOnly=true) |
Starts a new transaction. Returns the success of the operation. More... | |
virtual | ~ScopedTransaction () |
Default destructor. More... | |
Private Attributes | |
Transaction & | m_dbTransaction |
Definition at line 12 of file ScopedTransaction.h.
|
explicit |
Definition at line 4 of file ScopedTransaction.cc.
ora::ScopedTransaction::ScopedTransaction | ( | const ScopedTransaction & | trans | ) |
Definition at line 8 of file ScopedTransaction.cc.
|
virtual |
Default destructor.
Definition at line 12 of file ScopedTransaction.cc.
bool ora::ScopedTransaction::commit | ( | ) |
Commits the transaction.
Definition at line 22 of file ScopedTransaction.cc.
Referenced by querying.connection::write_and_commit().
bool ora::ScopedTransaction::isActive | ( | bool | checkIfReadOnly = false | ) | const |
Checks if the transaction is active.
Definition at line 30 of file ScopedTransaction.cc.
bool ora::ScopedTransaction::rollback | ( | ) |
Rolls back the transaction.
Definition at line 26 of file ScopedTransaction.cc.
bool ora::ScopedTransaction::start | ( | bool | readOnly = true | ) |
Starts a new transaction. Returns the success of the operation.
Definition at line 18 of file ScopedTransaction.cc.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
|
private |
Definition at line 36 of file ScopedTransaction.h.