#include <RunCommentDat.h>
Definition at line 11 of file RunCommentDat.h.
◆ RunCommentDat()
RunCommentDat::RunCommentDat |
( |
| ) |
|
Definition at line 14 of file RunCommentDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
◆ ~RunCommentDat()
RunCommentDat::~RunCommentDat |
( |
| ) |
|
|
override |
◆ fetchData()
Definition at line 60 of file RunCommentDat.cc.
References cuy::dh, MillePedeFileConverter_cfg::e, EcalLogicID::NULLID, AlCaHLTBitMon_ParallelJobs::p, setComment(), and setSource().
74 Statement* stmt =
m_conn->createStatement();
76 "SELECT d.comment_id, " 77 "d.source, d.user_comment, d.db_timestamp " 78 "FROM run_comment_dat d " 79 "WHERE d.iov_id = :iov_id order by d.logic_id ");
80 stmt->setInt(1, iovID);
81 ResultSet* rset = stmt->executeQuery();
83 std::pair<EcalLogicID, RunCommentDat>
p;
85 while (rset->next()) {
96 Date startDate = rset->getDate(4);
102 m_conn->terminateStatement(stmt);
103 }
catch (SQLException&
e) {
104 throw(std::runtime_error(
"RunCommentDat::fetchData(): " +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
◆ getComment()
std::string RunCommentDat::getComment |
( |
| ) |
const |
|
inline |
◆ getDBTime()
Tm RunCommentDat::getDBTime |
( |
| ) |
const |
|
inline |
◆ getSource()
std::string RunCommentDat::getSource |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string RunCommentDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ prepareWrite()
void RunCommentDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 25 of file RunCommentDat.cc.
References MillePedeFileConverter_cfg::e.
31 "INSERT INTO run_comment_dat (iov_id, " 32 "source, user_comment) " 34 ":source, :user_comment)");
35 }
catch (SQLException&
e) {
36 throw(std::runtime_error(
"RunCommentDat::prepareWrite(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
◆ setComment()
void RunCommentDat::setComment |
( |
std::string |
x | ) |
|
|
inline |
◆ setDBTime()
void RunCommentDat::setDBTime |
( |
const Tm & |
x | ) |
|
|
inline |
◆ setSource()
void RunCommentDat::setSource |
( |
std::string |
x | ) |
|
|
inline |
◆ writeDB()
Definition at line 40 of file RunCommentDat.cc.
References MillePedeFileConverter_cfg::e, and B2GTnPMonitor_cfi::item.
46 throw(std::runtime_error(
"RunCommentDat::writeDB: IOV not in DB"));
55 }
catch (SQLException&
e) {
56 throw(std::runtime_error(
"RunCommentDat::writeDB(): " +
e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
void checkPrepare() noexcept(false)
int fetchID() noexcept(false) override
◆ EcalCondDBInterface
◆ m_comment
std::string RunCommentDat::m_comment |
|
private |
◆ m_source
std::string RunCommentDat::m_source |
|
private |
◆ m_time