#include <IDataItem.h>
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 |
Abstract interface for data in the conditions DB
Definition at line 16 of file IDataItem.h.
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] |
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, MonTTConsistencyDat, RunCommentDat, RunConfigDat, RunCrystalErrorsDat, RunDat, RunDCSHVDat, RunDCSLVDat, RunDCSMagnetDat, RunFEConfigDat, RunH4TablePositionDat, RunLaserRunDat, RunMemChErrorsDat, RunMemTTErrorsDat, RunPNErrorsDat, RunPTMTempDat, RunTPGConfigDat, and RunTTErrorsDat.
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; } }
oracle::occi::Statement* IDataItem::m_readStmt [protected] |
Definition at line 25 of file IDataItem.h.
Referenced by createReadStatement(), ITimingDat::fetchData(), ITimingDat::ITimingDat(), setPrefetchRowCount(), and terminateReadStatement().
oracle::occi::Statement* IDataItem::m_writeStmt [protected] |
Definition at line 24 of file IDataItem.h.
Referenced by checkPrepare(), ITimingDat::ITimingDat(), ITimingDat::prepareWrite(), terminateWriteStatement(), ITimingDat::writeArrayDB(), and ITimingDat::writeDB().