CMS 3D CMS Logo

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 () override
 
 CondDBTransaction (const std::shared_ptr< coral::ISessionProxy > &coralSession)
 
bool isActive () override
 
void rollback () override
 
 ~CondDBTransaction () override
 
- Public Member Functions inherited from cond::persistency::ITransaction
virtual ~ITransaction ()
 

Private Attributes

std::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 runInfoDbExists = false
 
bool runInfoDbOpen = true
 

Detailed Description

Definition at line 13 of file SessionImpl.cc.

Constructor & Destructor Documentation

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

Definition at line 15 of file SessionImpl.cc.

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

Definition at line 18 of file SessionImpl.cc.

18 {}

Member Function Documentation

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

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  }
std::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:32
bool cond::persistency::CondDBTransaction::isActive ( )
inlineoverridevirtual

Implements cond::persistency::ITransaction.

Definition at line 28 of file SessionImpl.cc.

References m_session.

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

Implements cond::persistency::ITransaction.

Definition at line 24 of file SessionImpl.cc.

References m_session.

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

Member Data Documentation

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

Definition at line 32 of file SessionImpl.cc.

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