CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
cond::DbOpenTransaction Class Reference

#include <DbOpenTransaction.h>

Public Member Functions

 DbOpenTransaction (cond::DbTransaction &transaction)
 
void ok ()
 
 ~DbOpenTransaction ()
 

Private Attributes

bool m_status
 
cond::DbTransactionm_transaction
 

Detailed Description

Definition at line 17 of file DbOpenTransaction.h.

Constructor & Destructor Documentation

cond::DbOpenTransaction::DbOpenTransaction ( cond::DbTransaction transaction)
explicit

Definition at line 5 of file DbOpenTransaction.cc.

5  :
6  m_transaction(transaction),m_status(false){
7 }
cond::DbTransaction & m_transaction
cond::DbOpenTransaction::~DbOpenTransaction ( )

Definition at line 10 of file DbOpenTransaction.cc.

10  {
11  if(!m_status && m_transaction.isActive() ) {
13  }
14 }
cond::DbTransaction & m_transaction
bool rollback()
rollback transaction
int isActive() const
current transaction is active

Member Function Documentation

void cond::DbOpenTransaction::ok ( )

start transaction current transaction is readonly

Definition at line 16 of file DbOpenTransaction.cc.

17 {
18  m_status = true;
19 }

Member Data Documentation

bool cond::DbOpenTransaction::m_status
private

Definition at line 27 of file DbOpenTransaction.h.

cond::DbTransaction& cond::DbOpenTransaction::m_transaction
private

Definition at line 26 of file DbOpenTransaction.h.