#include <FEConfigLinInfo.h>
Definition at line 11 of file FEConfigLinInfo.h.
◆ FEConfigLinInfo()
FEConfigLinInfo::FEConfigLinInfo |
( |
| ) |
|
Definition at line 13 of file FEConfigLinInfo.cc.
References clear().
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
◆ ~FEConfigLinInfo()
FEConfigLinInfo::~FEConfigLinInfo |
( |
| ) |
|
|
override |
◆ clear()
void FEConfigLinInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 105 of file FEConfigLinInfo.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(
"FEConfigLinInfo::fetchData(): no Id defined for this FEConfigLinInfo "));
115 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" where ( lin_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->setIOVId(rset->getInt(4));
129 Date dbdate = rset->getDate(5);
130 result->setDBTime(
dh.dateToTm(dbdate));
133 throw(std::runtime_error(
std::string(
"FEConfigLinInfo::fetchData(): ") +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
std::string getTable() override
◆ fetchID()
int FEConfigLinInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 161 of file FEConfigLinInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
171 stmt->setSQL(
"SELECT lin_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(
"FEConfigLinInfo::fetchID: ") +
e.getMessage()));
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
◆ fetchLastData()
◆ fetchNextId()
int FEConfigLinInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
◆ getDBTime()
Tm FEConfigLinInfo::getDBTime |
( |
| ) |
const |
|
inline |
◆ getId()
int FEConfigLinInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getID()
int FEConfigLinInfo::getID |
( |
| ) |
|
|
inline |
◆ getIOVId()
int FEConfigLinInfo::getIOVId |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string FEConfigLinInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getVersion()
int FEConfigLinInfo::getVersion |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator==()
◆ prepareWrite()
void FEConfigLinInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setByID()
void FEConfigLinInfo::setByID |
( |
int |
id | ) |
|
|
noexcept |
Definition at line 191 of file FEConfigLinInfo.cc.
References cuy::dh, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
199 stmt->setSQL(
"SELECT * FROM fe_config_lin_info WHERE lin_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(
"FEConfigLinInfo::setByID: Given config_id is not in the database"));
214 m_conn->terminateStatement(stmt);
216 throw(std::runtime_error(
std::string(
"FEConfigLinInfo::setByID: ") +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setIOVId(int iov_id)
oracle::occi::Statement Statement
void setDBTime(const Tm &x)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
◆ setDBTime()
void FEConfigLinInfo::setDBTime |
( |
const Tm & |
x | ) |
|
|
inline |
◆ setId()
void FEConfigLinInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setID()
void FEConfigLinInfo::setID |
( |
int |
id | ) |
|
|
inline |
◆ setIOVId()
void FEConfigLinInfo::setIOVId |
( |
int |
iov_id | ) |
|
|
inline |
◆ setParameters()
void FEConfigLinInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 70 of file FEConfigLinInfo.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 ==
"IOV_ID")
void setIOVId(int iov_id)
void setConfigTag(std::string x)
◆ setVersion()
void FEConfigLinInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
◆ writeDB()
void FEConfigLinInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ m_db_time
Tm FEConfigLinInfo::m_db_time |
|
private |
◆ m_ID
int FEConfigLinInfo::m_ID |
|
private |
◆ m_iov_id
int FEConfigLinInfo::m_iov_id |
|
private |
◆ m_version
int FEConfigLinInfo::m_version |
|
private |