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 (SessionImpl &session)
 
 Transaction (const Transaction &rhs)
 

Private Attributes

SessionImplm_session
 

Detailed Description

Definition at line 44 of file Session.h.

Constructor & Destructor Documentation

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

Definition at line 9 of file Session.cc.

9  :
10  m_session( &session ){
11  }
cond::persistency::Transaction::Transaction ( const Transaction rhs)

Definition at line 13 of file Session.cc.

13  :
14  m_session( rhs.m_session ){
15  }

Member Function Documentation

void cond::persistency::Transaction::commit ( )
bool cond::persistency::Transaction::isActive ( )
Transaction & cond::persistency::Transaction::operator= ( const Transaction rhs)

Definition at line 17 of file Session.cc.

References m_session.

17  {
18  m_session = rhs.m_session;
19  return *this;
20  }
void cond::persistency::Transaction::rollback ( )
void cond::persistency::Transaction::start ( bool  readOnly = true)

Definition at line 22 of file Session.cc.

References m_session, and cond::persistency::SessionImpl::startTransaction().

Referenced by progressbar.ProgressBar::__next__(), SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffTrendPlotter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), l1t::OMDSReader::connect(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), cond::persistency::PayloadReader::fetch(), CondDBESSource::fillTagCollectionFromGT(), FillInfoPopConSourceHandler::getNewObjects(), LHCInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), popcon::PopCon::initialize(), cond::persistency::KeyList::load(), cond::persistency::BasePayloadProxy::loadTag(), l1t::OMDSReader::OMDSReader(), l1t::DataWriterExt::payloadToken(), l1t::DataWriter::payloadToken(), cond::payloadInspector::PlotBase::process(), L1ConfigOnlineProdBaseExt< TRcd, TData >::produce(), L1ConfigOnlineProdBase< TRcd, TData >::produce(), L1RCTOmdsFedVectorProducer::produce(), popcon::RPCEMapSourceHandler::readEMap1(), popcon::L1RPCHwConfigSourceHandler::readHwConfig1(), l1t::DataWriter::readObject(), cond::persistency::BasePayloadProxy::setIntervalFor(), and cond::persistency::TransactionScope::start().

22  {
23  m_session->startTransaction( readOnly );
24  }
void startTransaction(bool readOnly=true)
Definition: SessionImpl.cc:63

Member Data Documentation

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

Definition at line 58 of file Session.h.

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