#include <RunMemChErrorsDat.h>
Definition at line 12 of file RunMemChErrorsDat.h.
RunMemChErrorsDat::RunMemChErrorsDat |
( |
| ) |
|
Definition at line 11 of file RunMemChErrorsDat.cc.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::Statement * m_readStmt
RunMemChErrorsDat::~RunMemChErrorsDat |
( |
| ) |
|
|
override |
Definition at line 61 of file RunMemChErrorsDat.cc.
References dat, alignCSCRings::e, AlCaHLTBitMon_ParallelJobs::p, and setErrorBits().
75 "SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
76 "to_char(d.error_bits) "
77 "FROM channelview cv JOIN run_mem_ch_errors_dat d "
78 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
79 "WHERE d.iov_id = :iov_id");
83 std::pair<EcalLogicID, RunMemChErrorsDat>
p;
85 while (rset->next()) {
99 }
catch (SQLException&
e) {
100 throw(std::runtime_error(
"RunMemChErrorsDat::fetchData(): " + e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setErrorBits(uint64_t bits)
oracle::occi::Statement * m_readStmt
static std::vector< std::string > checklist dat
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
int fetchID() noexcept(false) override
uint64_t RunMemChErrorsDat::getErrorBits |
( |
| ) |
const |
|
inline |
std::string RunMemChErrorsDat::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
void RunMemChErrorsDat::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IDataItem.
Definition at line 21 of file RunMemChErrorsDat.cc.
References alignCSCRings::e.
28 "INSERT INTO run_mem_ch_errors_dat (iov_id, logic_id, "
30 "VALUES (:iov_id, :logic_id, "
31 "to_number(:error_bits))");
32 }
catch (SQLException&
e) {
33 throw(std::runtime_error(
"RunMemChErrorsDat::prepareWrite(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void RunMemChErrorsDat::setErrorBits |
( |
uint64_t |
bits | ) |
|
|
inline |
Definition at line 37 of file RunMemChErrorsDat.cc.
References alignCSCRings::e, B2GTnPMonitor_cfi::item, and cond::impl::to_string().
43 throw(std::runtime_error(
"RunMemChErrorsDat::writeDB: IOV not in DB"));
48 throw(std::runtime_error(
"RunMemChErrorsDat::writeDB: Bad EcalLogicID"));
56 }
catch (SQLException&
e) {
57 throw(std::runtime_error(
"RunMemChErrorsDat::writeDB(): " + e.getMessage()));
oracle::occi::Statement * m_writeStmt
void checkConnection() const noexcept(false)
std::string to_string(const V &value)
void checkPrepare() noexcept(false)
uint64_t getErrorBits() const
int fetchID() noexcept(false) override
uint64_t RunMemChErrorsDat::m_errorBits |
|
private |