#include <RunConfigDat.h>
Definition at line 11 of file RunConfigDat.h.
◆ RunConfigDat()
RunConfigDat::RunConfigDat |
( |
| ) |
|
Definition at line 11 of file RunConfigDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
◆ ~RunConfigDat()
RunConfigDat::~RunConfigDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 64 of file RunConfigDat.cc.
References MillePedeFileConverter_cfg::e, AlCaHLTBitMon_ParallelJobs::p, setConfigTag(), and setConfigVersion().
77 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, " 78 "d.config_tag, d.config_ver " 79 "FROM channelview cv JOIN run_config_dat d " 80 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to " 81 "WHERE d.iov_id = :iov_id");
85 std::pair<EcalLogicID, RunConfigDat>
p;
87 while (rset->next()) {
101 }
catch (SQLException&
e) {
102 throw(std::runtime_error(
"RunConfigDat::fetchData(): " +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setConfigVersion(int ver)
void checkConnection() const noexcept(false)
oracle::occi::Statement * m_readStmt
void setConfigTag(std::string tag)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
◆ getConfigTag()
std::string RunConfigDat::getConfigTag |
( |
| ) |
const |
|
inline |
◆ getConfigVersion()
int RunConfigDat::getConfigVersion |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunConfigDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunConfigDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 23 of file RunConfigDat.cc.
References MillePedeFileConverter_cfg::e.
29 "INSERT INTO run_config_dat (iov_id, logic_id, " 30 "config_tag, config_ver) " 31 "VALUES (:iov_id, :logic_id, " 32 ":config_tag, :config_ver)");
33 }
catch (SQLException&
e) {
34 throw(std::runtime_error(
"RunConfigDat::prepareWrite(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
◆ setConfigTag()
void RunConfigDat::setConfigTag |
( |
std::string |
tag | ) |
|
|
inline |
◆ setConfigVersion()
void RunConfigDat::setConfigVersion |
( |
int |
ver | ) |
|
|
inline |
◆ writeDB()
Definition at line 38 of file RunConfigDat.cc.
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
44 throw(std::runtime_error(
"RunConfigDat::writeDB: IOV not in DB"));
49 throw(std::runtime_error(
"RunConfigDat::writeDB: Bad EcalLogicID"));
59 }
catch (SQLException&
e) {
60 throw(std::runtime_error(
"RunConfigDat::writeDB(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
◆ EcalCondDBInterface
◆ m_configTag
std::string RunConfigDat::m_configTag |
|
private |
◆ m_configVer
int RunConfigDat::m_configVer |
|
private |