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::persistency::TransactionScope Class Reference

#include <Session.h>

Public Member Functions

void close ()
 
void commit ()
 
void start (bool readOnly=true)
 
 TransactionScope (Transaction &transaction)
 
 ~TransactionScope ()
 

Private Attributes

bool m_status
 
Transactionm_transaction
 

Detailed Description

Definition at line 214 of file Session.h.

Constructor & Destructor Documentation

cond::persistency::TransactionScope::TransactionScope ( Transaction transaction)
explicit
cond::persistency::TransactionScope::~TransactionScope ( )

Member Function Documentation

void cond::persistency::TransactionScope::close ( void  )
void cond::persistency::TransactionScope::commit ( )

Definition at line 288 of file Session.cc.

References cond::persistency::Transaction::commit(), m_status, and m_transaction.

288  {
290  m_status = true;
291  }
void cond::persistency::TransactionScope::start ( bool  readOnly = true)

Member Data Documentation

bool cond::persistency::TransactionScope::m_status
private

Definition at line 227 of file Session.h.

Referenced by close(), commit(), start(), TransactionScope(), and ~TransactionScope().

Transaction& cond::persistency::TransactionScope::m_transaction
private

Definition at line 226 of file Session.h.

Referenced by commit(), start(), TransactionScope(), and ~TransactionScope().