#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().
91 Statement* stmt =
m_conn->createStatement();
92 stmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
94 "FROM channelview cv JOIN run_FEConfig_dat d "
95 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
96 "WHERE d.iov_id = :iov_id");
97 stmt->setInt(1, iovID);
102 std::pair< EcalLogicID, RunFEConfigDat >
p;
104 while(rset->next()) {
118 m_conn->terminateStatement(stmt);
120 throw(std::runtime_error(
"RunFEConfigDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
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 |