#include <ODFEWeightsInfo.h>
Definition at line 9 of file ODFEWeightsInfo.h.
ODFEWeightsInfo::ODFEWeightsInfo |
( |
| ) |
|
ODFEWeightsInfo::~ODFEWeightsInfo |
( |
| ) |
|
|
override |
void ODFEWeightsInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 131 of file ODFEWeightsInfo.cc.
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getVersion().
137 throw(std::runtime_error(
"ODFEWeightsInfo::fetchData(): no Id defined for this ODFEWeightsInfo "));
142 if(result->
getId()!=0) {
144 " where rec_id = :1 ");
148 " where tag=:1 AND version=:2 " );
153 throw(std::runtime_error(
"ODFEWeightsInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
162 result->
setId(rset->getInt(1));
167 throw(std::runtime_error(
std::string(
"ODFEWeightsInfo::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 ODFEWeightsInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 171 of file ODFEWeightsInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getVersion().
182 stmt->setSQL(
"SELECT rec_id FROM "+
getTable()+
183 "WHERE tag=:1 and version=:2 " );
188 ResultSet* rset = stmt->executeQuery();
191 m_ID = rset->getInt(1);
195 m_conn->terminateStatement(stmt);
197 throw(std::runtime_error(
std::string(
"ODFEWeightsInfo::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 ODFEWeightsInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
int ODFEWeightsInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODFEWeightsInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int ODFEWeightsInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODFEWeightsInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void ODFEWeightsInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODFEWeightsInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 83 of file ODFEWeightsInfo.cc.
Referenced by getVersion().
88 for( std::map<std::string, std::string >::const_iterator ci=
89 my_keys_map.begin(); ci!=my_keys_map.end(); ci++ ) {
91 if(ci->first==
"VERSION")
setVersion(atoi(ci->second.c_str()) );
void setConfigTag(std::string x)
void ODFEWeightsInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODFEWeightsInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
int ODFEWeightsInfo::m_ID |
|
private |
int ODFEWeightsInfo::m_version |
|
private |