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

◆ 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.

References m_session.

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

◆ rollback()

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

◆ start()

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

Definition at line 18 of file Session.cc.

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

Referenced by progressbar.ProgressBar::__next__(), SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripPayloadHandler< SiStripPayload >::analyze(), SiStripDetVOffTrendPlotter::analyze(), BeamSpotRcdPrinter::analyze(), FastSiPixelFEDChannelContainerFromQuality::analyze(), l1t::OMDSReader::connect(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), cond::persistency::PayloadReader::fetch(), CondDBESSource::fillTagCollectionFromGT(), FillInfoPopConSourceHandler::getNewObjects(), LHCInfoPopConSourceHandler::getNewObjects(), DTLVStatusHandler::getNewObjects(), DTHVStatusHandler::getNewObjects(), LHCInfoPerLSPopConSourceHandler::getNewObjects(), LHCInfoPerFillPopConSourceHandler::getNewObjects(), popcon::PopCon::initialize(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::make(), l1t::OMDSReader::OMDSReader(), l1t::DataWriter::payloadToken(), l1t::DataWriterExt::payloadToken(), L1RCTOmdsFedVectorProducer::produce(), l1t::DataWriter::readObject(), l1t::DataWriterExt::readObject(), l1t::WriterProxyT< Record, Type >::save(), cond::persistency::TransactionScope::start(), and l1t::DataWriterExt::writeKeyList().

18  {
19  if (m_session)
20  m_session->startTransaction(readOnly);
21  }
void startTransaction(bool readOnly=true)
Definition: SessionImpl.cc:62

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().