#include <FEConfigBadStripInfo.h>
Definition at line 9 of file FEConfigBadStripInfo.h.
◆ FEConfigBadStripInfo()
FEConfigBadStripInfo::FEConfigBadStripInfo |
( |
| ) |
|
◆ ~FEConfigBadStripInfo()
FEConfigBadStripInfo::~FEConfigBadStripInfo |
( |
| ) |
|
|
override |
◆ clear()
void FEConfigBadStripInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 107 of file FEConfigBadStripInfo.cc.
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
110 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
111 throw(std::runtime_error(
"FEConfigBadStripInfo::fetchData(): no Id defined for this FEConfigBadStripInfo "));
115 if (
result->getId() != 0) {
118 }
else if (!
result->getConfigTag().empty()) {
124 throw(std::runtime_error(
"FEConfigBadStripInfo::fetchData(): no Id defined for this record "));
133 result->setId(rset->getInt(1));
134 result->setConfigTag(rset->getString(2));
135 result->setVersion(rset->getInt(3));
138 throw(std::runtime_error(
std::string(
"FEConfigBadStripInfo::fetchData(): ") +
e.getMessage()));
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::SQLException SQLException
◆ fetchID()
int FEConfigBadStripInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 142 of file FEConfigBadStripInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
152 stmt->setSQL(
"SELECT rec_id FROM " +
getTable() +
" WHERE tag=:1 and version=:2 ");
157 ResultSet* rset = stmt->executeQuery();
160 m_ID = rset->getInt(1);
164 m_conn->terminateStatement(stmt);
166 throw(std::runtime_error(
std::string(
"FEConfigBadStripInfo::fetchID: ") +
e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
std::string getTable() override
oracle::occi::SQLException SQLException
std::string getConfigTag()
◆ fetchNextId()
int FEConfigBadStripInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
◆ getId()
int FEConfigBadStripInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getTable()
std::string FEConfigBadStripInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getVersion()
int FEConfigBadStripInfo::getVersion |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void FEConfigBadStripInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setId()
void FEConfigBadStripInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setParameters()
void FEConfigBadStripInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 68 of file FEConfigBadStripInfo.cc.
72 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
73 if (ci->first ==
"VERSION")
75 if (ci->first ==
"TAG")
void setConfigTag(std::string x)
◆ setVersion()
void FEConfigBadStripInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
◆ writeDB()
void FEConfigBadStripInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 80 of file FEConfigBadStripInfo.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
92 throw(std::runtime_error(
std::string(
"FEConfigBadStripInfo::writeDB(): ") +
e.getMessage()));
96 throw(std::runtime_error(
"FEConfigBadStripInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
void fetchData(FEConfigBadStripInfo *result) noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
◆ EcalCondDBInterface
◆ m_ID
int FEConfigBadStripInfo::m_ID |
|
private |
◆ m_version
int FEConfigBadStripInfo::m_version |
|
private |