#include <Transaction.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... | |
bool | start (bool readOnly=true) |
Starts a new transaction. Returns the success of the operation. More... | |
Transaction (DatabaseSession &session) | |
virtual | ~Transaction () |
Default destructor. More... | |
Private Attributes | |
bool | m_localActive |
DatabaseSession & | m_session |
Definition at line 12 of file Transaction.h.
|
explicit |
Definition at line 4 of file Transaction.cc.
|
virtual |
bool ora::Transaction::commit | ( | ) |
Commits the transaction.
Definition at line 22 of file Transaction.cc.
Referenced by querying.connection::write_and_commit().
bool ora::Transaction::isActive | ( | bool | checkIfReadOnly = false | ) | const |
Checks if the transaction is active.
Definition at line 42 of file Transaction.cc.
bool ora::Transaction::rollback | ( | ) |
Rolls back the transaction.
Definition at line 32 of file Transaction.cc.
bool ora::Transaction::start | ( | bool | readOnly = true | ) |
Starts a new transaction. Returns the success of the operation.
Definition at line 12 of file Transaction.cc.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
|
private |
Definition at line 34 of file Transaction.h.
|
private |
Definition at line 33 of file Transaction.h.