#include <RunConfigDat.h>
Definition at line 11 of file RunConfigDat.h.
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 |
( |
| ) |
|
|
override |
Definition at line 64 of file RunConfigDat.cc.
References dat, alignCSCRings::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
static std::vector< std::string > checklist dat
void setConfigTag(std::string tag)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
std::string RunConfigDat::getConfigTag |
( |
| ) |
const |
|
inline |
int RunConfigDat::getConfigVersion |
( |
| ) |
const |
|
inline |
std::string RunConfigDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
void RunConfigDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 23 of file RunConfigDat.cc.
References alignCSCRings::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)
void RunConfigDat::setConfigTag |
( |
std::string |
tag | ) |
|
|
inline |
void RunConfigDat::setConfigVersion |
( |
int |
ver | ) |
|
|
inline |
Definition at line 38 of file RunConfigDat.cc.
References alignCSCRings::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 getConfigVersion() const
std::string getConfigTag() const
int fetchID() noexcept(false) override
std::string RunConfigDat::m_configTag |
|
private |
int RunConfigDat::m_configVer |
|
private |