#include <CaliGeneralDat.h>
Definition at line 12 of file CaliGeneralDat.h.
CaliGeneralDat::CaliGeneralDat |
( |
| ) |
|
Definition at line 12 of file CaliGeneralDat.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
CaliGeneralDat::~CaliGeneralDat |
( |
| ) |
|
Definition at line 75 of file CaliGeneralDat.cc.
References alignCSCRings::e, o2o::iov, AlCaHLTBitMon_ParallelJobs::p, setComments(), and setNumEvents().
90 m_readStmt->setSQL(
"SELECT cv.name, cv.logic_id, cv.id1, cv.id2, cv.id3, cv.maps_to, "
91 "d.num_events, d.comments "
92 "FROM channelview cv JOIN cali_general_dat d "
93 "ON cv.logic_id = d.logic_id AND cv.name = cv.maps_to "
94 "WHERE d.iov_id = :iov_id");
98 std::pair< EcalLogicID, CaliGeneralDat >
p;
100 while(rset->next()) {
115 throw(std::runtime_error(
"CaliGeneralDat::fetchData(): "+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void setComments(std::string comments)
oracle::occi::Statement * m_readStmt
oracle::occi::ResultSet ResultSet
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
void checkConnection() const
std::string CaliGeneralDat::getComments |
( |
| ) |
const |
|
inline |
int CaliGeneralDat::getNumEvents |
( |
| ) |
const |
|
inline |
std::string CaliGeneralDat::getTable |
( |
| ) |
|
|
inlinevirtual |
void CaliGeneralDat::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IDataItem.
Definition at line 30 of file CaliGeneralDat.cc.
References alignCSCRings::e.
37 m_writeStmt->setSQL(
"INSERT INTO cali_general_dat (iov_id, logic_id, "
38 "num_events, comments) "
39 "VALUES (:iov_id, :logic_id, "
42 throw(std::runtime_error(
"CaliGeneralDat::prepareWrite(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void CaliGeneralDat::setComments |
( |
std::string |
comments | ) |
|
|
inline |
void CaliGeneralDat::setNumEvents |
( |
int |
n | ) |
|
|
inline |
Definition at line 48 of file CaliGeneralDat.cc.
References alignCSCRings::e, and o2o::iov.
55 if (!iovID) {
throw(std::runtime_error(
"CaliGeneralDat::writeDB: IOV not in DB")); }
58 if (!logicID) {
throw(std::runtime_error(
"CaliGeneralDat::writeDB: Bad EcalLogicID")); }
69 throw(std::runtime_error(
"CaliGeneralDat::writeDB(): "+e.getMessage()));
oracle::occi::Statement * m_writeStmt
std::string getComments() const
oracle::occi::SQLException SQLException
void checkConnection() const
std::string CaliGeneralDat::m_comments |
|
private |
int CaliGeneralDat::m_numEvents |
|
private |