#include <ODFEDelaysInfo.h>
Definition at line 9 of file ODFEDelaysInfo.h.
◆ ODFEDelaysInfo()
ODFEDelaysInfo::ODFEDelaysInfo |
( |
| ) |
|
Definition at line 12 of file ODFEDelaysInfo.cc.
References clear().
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
◆ ~ODFEDelaysInfo()
ODFEDelaysInfo::~ODFEDelaysInfo |
( |
| ) |
|
|
override |
◆ clear()
void ODFEDelaysInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 110 of file ODFEDelaysInfo.cc.
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
114 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
115 throw(std::runtime_error(
"ODFEDelaysInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
119 if (
result->getId() != 0) {
122 }
else if (!
result->getConfigTag().empty()) {
128 throw(std::runtime_error(
"ODFEDelaysInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
136 result->setId(rset->getInt(1));
137 result->setConfigTag(rset->getString(2));
138 result->setVersion(rset->getInt(3));
141 throw(std::runtime_error(
std::string(
"ODFEDelaysInfo::fetchData(): ") +
e.getMessage()));
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::SQLException SQLException
◆ fetchID()
int ODFEDelaysInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 145 of file ODFEDelaysInfo.cc.
References MillePedeFileConverter_cfg::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()
◆ fetchNextId()
int ODFEDelaysInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
◆ getId()
int ODFEDelaysInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getTable()
std::string ODFEDelaysInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getVersion()
int ODFEDelaysInfo::getVersion |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODFEDelaysInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setId()
void ODFEDelaysInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setParameters()
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)
◆ setVersion()
void ODFEDelaysInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
◆ writeDB()
void ODFEDelaysInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 82 of file ODFEDelaysInfo.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::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)
◆ EcalCondDBInterface
◆ m_ID
◆ m_version
int ODFEDelaysInfo::m_version |
|
private |