#include <FEConfigBadTTInfo.h>
Definition at line 9 of file FEConfigBadTTInfo.h.
FEConfigBadTTInfo::FEConfigBadTTInfo |
( |
| ) |
|
FEConfigBadTTInfo::~FEConfigBadTTInfo |
( |
| ) |
|
|
override |
void FEConfigBadTTInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 107 of file FEConfigBadTTInfo.cc.
References alignCSCRings::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
111 throw(std::runtime_error(
"FEConfigBadTTInfo::fetchData(): no Id defined for this FEConfigBadTTInfo "));
115 if (result->
getId() != 0) {
124 throw(std::runtime_error(
"FEConfigBadTTInfo::fetchData(): no Id defined for this record "));
133 result->
setId(rset->getInt(1));
138 throw(std::runtime_error(
std::string(
"FEConfigBadTTInfo::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 FEConfigBadTTInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 142 of file FEConfigBadTTInfo.cc.
References alignCSCRings::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(
"FEConfigBadTTInfo::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 FEConfigBadTTInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
int FEConfigBadTTInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string FEConfigBadTTInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int FEConfigBadTTInfo::getVersion |
( |
| ) |
const |
|
inline |
void FEConfigBadTTInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void FEConfigBadTTInfo::setId |
( |
int |
id | ) |
|
|
inline |
void FEConfigBadTTInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 68 of file FEConfigBadTTInfo.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)
void FEConfigBadTTInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void FEConfigBadTTInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 80 of file FEConfigBadTTInfo.cc.
References gather_cfg::cout, alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
92 throw(std::runtime_error(
std::string(
"FEConfigBadTTInfo::writeDB(): ") + e.getMessage()));
96 throw(std::runtime_error(
"FEConfigBadTTInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
void fetchData(FEConfigBadTTInfo *result) noexcept(false)
std::string getConfigTag()
void checkPrepare() noexcept(false)
int fetchID() noexcept(false)
int FEConfigBadTTInfo::m_ID |
|
private |
int FEConfigBadTTInfo::m_version |
|
private |