#include <ODFEPedestalOffsetInfo.h>
Definition at line 9 of file ODFEPedestalOffsetInfo.h.
ODFEPedestalOffsetInfo::ODFEPedestalOffsetInfo |
( |
| ) |
|
ODFEPedestalOffsetInfo::~ODFEPedestalOffsetInfo |
( |
| ) |
|
|
override |
void ODFEPedestalOffsetInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 109 of file ODFEPedestalOffsetInfo.cc.
References alignCSCRings::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
113 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::fetchData(): no Id defined for this ODFEPedestalOffsetInfo "));
117 if (result->
getId() != 0) {
126 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::fetchData(): no Id defined for this record "));
135 result->
setId(rset->getInt(1));
140 throw(std::runtime_error(
std::string(
"ODFEPedestalOffsetInfo::fetchData(): ") + e.getMessage()));
void checkConnection() const noexcept(false)
std::string getTable() override
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
int ODFEPedestalOffsetInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 163 of file ODFEPedestalOffsetInfo.cc.
References alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
173 stmt->setSQL(
"SELECT rec_id FROM " +
getTable() +
"WHERE tag=:1 and version=:2 ");
178 ResultSet* rset = stmt->executeQuery();
181 m_ID = rset->getInt(1);
185 m_conn->terminateStatement(stmt);
187 throw(std::runtime_error(
std::string(
"ODFEPedestalOffsetInfo::fetchID: ") + e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
int ODFEPedestalOffsetInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
int ODFEPedestalOffsetInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODFEPedestalOffsetInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int ODFEPedestalOffsetInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODFEPedestalOffsetInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void ODFEPedestalOffsetInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODFEPedestalOffsetInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 69 of file ODFEPedestalOffsetInfo.cc.
73 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
74 if (ci->first ==
"VERSION")
76 if (ci->first ==
"TAG")
void setConfigTag(std::string x)
void ODFEPedestalOffsetInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODFEPedestalOffsetInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 81 of file ODFEPedestalOffsetInfo.cc.
References gather_cfg::cout, alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
93 throw(std::runtime_error(
std::string(
"ODFEPedestalOffsetInfo::writeDB(): ") + e.getMessage()));
98 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
void fetchData(ODFEPedestalOffsetInfo *result) noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
int ODFEPedestalOffsetInfo::m_ID |
|
private |
int ODFEPedestalOffsetInfo::m_version |
|
private |