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::CondDBTransaction Class Reference
Inheritance diagram for cond::persistency::CondDBTransaction:
cond::persistency::ITransaction

Public Member Functions

void commit ()
 
 CondDBTransaction (const boost::shared_ptr< coral::ISessionProxy > &coralSession)
 
bool isActive ()
 
void rollback ()
 
virtual ~CondDBTransaction ()
 
- Public Member Functions inherited from cond::persistency::ITransaction
virtual ~ITransaction ()
 

Private Attributes

boost::shared_ptr
< coral::ISessionProxy > 
m_session
 

Additional Inherited Members

- Public Attributes inherited from cond::persistency::ITransaction
size_t clients = 0
 
bool gtDbExists = false
 
bool gtDbOpen = false
 
bool iovDbExists = false
 
bool iovDbOpen = false
 
bool isOra = false
 

Detailed Description

Definition at line 16 of file SessionImpl.cc.

Constructor & Destructor Documentation

cond::persistency::CondDBTransaction::CondDBTransaction ( const boost::shared_ptr< coral::ISessionProxy > &  coralSession)
inline

Definition at line 18 of file SessionImpl.cc.

18  :
19  m_session( coralSession ){
20  }
boost::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:35
virtual cond::persistency::CondDBTransaction::~CondDBTransaction ( )
inlinevirtual

Definition at line 21 of file SessionImpl.cc.

21 {}

Member Function Documentation

void cond::persistency::CondDBTransaction::commit ( )
inlinevirtual

Implements cond::persistency::ITransaction.

Definition at line 23 of file SessionImpl.cc.

References m_session.

23  {
24  m_session->transaction().commit();
25  }
boost::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:35
bool cond::persistency::CondDBTransaction::isActive ( )
inlinevirtual

Implements cond::persistency::ITransaction.

Definition at line 31 of file SessionImpl.cc.

References m_session.

31  {
32  return m_session->transaction().isActive();
33  }
boost::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:35
void cond::persistency::CondDBTransaction::rollback ( )
inlinevirtual

Implements cond::persistency::ITransaction.

Definition at line 27 of file SessionImpl.cc.

References m_session.

27  {
28  m_session->transaction().rollback();
29  }
boost::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:35

Member Data Documentation

boost::shared_ptr<coral::ISessionProxy> cond::persistency::CondDBTransaction::m_session
private

Definition at line 35 of file SessionImpl.cc.

Referenced by commit(), isActive(), and rollback().