CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 int const ECALDB_NROWS =1024
 

Protected Member Functions

void checkConnection () const throw (std::runtime_error)
 

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

virtual IDBObject::~IDBObject ( )
inlinevirtual

Definition at line 20 of file IDBObject.h.

20 {}

Member Function Documentation

void IDBObject::checkConnection ( ) const
throw (std::runtime_error
)
inlineprotected

Definition at line 41 of file IDBObject.h.

References m_conn, and NULL.

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

43  {
44  if (m_conn == NULL) {
45  throw std::runtime_error("ERROR: Connection was not set");
46  }
47  }
oracle::occi::Connection * m_conn
Definition: IDBObject.h:39
#define NULL
Definition: scimark2.h:8
oracle::occi::Connection* IDBObject::getConn ( ) const
inline

Definition at line 32 of file IDBObject.h.

References m_conn.

32  {
33  return m_conn;
34  }
oracle::occi::Connection * m_conn
Definition: IDBObject.h:39
oracle::occi::Environment* IDBObject::getEnv ( ) const
inline

Definition at line 29 of file IDBObject.h.

References m_env.

29  {
30  return m_env;
31  }
oracle::occi::Environment * m_env
Definition: IDBObject.h:38
void IDBObject::setConnection ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)
inline

Definition at line 23 of file IDBObject.h.

References EcalDBConnection::conn, EcalDBConnection::env, m_conn, and m_env.

Referenced by LMFCorrVers::createObject(), LMFSeqVers::createObject(), LMFTrigType::createObject(), LMFIOV::createObject(), LMFPrimVers::createObject(), LMFRunTag::createObject(), LMFColor::createObject(), LocationDef::fetchAllDefs(), MonRunOutcomeDef::fetchAllDefs(), MonVersionDef::fetchAllDefs(), RunModeDef::fetchAllDefs(), RunTypeDef::fetchAllDefs(), RunSeqDef::fetchAllDefs(), MonRunTag::fetchAllTags(), DCUTag::fetchAllTags(), RunTag::fetchAllTags(), CaliTag::fetchAllTags(), LMFSeqDat::fetchByRunIOV(), LMFRunIOV::fetchBySequence(), EcalCondDBInterface::fetchCaliIOV(), MonRunDat::fetchData(), EcalCondDBInterface::fetchDCSPTMTempList(), EcalCondDBInterface::fetchDCUIOV(), EcalCondDBInterface::fetchGlobalRunListByLocation(), LMFCorrCoefDat::fetchLastInsertedRun(), EcalCondDBInterface::fetchLMFRunIOV(), EcalCondDBInterface::fetchMonRunIOV(), EcalCondDBInterface::fetchMonRunList(), EcalCondDBInterface::fetchMonRunListLastNRuns(), LMFSeqDat::fetchParentIDs(), EcalCondDBInterface::fetchRunIOV(), EcalCondDBInterface::fetchRunList(), EcalCondDBInterface::fetchRunListByLocation(), EcalCondDBInterface::fetchRunListLastNRuns(), LMFCorrCoefDat::find(), LMFRunIOV::getParameters(), LMFSeqDat::getParameters(), LMFDefFabric::LMFDefFabric(), LMFUnique::LMFUnique(), MonRunDat::writeDB(), and ODEcalCycle::writeDB().

24  {
25  m_env = env;
26  m_conn = conn;
27  }
oracle::occi::Environment * m_env
Definition: IDBObject.h:38
oracle::occi::Connection * m_conn
Definition: IDBObject.h:39

Friends And Related Function Documentation

friend class EcalCondDBInterface
friend

Definition at line 16 of file IDBObject.h.

Member Data Documentation

int const IDBObject::ECALDB_NROWS =1024
static
oracle::occi::Connection* IDBObject::m_conn
protected
oracle::occi::Environment* IDBObject::m_env
protected