#include <FEConfigTimingInfo.h>
Definition at line 11 of file FEConfigTimingInfo.h.
FEConfigTimingInfo::FEConfigTimingInfo |
( |
| ) |
|
FEConfigTimingInfo::~FEConfigTimingInfo |
( |
| ) |
|
|
override |
void FEConfigTimingInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 102 of file FEConfigTimingInfo.cc.
References DateHandler::dateToTm(), cuy::dh, MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
106 throw(std::runtime_error(
"FEConfigTimingInfo::fetchData(): no Id defined for this FEConfigTimingInfo "));
112 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" where ( tim_conf_id= :1 or (tag=:2 AND version=:3 ) )");
122 result->
setId(rset->getInt(1));
125 Date dbdate = rset->getDate(4);
129 throw(std::runtime_error(
std::string(
"FEConfigTimingInfo::fetchData(): ") + e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
std::string getTable() override
void checkConnection() const noexcept(false)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
void setDBTime(const Tm &x)
std::string getConfigTag()
int FEConfigTimingInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 156 of file FEConfigTimingInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDBTime().
166 stmt->setSQL(
"SELECT tim_conf_id FROM " +
getTable() +
" WHERE tag=:1 and version=:2 ");
171 ResultSet* rset = stmt->executeQuery();
174 m_ID = rset->getInt(1);
178 m_conn->terminateStatement(stmt);
180 throw(std::runtime_error(
std::string(
"FEConfigTimingInfo::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 FEConfigTimingInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
Tm FEConfigTimingInfo::getDBTime |
( |
| ) |
const |
|
inline |
int FEConfigTimingInfo::getId |
( |
void |
| ) |
const |
|
inline |
int FEConfigTimingInfo::getID |
( |
| ) |
|
|
inline |
std::string FEConfigTimingInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int FEConfigTimingInfo::getVersion |
( |
| ) |
const |
|
inline |
void FEConfigTimingInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void FEConfigTimingInfo::setByID |
( |
int |
id | ) |
|
|
noexcept |
Definition at line 186 of file FEConfigTimingInfo.cc.
References DateHandler::dateToTm(), cuy::dh, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDBTime().
194 stmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE tim_conf_id = :1");
197 ResultSet* rset = stmt->executeQuery();
199 this->
setId(rset->getInt(1));
202 Date dbdate = rset->getDate(4);
205 throw(std::runtime_error(
"FEConfigTimingInfo::setByID: Given tim_conf_id is not in the database"));
208 m_conn->terminateStatement(stmt);
210 throw(std::runtime_error(
std::string(
"FEConfigTimingInfo::setByID: ") + e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
std::string getTable() override
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
void setDBTime(const Tm &x)
void FEConfigTimingInfo::setDBTime |
( |
const Tm & |
x | ) |
|
|
inline |
void FEConfigTimingInfo::setId |
( |
int |
id | ) |
|
|
inline |
void FEConfigTimingInfo::setID |
( |
int |
id | ) |
|
|
inline |
void FEConfigTimingInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 70 of file FEConfigTimingInfo.cc.
Referenced by setDBTime().
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")
void setConfigTag(std::string x)
void FEConfigTimingInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void FEConfigTimingInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Tm FEConfigTimingInfo::m_db_time |
|
private |
int FEConfigTimingInfo::m_ID |
|
private |
int FEConfigTimingInfo::m_version |
|
private |