#include <FEConfigWeightInfo.h>
Definition at line 11 of file FEConfigWeightInfo.h.
FEConfigWeightInfo::FEConfigWeightInfo |
( |
| ) |
|
FEConfigWeightInfo::~FEConfigWeightInfo |
( |
| ) |
|
|
override |
void FEConfigWeightInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 128 of file FEConfigWeightInfo.cc.
References DateHandler::dateToTm(), cuy::dh, MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
134 throw(std::runtime_error(
"FEConfigWeightInfo::fetchData(): no Id defined for this FEConfigWeightInfo "));
141 " where ( wei_conf_id= :1 or (tag=:2 AND version=:3 ) )" );
151 result->
setId(rset->getInt(1));
155 Date dbdate = rset->getDate(5);
159 throw(std::runtime_error(
std::string(
"FEConfigWeightInfo::fetchData(): ")+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
std::string getTable() override
void setDBTime(const Tm &x)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
void setNumberOfGroups(int n)
std::string getConfigTag()
int FEConfigWeightInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 189 of file FEConfigWeightInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDBTime().
200 stmt->setSQL(
"SELECT wei_conf_id FROM "+
getTable()+
201 " WHERE tag=:1 and version=:2 " );
206 ResultSet* rset = stmt->executeQuery();
209 m_ID = rset->getInt(1);
213 m_conn->terminateStatement(stmt);
215 throw(std::runtime_error(
std::string(
"FEConfigWeightInfo::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 FEConfigWeightInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
Tm FEConfigWeightInfo::getDBTime |
( |
| ) |
const |
|
inline |
int FEConfigWeightInfo::getId |
( |
void |
| ) |
const |
|
inline |
int FEConfigWeightInfo::getID |
( |
| ) |
|
|
inline |
int FEConfigWeightInfo::getNumberOfGroups |
( |
| ) |
const |
|
inline |
std::string FEConfigWeightInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int FEConfigWeightInfo::getVersion |
( |
| ) |
const |
|
inline |
void FEConfigWeightInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void FEConfigWeightInfo::setByID |
( |
int |
id | ) |
|
|
noexcept |
Definition at line 223 of file FEConfigWeightInfo.cc.
References DateHandler::dateToTm(), cuy::dh, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDBTime().
233 stmt->setSQL(
"SELECT * FROM fe_config_weight_info WHERE wei_conf_id = :1");
236 ResultSet* rset = stmt->executeQuery();
238 this->
setId(rset->getInt(1));
242 Date dbdate = rset->getDate(5);
245 throw(std::runtime_error(
"FEConfigWeightInfo::setByID: Given config_id is not in the database"));
248 m_conn->terminateStatement(stmt);
250 throw(std::runtime_error(
std::string(
"FEConfigWeightInfo::setByID: ")+e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
void setDBTime(const Tm &x)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
void setNumberOfGroups(int n)
void FEConfigWeightInfo::setDBTime |
( |
const Tm & |
x | ) |
|
|
inline |
void FEConfigWeightInfo::setId |
( |
int |
id | ) |
|
|
inline |
void FEConfigWeightInfo::setID |
( |
int |
id | ) |
|
|
inline |
void FEConfigWeightInfo::setNumberOfGroups |
( |
int |
n | ) |
|
|
inline |
void FEConfigWeightInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 84 of file FEConfigWeightInfo.cc.
Referenced by setDBTime().
89 for( std::map<std::string, std::string >::const_iterator ci=
90 my_keys_map.begin(); ci!=my_keys_map.end(); ci++ ) {
92 if(ci->first==
"VERSION")
setVersion(atoi(ci->second.c_str()) );
void setConfigTag(std::string x)
void setNumberOfGroups(int n)
void FEConfigWeightInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void FEConfigWeightInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 100 of file FEConfigWeightInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
117 throw(std::runtime_error(
std::string(
"FEConfigWeightInfo::writeDB(): ")+e.getMessage()));
121 throw(std::runtime_error(
"FEConfigWeightInfo::writeDB: Failed to write"));
void checkConnection() const noexcept(false)
int getNumberOfGroups() const
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
int fetchID() noexcept(false)
Tm FEConfigWeightInfo::m_db_time |
|
private |
int FEConfigWeightInfo::m_ID |
|
private |
int FEConfigWeightInfo::m_ngr |
|
private |
int FEConfigWeightInfo::m_version |
|
private |