CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends
IDBObject Class Reference

#include <IDBObject.h>

Inheritance diagram for IDBObject:
DCSPTMTemp DCSPTMTempList IDataItem IODConfig IUniqueDBObject LMFDefFabric MonRunList RunList

Public Member Functions

oracle::occi::Connection * getConn () const
 
oracle::occi::Environment * getEnv () const
 
void setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
virtual ~IDBObject ()
 

Static Public Attributes

static const int ECALDB_NROWS = 1024
 

Protected Member Functions

void checkConnection () const noexcept(false)
 

Protected Attributes

oracle::occi::Connection * m_conn
 
oracle::occi::Environment * m_env
 

Friends

class EcalCondDBInterface
 

Detailed Description

Abstract base class for objects storable in the database

Definition at line 13 of file IDBObject.h.

Constructor & Destructor Documentation

◆ ~IDBObject()

virtual IDBObject::~IDBObject ( )
inlinevirtual

Definition at line 20 of file IDBObject.h.

20 {}

Member Function Documentation

◆ checkConnection()

void IDBObject::checkConnection ( ) const
inlineprotectednoexcept

Definition at line 36 of file IDBObject.h.

36  {
37  if (m_conn == nullptr) {
38  throw std::runtime_error("ERROR: Connection was not set");
39  }
40  }

References m_conn.

Referenced by ITimingDat::fetchData(), ITimingDat::prepareWrite(), ITimingDat::writeArrayDB(), ITimingDat::writeDB(), and LMFDat::writeDB().

◆ getConn()

oracle::occi::Connection* IDBObject::getConn ( ) const
inline

Definition at line 29 of file IDBObject.h.

29 { return m_conn; }

References m_conn.

◆ getEnv()

oracle::occi::Environment* IDBObject::getEnv ( ) const
inline

Definition at line 28 of file IDBObject.h.

28 { return m_env; }

References m_env.

◆ setConnection()

void IDBObject::setConnection ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)
inline

Friends And Related Function Documentation

◆ EcalCondDBInterface

friend class EcalCondDBInterface
friend

Definition at line 16 of file IDBObject.h.

Member Data Documentation

◆ ECALDB_NROWS

const int IDBObject::ECALDB_NROWS = 1024
static

◆ m_conn

oracle::occi::Connection* IDBObject::m_conn
protected

◆ m_env

oracle::occi::Environment* IDBObject::m_env
protected
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
IDBObject::m_conn
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
web.browse_db.env
env
Definition: browse_db.py:18
IDBObject::m_env
oracle::occi::Environment * m_env
Definition: IDBObject.h:33