#include <FEConfigWeightInfo.h>
Definition at line 11 of file FEConfigWeightInfo.h.
◆ FEConfigWeightInfo()
FEConfigWeightInfo::FEConfigWeightInfo |
( |
| ) |
|
◆ ~FEConfigWeightInfo()
FEConfigWeightInfo::~FEConfigWeightInfo |
( |
| ) |
|
|
override |
◆ clear()
void FEConfigWeightInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 105 of file FEConfigWeightInfo.cc.
References cuy::dh, MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
108 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
109 throw(std::runtime_error(
"FEConfigWeightInfo::fetchData(): no Id defined for this FEConfigWeightInfo "));
115 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" where ( wei_conf_id= :1 or (tag=:2 AND version=:3 ) )");
125 result->setId(rset->getInt(1));
126 result->setConfigTag(rset->getString(2));
127 result->setVersion(rset->getInt(3));
128 result->setNumberOfGroups(rset->getInt(4));
129 Date dbdate = rset->getDate(5);
130 result->setDBTime(
dh.dateToTm(dbdate));
133 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
oracle::occi::SQLException SQLException
◆ fetchID()
int FEConfigWeightInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 161 of file FEConfigWeightInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
171 stmt->setSQL(
"SELECT wei_conf_id FROM " +
getTable() +
" WHERE tag=:1 and version=:2 ");
176 ResultSet* rset = stmt->executeQuery();
179 m_ID = rset->getInt(1);
183 m_conn->terminateStatement(stmt);
185 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()
◆ fetchLastData()
◆ fetchNextId()
int FEConfigWeightInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
◆ getDBTime()
Tm FEConfigWeightInfo::getDBTime |
( |
| ) |
const |
|
inline |
◆ getId()
int FEConfigWeightInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getID()
int FEConfigWeightInfo::getID |
( |
| ) |
|
|
inline |
◆ getNumberOfGroups()
int FEConfigWeightInfo::getNumberOfGroups |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string FEConfigWeightInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getVersion()
int FEConfigWeightInfo::getVersion |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator==()
◆ prepareWrite()
void FEConfigWeightInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setByID()
void FEConfigWeightInfo::setByID |
( |
int |
id | ) |
|
|
noexcept |
Definition at line 191 of file FEConfigWeightInfo.cc.
References cuy::dh, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
199 stmt->setSQL(
"SELECT * FROM fe_config_weight_info WHERE wei_conf_id = :1");
202 ResultSet* rset = stmt->executeQuery();
204 this->
setId(rset->getInt(1));
208 Date dbdate = rset->getDate(5);
211 throw(std::runtime_error(
"FEConfigWeightInfo::setByID: Given config_id is not in the database"));
214 m_conn->terminateStatement(stmt);
216 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)
◆ setDBTime()
void FEConfigWeightInfo::setDBTime |
( |
const Tm & |
x | ) |
|
|
inline |
◆ setId()
void FEConfigWeightInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setID()
void FEConfigWeightInfo::setID |
( |
int |
id | ) |
|
|
inline |
◆ setNumberOfGroups()
void FEConfigWeightInfo::setNumberOfGroups |
( |
int |
n | ) |
|
|
inline |
◆ setParameters()
void FEConfigWeightInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 70 of file FEConfigWeightInfo.cc.
74 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
75 if (ci->first ==
"VERSION")
77 if (ci->first ==
"TAG")
79 if (ci->first ==
"NUMBER_OF_GROUPS")
void setConfigTag(std::string x)
void setNumberOfGroups(int n)
◆ setVersion()
void FEConfigWeightInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
◆ writeDB()
void FEConfigWeightInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 84 of file FEConfigWeightInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
97 throw(std::runtime_error(
std::string(
"FEConfigWeightInfo::writeDB(): ") +
e.getMessage()));
101 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)
◆ EcalCondDBInterface
◆ m_db_time
Tm FEConfigWeightInfo::m_db_time |
|
private |
◆ m_ID
int FEConfigWeightInfo::m_ID |
|
private |
◆ m_ngr
int FEConfigWeightInfo::m_ngr |
|
private |
◆ m_version
int FEConfigWeightInfo::m_version |
|
private |