CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

IDataItem Class Reference

#include <IDataItem.h>

Inheritance diagram for IDataItem:
IDBObject CaliCrystalIntercalDat CaliGainRatioDat CaliGeneralDat CaliHVScanRatioDat CaliTempDat DCUCapsuleTempDat DCUCapsuleTempRawDat DCUCCSDat DCUIDarkDat DCUIDarkPedDat DCULVRBTempsDat DCULVRTempsDat DCULVRVoltagesDat DCUVFETempDat FEConfigFgrDat FEConfigFgrEEStripDat FEConfigFgrEETowerDat FEConfigFgrGroupDat FEConfigFgrParamDat FEConfigLinDat FEConfigLinParamDat FEConfigLUTDat FEConfigLUTGroupDat FEConfigLUTParamDat FEConfigParamDat FEConfigPedDat FEConfigSlidingDat FEConfigSpikeDat FEConfigTimingDat FEConfigWeightDat FEConfigWeightGroupDat ITimingDat MODCCSFEDat MODCCSHFDat MODCCSTRDat MODDCCDetailsDat MODDCCOperationDat 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 MonShapeQualityDat MonTestPulseDat MonTTConsistencyDat RunCommentDat RunConfigDat RunCrystalErrorsDat RunDat RunDCSHVDat RunDCSLVDat RunDCSMagnetDat RunFEConfigDat RunH4TablePositionDat RunLaserRunDat RunMemChErrorsDat RunMemTTErrorsDat RunPNErrorsDat RunPTMTempDat RunTPGConfigDat RunTTErrorsDat

List of all members.

Public Member Functions

virtual std::string getTable ()=0

Protected Member Functions

void checkPrepare () throw (std::runtime_error)
void createReadStatement () throw (std::runtime_error)
virtual void prepareWrite ()=0 throw (std::runtime_error)
void setPrefetchRowCount (int ncount) throw (std::runtime_error)
void terminateReadStatement () throw (std::runtime_error)
void terminateWriteStatement () throw (std::runtime_error)

Protected Attributes

oracle::occi::Statement * m_readStmt
oracle::occi::Statement * m_writeStmt

Detailed Description

Abstract interface for data in the conditions DB

Definition at line 16 of file IDataItem.h.


Member Function Documentation

void IDataItem::checkPrepare ( ) throw (std::runtime_error) [inline, protected]

Definition at line 27 of file IDataItem.h.

References m_writeStmt, and NULL.

Referenced by ITimingDat::writeArrayDB(), and ITimingDat::writeDB().

    {
      if (m_writeStmt == NULL) {
        throw(std::runtime_error("Write statement not prepared"));
      }
    }
void IDataItem::createReadStatement ( ) throw (std::runtime_error) [inline, protected]

Definition at line 46 of file IDataItem.h.

References IDBObject::m_conn, and m_readStmt.

  {
      m_readStmt=m_conn->createStatement();
  }
virtual std::string IDataItem::getTable ( ) [pure virtual]

Implemented in CaliCrystalIntercalDat, CaliGainRatioDat, CaliGeneralDat, CaliHVScanRatioDat, CaliTempDat, DCUCapsuleTempDat, DCUCapsuleTempRawDat, DCUCCSDat, DCUIDarkDat, DCUIDarkPedDat, DCULVRBTempsDat, DCULVRTempsDat, DCULVRVoltagesDat, DCUVFETempDat, FEConfigFgrDat, FEConfigFgrEEStripDat, FEConfigFgrEETowerDat, FEConfigFgrGroupDat, FEConfigFgrParamDat, FEConfigLinDat, FEConfigLinParamDat, FEConfigLUTDat, FEConfigLUTGroupDat, FEConfigLUTParamDat, FEConfigParamDat, FEConfigPedDat, FEConfigSlidingDat, FEConfigSpikeDat, FEConfigTimingDat, FEConfigWeightDat, FEConfigWeightGroupDat, ITimingDat, MODCCSFEDat, MODCCSHFDat, MODCCSTRDat, MODDCCDetailsDat, MODDCCOperationDat, 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, MonShapeQualityDat, MonTestPulseDat, MonTimingCrystalDat, MonTimingLaserBlueCrystalDat, MonTimingLaserBlueTTDat, MonTimingLaserGreenCrystalDat, MonTimingLaserGreenTTDat, MonTimingLaserIRedCrystalDat, MonTimingLaserIRedTTDat, MonTimingLaserRedCrystalDat, MonTimingLaserRedTTDat, MonTimingLed1CrystalDat, MonTimingLed1TTDat, MonTimingLed2CrystalDat, MonTimingLed2TTDat, MonTimingTTDat, MonTTConsistencyDat, RunCommentDat, RunConfigDat, RunCrystalErrorsDat, RunDat, RunDCSHVDat, RunDCSLVDat, RunDCSMagnetDat, RunFEConfigDat, RunH4TablePositionDat, RunLaserRunDat, RunMemChErrorsDat, RunMemTTErrorsDat, RunPNErrorsDat, RunPTMTempDat, RunTPGConfigDat, and RunTTErrorsDat.

virtual void IDataItem::prepareWrite ( ) throw (std::runtime_error) [protected, pure virtual]
void IDataItem::setPrefetchRowCount ( int  ncount) throw (std::runtime_error) [inline, protected]

Definition at line 52 of file IDataItem.h.

References m_readStmt.

  {
    m_readStmt->setPrefetchRowCount(ncount);
  }
void IDataItem::terminateReadStatement ( ) throw (std::runtime_error) [inline, protected]

Definition at line 58 of file IDataItem.h.

References gather_cfg::cout, IDBObject::m_conn, m_readStmt, and NULL.

  {
    if (m_readStmt != NULL) {
      m_conn->terminateStatement(m_readStmt);
    } else {
      std::cout << "Warning from IDataItem: statement was aleady closed"<< std::endl;
    }
  }
void IDataItem::terminateWriteStatement ( ) throw (std::runtime_error) [inline, protected]

Definition at line 35 of file IDataItem.h.

References gather_cfg::cout, IDBObject::m_conn, m_writeStmt, and NULL.

  {
    if (m_writeStmt != NULL) {
      m_conn->terminateStatement(m_writeStmt);
    } else {
      std::cout << "Warning from IDataItem: statement was aleady closed"<< std::endl;
    }
  }

Member Data Documentation

oracle::occi::Statement* IDataItem::m_readStmt [protected]
oracle::occi::Statement* IDataItem::m_writeStmt [protected]