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 19 of file SessionImpl.cc.

Constructor & Destructor Documentation

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

Definition at line 21 of file SessionImpl.cc.

21  :
22  m_session( coralSession ){
23  }
boost::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:38
virtual cond::persistency::CondDBTransaction::~CondDBTransaction ( )
inlinevirtual

Definition at line 24 of file SessionImpl.cc.

24 {}

Member Function Documentation

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

Implements cond::persistency::ITransaction.

Definition at line 26 of file SessionImpl.cc.

References m_session.

26  {
27  m_session->transaction().commit();
28  }
boost::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:38
bool cond::persistency::CondDBTransaction::isActive ( )
inlinevirtual

Implements cond::persistency::ITransaction.

Definition at line 34 of file SessionImpl.cc.

References m_session.

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

Implements cond::persistency::ITransaction.

Definition at line 30 of file SessionImpl.cc.

References m_session.

30  {
31  m_session->transaction().rollback();
32  }
boost::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:38

Member Data Documentation

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

Definition at line 38 of file SessionImpl.cc.

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