CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 () 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 = false
 

Detailed Description

Definition at line 18 of file SessionImpl.cc.

Constructor & Destructor Documentation

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

Definition at line 20 of file SessionImpl.cc.

20 : m_session(coralSession) {}
std::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:30
cond::persistency::CondDBTransaction::~CondDBTransaction ( )
inlineoverride

Definition at line 21 of file SessionImpl.cc.

21 {}

Member Function Documentation

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

Implements cond::persistency::ITransaction.

Definition at line 23 of file SessionImpl.cc.

References m_session.

Referenced by querying.connection::write_and_commit().

23 { m_session->transaction().commit(); }
std::shared_ptr< coral::ISessionProxy > m_session
Definition: SessionImpl.cc:30
bool cond::persistency::CondDBTransaction::isActive ( )
inlineoverridevirtual

Implements cond::persistency::ITransaction.

Definition at line 27 of file SessionImpl.cc.

References m_session.

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

Implements cond::persistency::ITransaction.

Definition at line 25 of file SessionImpl.cc.

References m_session.

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

Member Data Documentation

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

Definition at line 30 of file SessionImpl.cc.

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