CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cond::persistency::Transaction Class Reference

#include <Session.h>

Public Member Functions

void commit ()
 
bool isActive ()
 
Transactionoperator= (const Transaction &rhs)
 
void rollback ()
 
void start (bool readOnly=true)
 
 Transaction (const Transaction &rhs)
 
 Transaction (SessionImpl &session)
 

Private Attributes

SessionImplm_session
 

Detailed Description

Definition at line 44 of file Session.h.

Constructor & Destructor Documentation

◆ Transaction() [1/2]

cond::persistency::Transaction::Transaction ( SessionImpl session)
explicit

Definition at line 9 of file Session.cc.

9 : m_session(&session) {}

◆ Transaction() [2/2]

cond::persistency::Transaction::Transaction ( const Transaction rhs)

Definition at line 11 of file Session.cc.

11 : m_session(rhs.m_session) {}

Member Function Documentation

◆ commit()

void cond::persistency::Transaction::commit ( )

◆ isActive()

bool cond::persistency::Transaction::isActive ( )

◆ operator=()

Transaction & cond::persistency::Transaction::operator= ( const Transaction rhs)

Definition at line 13 of file Session.cc.

13  {
14  m_session = rhs.m_session;
15  return *this;
16  }

References m_session.

◆ rollback()

void cond::persistency::Transaction::rollback ( )

◆ start()

void cond::persistency::Transaction::start ( bool  readOnly = true)

Member Data Documentation

◆ m_session

SessionImpl* cond::persistency::Transaction::m_session
private

Definition at line 59 of file Session.h.

Referenced by commit(), isActive(), operator=(), rollback(), and start().

cond::persistency::SessionImpl::rollbackTransaction
void rollbackTransaction()
Definition: SessionImpl.cc:93
cond::persistency::SessionImpl::startTransaction
void startTransaction(bool readOnly=true)
Definition: SessionImpl.cc:62
cond::persistency::SessionImpl::isTransactionActive
bool isTransactionActive(bool deep=true) const
Definition: SessionImpl.cc:105
cond::persistency::Transaction::m_session
SessionImpl * m_session
Definition: Session.h:59
cond::persistency::SessionImpl::commitTransaction
void commitTransaction()
Definition: SessionImpl.cc:78