#include <ODFEDelaysInfo.h>
Definition at line 9 of file ODFEDelaysInfo.h.
ODFEDelaysInfo::ODFEDelaysInfo |
( |
| ) |
|
Definition at line 12 of file ODFEDelaysInfo.cc.
References clear().
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
ODFEDelaysInfo::~ODFEDelaysInfo |
( |
| ) |
|
|
override |
void ODFEDelaysInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 110 of file ODFEDelaysInfo.cc.
References alignCSCRings::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
115 throw(std::runtime_error(
"ODFEDelaysInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
119 if (result->
getId() != 0) {
128 throw(std::runtime_error(
"ODFEDelaysInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
136 result->
setId(rset->getInt(1));
141 throw(std::runtime_error(
std::string(
"ODFEDelaysInfo::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 ODFEDelaysInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 145 of file ODFEDelaysInfo.cc.
References alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
155 stmt->setSQL(
"SELECT rec_id FROM " +
getTable() +
"WHERE tag=:1 and version=:2 ");
160 ResultSet* rset = stmt->executeQuery();
163 m_ID = rset->getInt(1);
167 m_conn->terminateStatement(stmt);
169 throw(std::runtime_error(
std::string(
"ODFEDelaysInfo::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 ODFEDelaysInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
int ODFEDelaysInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODFEDelaysInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int ODFEDelaysInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODFEDelaysInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void ODFEDelaysInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODFEDelaysInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 70 of file ODFEDelaysInfo.cc.
74 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
75 if (ci->first ==
"VERSION")
77 if (ci->first ==
"TAG")
void setConfigTag(std::string x)
void ODFEDelaysInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODFEDelaysInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 82 of file ODFEDelaysInfo.cc.
References gather_cfg::cout, alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
94 throw(std::runtime_error(
std::string(
"ODFEDelaysInfo::writeDB(): ") + e.getMessage()));
99 throw(std::runtime_error(
"ODFEDelaysInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
void fetchData(ODFEDelaysInfo *result) noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
int ODFEDelaysInfo::m_version |
|
private |