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