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

Constructor & Destructor Documentation

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

Definition at line 15 of file SessionImpl.cc.

15  :
16  m_session( coralSession ){
17  }
boost::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:32
virtual cond::persistency::CondDBTransaction::~CondDBTransaction ( )
inlinevirtual

Definition at line 18 of file SessionImpl.cc.

18 {}

Member Function Documentation

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

Implements cond::persistency::ITransaction.

Definition at line 20 of file SessionImpl.cc.

References m_session.

Referenced by querying.connection::write_and_commit().

20  {
21  m_session->transaction().commit();
22  }
boost::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:32
bool cond::persistency::CondDBTransaction::isActive ( )
inlinevirtual

Implements cond::persistency::ITransaction.

Definition at line 28 of file SessionImpl.cc.

References m_session.

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

Implements cond::persistency::ITransaction.

Definition at line 24 of file SessionImpl.cc.

References m_session.

24  {
25  m_session->transaction().rollback();
26  }
boost::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:32

Member Data Documentation

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

Definition at line 32 of file SessionImpl.cc.

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