#include <FEConfigFgrInfo.h>
Definition at line 11 of file FEConfigFgrInfo.h.
FEConfigFgrInfo::FEConfigFgrInfo |
( |
| ) |
|
FEConfigFgrInfo::~FEConfigFgrInfo |
( |
| ) |
|
|
override |
void FEConfigFgrInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 128 of file FEConfigFgrInfo.cc.
References DateHandler::dateToTm(), cuy::dh, MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
134 throw(std::runtime_error(
"FEConfigFgrInfo::fetchData(): no Id defined for this FEConfigFgrInfo "));
141 " where ( fgr_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(
"FEConfigFgrInfo::fetchData(): ")+getOraMessage(&e)));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setDBTime(const Tm &x)
void checkConnection() const noexcept(false)
void setNumberOfGroups(int iov_id)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
std::string getTable() override
int FEConfigFgrInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 189 of file FEConfigFgrInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDBTime().
200 stmt->setSQL(
"SELECT fgr_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(
"FEConfigFgrInfo::fetchID: ")+getOraMessage(&e)));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
std::string getTable() override
int FEConfigFgrInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
Tm FEConfigFgrInfo::getDBTime |
( |
| ) |
const |
|
inline |
int FEConfigFgrInfo::getId |
( |
void |
| ) |
const |
|
inline |
int FEConfigFgrInfo::getID |
( |
| ) |
|
|
inline |
int FEConfigFgrInfo::getNumberOfGroups |
( |
| ) |
const |
|
inline |
std::string FEConfigFgrInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int FEConfigFgrInfo::getVersion |
( |
| ) |
const |
|
inline |
void FEConfigFgrInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void FEConfigFgrInfo::setByID |
( |
int |
id | ) |
|
|
noexcept |
Definition at line 223 of file FEConfigFgrInfo.cc.
References DateHandler::dateToTm(), cuy::dh, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDBTime().
233 stmt->setSQL(
"SELECT * FROM fe_config_fgr_info WHERE fgr_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(
"FEConfigFgrInfo::setByID: Given config_id is not in the database"));
248 m_conn->terminateStatement(stmt);
250 throw(std::runtime_error(
std::string(
"FEConfigFgrInfo::setByID: ")+getOraMessage(&e)));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void setDBTime(const Tm &x)
void checkConnection() const noexcept(false)
void setNumberOfGroups(int iov_id)
oracle::occi::Statement Statement
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
void FEConfigFgrInfo::setDBTime |
( |
const Tm & |
x | ) |
|
|
inline |
void FEConfigFgrInfo::setId |
( |
int |
id | ) |
|
|
inline |
void FEConfigFgrInfo::setID |
( |
int |
id | ) |
|
|
inline |
void FEConfigFgrInfo::setNumberOfGroups |
( |
int |
iov_id | ) |
|
|
inline |
void FEConfigFgrInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 84 of file FEConfigFgrInfo.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 setNumberOfGroups(int iov_id)
void setConfigTag(std::string x)
void FEConfigFgrInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void FEConfigFgrInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 100 of file FEConfigFgrInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
117 throw(std::runtime_error(
std::string(
"FEConfigFgrInfo::writeDB(): ")+getOraMessage(&e)));
121 throw(std::runtime_error(
"FEConfigFgrInfo::writeDB: Failed to write"));
int fetchID() noexcept(false)
int getNumberOfGroups() const
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
Tm FEConfigFgrInfo::m_db_time |
|
private |
int FEConfigFgrInfo::m_ID |
|
private |
int FEConfigFgrInfo::m_iov_id |
|
private |
int FEConfigFgrInfo::m_version |
|
private |