#include <RunConfigDat.h>
Definition at line 11 of file RunConfigDat.h.
RunConfigDat::RunConfigDat |
( |
| ) |
|
Definition at line 11 of file RunConfigDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunConfigDat::~RunConfigDat |
( |
| ) |
|
Definition at line 74 of file RunConfigDat.cc.
References alignCSCRings::e, o2o::iov, AlCaHLTBitMon_ParallelJobs::p, setConfigTag(), and setConfigVersion().
89 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
90 "d.config_tag, d.config_ver "
91 "FROM channelview cv JOIN run_config_dat d "
92 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
93 "WHERE d.iov_id = :iov_id");
97 std::pair< EcalLogicID, RunConfigDat >
p;
114 throw(std::runtime_error(
"RunConfigDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setConfigVersion(int ver)
oracle::occi::SQLException SQLException
oracle::occi::Statement * m_readStmt
oracle::occi::ResultSet ResultSet
void setConfigTag(std::string tag)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
std::string RunConfigDat::getConfigTag |
( |
| ) |
const |
|
inline |
int RunConfigDat::getConfigVersion |
( |
| ) |
const |
|
inline |
std::string RunConfigDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void RunConfigDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 30 of file RunConfigDat.cc.
References alignCSCRings::e.
37 m_writeStmt->setSQL(
"INSERT INTO run_config_dat (iov_id, logic_id, "
38 "config_tag, config_ver) "
39 "VALUES (:iov_id, :logic_id, "
40 ":config_tag, :config_ver)");
42 throw(std::runtime_error(
"RunConfigDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void RunConfigDat::setConfigTag |
( |
std::string |
tag | ) |
|
|
inline |
void RunConfigDat::setConfigVersion |
( |
int |
ver | ) |
|
|
inline |
Definition at line 48 of file RunConfigDat.cc.
References alignCSCRings::e, and o2o::iov.
55 if (!iovID) {
throw(std::runtime_error(
"RunConfigDat::writeDB: IOV not in DB")); }
58 if (!logicID) {
throw(std::runtime_error(
"RunConfigDat::writeDB: Bad EcalLogicID")); }
68 throw(std::runtime_error(
"RunConfigDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::SQLException SQLException
int getConfigVersion() const
std::string getConfigTag() const
void checkConnection() const
std::string RunConfigDat::m_configTag |
|
private |
int RunConfigDat::m_configVer |
|
private |