#include <FEConfigBadXTInfo.h>
Definition at line 9 of file FEConfigBadXTInfo.h.
FEConfigBadXTInfo::FEConfigBadXTInfo |
( |
| ) |
|
FEConfigBadXTInfo::~FEConfigBadXTInfo |
( |
| ) |
|
|
override |
void FEConfigBadXTInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 130 of file FEConfigBadXTInfo.cc.
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getVersion().
136 throw(std::runtime_error(
"FEConfigBadXTInfo::fetchData(): no Id defined for this FEConfigBadXTInfo "));
142 if(result->
getId()!=0) {
144 " where rec_id = :1 ");
148 " where tag=:1 AND version=:2 " );
153 throw(std::runtime_error(
"FEConfigBadXTInfo::fetchData(): no Id defined for this record "));
163 result->
setId(rset->getInt(1));
168 throw(std::runtime_error(
std::string(
"FEConfigBadXTInfo::fetchData(): ")+e.getMessage()));
std::string getTable() override
void checkConnection() const noexcept(false)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
int FEConfigBadXTInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 172 of file FEConfigBadXTInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getVersion().
183 stmt->setSQL(
"SELECT rec_id FROM "+
getTable()+
184 "WHERE tag=:1 and version=:2 " );
189 ResultSet* rset = stmt->executeQuery();
192 m_ID = rset->getInt(1);
196 m_conn->terminateStatement(stmt);
198 throw(std::runtime_error(
std::string(
"FEConfigBadXTInfo::fetchID: ")+e.getMessage()));
oracle::occi::Connection * m_conn
std::string getTable() override
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
int FEConfigBadXTInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
int FEConfigBadXTInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string FEConfigBadXTInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int FEConfigBadXTInfo::getVersion |
( |
| ) |
const |
|
inline |
void FEConfigBadXTInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void FEConfigBadXTInfo::setId |
( |
int |
id | ) |
|
|
inline |
void FEConfigBadXTInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 82 of file FEConfigBadXTInfo.cc.
Referenced by getVersion().
87 for( std::map<std::string, std::string >::const_iterator ci=
88 my_keys_map.begin(); ci!=my_keys_map.end(); ci++ ) {
90 if(ci->first==
"VERSION")
setVersion(atoi(ci->second.c_str()) );
void setConfigTag(std::string x)
void FEConfigBadXTInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void FEConfigBadXTInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
int FEConfigBadXTInfo::m_ID |
|
private |
int FEConfigBadXTInfo::m_version |
|
private |