#include <DbOpenTransaction.h>
Public Member Functions | |
DbOpenTransaction (cond::DbTransaction &transaction) | |
void | ok () |
~DbOpenTransaction () | |
Private Attributes | |
bool | m_status |
cond::DbTransaction & | m_transaction |
Definition at line 17 of file DbOpenTransaction.h.
cond::DbOpenTransaction::DbOpenTransaction | ( | cond::DbTransaction & | transaction | ) | [explicit] |
Definition at line 5 of file DbOpenTransaction.cc.
: m_transaction(transaction),m_status(false){ }
cond::DbOpenTransaction::~DbOpenTransaction | ( | ) |
Definition at line 10 of file DbOpenTransaction.cc.
{ if(!m_status && m_transaction.isActive() ) { m_transaction.rollback(); } }
void cond::DbOpenTransaction::ok | ( | ) |
start transaction current transaction is readonly
Definition at line 16 of file DbOpenTransaction.cc.
{ m_status = true; }
bool cond::DbOpenTransaction::m_status [private] |
Definition at line 27 of file DbOpenTransaction.h.
Definition at line 26 of file DbOpenTransaction.h.