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