CMS 3D CMS Logo

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

List of all members.

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 ( ) [inline, virtual]

Definition at line 20 of file IDBObject.h.

{}

Member Function Documentation

void IDBObject::checkConnection ( ) const throw (std::runtime_error) [inline, protected]

Definition at line 41 of file IDBObject.h.

References m_conn, and NULL.

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

    {
      if (m_conn == NULL) {
        throw std::runtime_error("ERROR:  Connection was not set");
      }
    }
oracle::occi::Connection* IDBObject::getConn ( ) const [inline]

Definition at line 32 of file IDBObject.h.

References m_conn.

                                                {
    return m_conn;
  }
oracle::occi::Environment* IDBObject::getEnv ( ) const [inline]

Definition at line 29 of file IDBObject.h.

References m_env.

                                                {
    return m_env;
  }
void IDBObject::setConnection ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
) [inline]

Friends And Related Function Documentation

friend class EcalCondDBInterface [friend]

Reimplemented in CaliCrystalIntercalDat, CaliGainRatioDat, CaliGeneralDat, CaliHVScanRatioDat, CaliIOV, CaliTag, CaliTempDat, DCSPTMTemp, DCSPTMTempList, DCUCapsuleTempDat, DCUCapsuleTempRawDat, DCUCCSDat, DCUIDarkDat, DCUIDarkPedDat, DCUIOV, DCULVRBTempsDat, DCULVRTempsDat, DCULVRVoltagesDat, DCUTag, DCUVFETempDat, FEConfigBadStripDat, FEConfigBadStripInfo, FEConfigBadTTDat, FEConfigBadTTInfo, FEConfigBadXTDat, FEConfigBadXTInfo, FEConfigFgrDat, FEConfigFgrEEStripDat, FEConfigFgrEETowerDat, FEConfigFgrGroupDat, FEConfigFgrInfo, FEConfigFgrParamDat, FEConfigLinDat, FEConfigLinInfo, FEConfigLinParamDat, FEConfigLUTDat, FEConfigLUTGroupDat, FEConfigLUTInfo, FEConfigLUTParamDat, FEConfigMainInfo, FEConfigParamDat, FEConfigPedDat, FEConfigPedInfo, FEConfigSlidingDat, FEConfigSlidingInfo, FEConfigSpikeDat, FEConfigSpikeInfo, FEConfigTimingDat, FEConfigTimingInfo, FEConfigWeightDat, FEConfigWeightGroupDat, FEConfigWeightInfo, ITimingDat, LMFColor, LMFCorrCoefDatComponent, LMFDat, LMFIOV, LMFLmrSubIOV, LMFRunIOV, LMFSeqDat, LMFTrigType, LMFUnique, LocationDef, MODCCSFEDat, MODCCSHFDat, MODCCSTRDat, MODDCCDetailsDat, MODDCCOperationDat, MODRunIOV, MonCrystalConsistencyDat, MonDelaysTTDat, MonH4TablePositionDat, MonLaserBlueDat, MonLaserGreenDat, MonLaserIRedDat, MonLaserPulseDat, MonLaserRedDat, MonLaserStatusDat, MonLed1Dat, MonLed2Dat, MonMemChConsistencyDat, MonMemTTConsistencyDat, MonOccupancyDat, MonPedestalOffsetsDat, MonPedestalsDat, MonPedestalsOnlineDat, MonPNBlueDat, MonPNGreenDat, MonPNIRedDat, MonPNLed1Dat, MonPNLed2Dat, MonPNMGPADat, MonPNPedDat, MonPNRedDat, MonPulseShapeDat, MonRunDat, MonRunIOV, MonRunList, MonRunOutcomeDef, MonRunTag, MonShapeQualityDat, MonTestPulseDat, MonTTConsistencyDat, MonVersionDef, ODBadTTDat, ODBadTTInfo, ODBadXTDat, ODBadXTInfo, ODCCSConfig, ODCCSCycle, ODCond2ConfInfo, ODDCCConfig, ODDCCCycle, ODDCUConfig, ODDCUCycle, ODDelaysDat, ODEcalCycle, ODFEDAQConfig, ODFEDelaysInfo, ODFEPedestalOffsetInfo, ODFEWeightsInfo, ODGolBiasCurrentDat, ODGolBiasCurrentInfo, ODJBH4Config, ODJBH4Cycle, ODLaserConfig, ODLaserCycle, ODLTCConfig, ODLTCCycle, ODLTSConfig, ODLTSCycle, ODPedestalOffsetsDat, ODRunConfigCycleInfo, ODRunConfigInfo, ODRunConfigSeqInfo, ODScanConfig, ODScanCycle, ODSRPConfig, ODSRPCycle, ODTCCConfig, ODTCCCycle, ODTCCEEConfig, ODTCCEECycle, ODTowersToByPassDat, ODTowersToByPassInfo, ODTTCciConfig, ODTTCciCycle, ODTTCFConfig, ODTTCFCycle, ODVfeToRejectDat, ODVfeToRejectInfo, ODWeightsDat, ODWeightsSamplesDat, RunCommentDat, RunConfigDat, RunCrystalErrorsDat, RunDat, RunDCSHVDat, RunDCSLVDat, RunDCSMagnetDat, RunFEConfigDat, RunH4TablePositionDat, RunIOV, RunLaserRunDat, RunList, RunMemChErrorsDat, RunMemTTErrorsDat, RunModeDef, RunPNErrorsDat, RunPTMTempDat, RunSeqDef, RunTag, RunTPGConfigDat, RunTTErrorsDat, and RunTypeDef.

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]