#include <RunFEConfigDat.h>
Definition at line 12 of file RunFEConfigDat.h.
RunFEConfigDat::RunFEConfigDat |
( |
| ) |
|
Definition at line 11 of file RunFEConfigDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunFEConfigDat::~RunFEConfigDat |
( |
| ) |
|
Definition at line 74 of file RunFEConfigDat.cc.
References alignCSCRings::e, o2o::iov, AlCaHLTBitMon_ParallelJobs::p, and setConfigId().
Referenced by EcalCondDBInterface::fetchFEDelaysForRun().
90 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
92 "FROM channelview cv JOIN run_FEConfig_dat d "
93 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
94 "WHERE d.iov_id = :iov_id");
98 std::pair< EcalLogicID, RunFEConfigDat >
p;
100 while(rset->next()) {
115 throw(std::runtime_error(
"RunFEConfigDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void terminateReadStatement()
oracle::occi::SQLException SQLException
void createReadStatement()
oracle::occi::Statement * m_readStmt
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
int RunFEConfigDat::getConfigId |
( |
| ) |
const |
|
inline |
std::string RunFEConfigDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void RunFEConfigDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 30 of file RunFEConfigDat.cc.
References alignCSCRings::e.
37 m_writeStmt->setSQL(
"INSERT INTO run_FEConfig_dat (iov_id, logic_id, "
39 "VALUES (:iov_id, :logic_id, "
42 throw(std::runtime_error(
"RunFEConfigDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void RunFEConfigDat::setConfigId |
( |
int |
x | ) |
|
|
inline |
Definition at line 48 of file RunFEConfigDat.cc.
References alignCSCRings::e, and o2o::iov.
55 if (!iovID) {
throw(std::runtime_error(
"RunFEConfigDat::writeDB: IOV not in DB")); }
58 if (!logicID) {
throw(std::runtime_error(
"RunFEConfigDat::writeDB: Bad EcalLogicID")); }
68 throw(std::runtime_error(
"RunFEConfigDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
void checkConnection() const
int RunFEConfigDat::m_config |
|
private |