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