#include <FEConfigSlidingInfo.h>
Definition at line 11 of file FEConfigSlidingInfo.h.
FEConfigSlidingInfo::FEConfigSlidingInfo |
( |
| ) |
|
FEConfigSlidingInfo::~FEConfigSlidingInfo |
( |
| ) |
|
|
override |
void FEConfigSlidingInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 105 of file FEConfigSlidingInfo.cc.
References DateHandler::dateToTm(), cuy::dh, alignCSCRings::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
109 throw(std::runtime_error(
"FEConfigSlidingInfo::fetchData(): no Id defined for this FEConfigSlidingInfo "));
115 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" where ( sli_conf_id= :1 or (tag=:2 AND version=:3 ) )");
125 result->
setId(rset->getInt(1));
129 Date dbdate = rset->getDate(5);
133 throw(std::runtime_error(
std::string(
"FEConfigSlidingInfo::fetchData(): ") + e.getMessage()));
oracle::occi::Environment * m_env
std::string getTable() override
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setIOVId(int iov_id)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void setDBTime(const Tm &x)
int FEConfigSlidingInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 161 of file FEConfigSlidingInfo.cc.
References alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
171 stmt->setSQL(
"SELECT sli_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(
"FEConfigSlidingInfo::fetchID: ") + e.getMessage()));
std::string getTable() override
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
int FEConfigSlidingInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
Tm FEConfigSlidingInfo::getDBTime |
( |
| ) |
const |
|
inline |
int FEConfigSlidingInfo::getId |
( |
void |
| ) |
const |
|
inline |
int FEConfigSlidingInfo::getID |
( |
| ) |
|
|
inline |
int FEConfigSlidingInfo::getIOVId |
( |
| ) |
const |
|
inline |
std::string FEConfigSlidingInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int FEConfigSlidingInfo::getVersion |
( |
| ) |
const |
|
inline |
void FEConfigSlidingInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void FEConfigSlidingInfo::setByID |
( |
int |
id | ) |
|
|
noexcept |
Definition at line 191 of file FEConfigSlidingInfo.cc.
References DateHandler::dateToTm(), cuy::dh, alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
199 stmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE sli_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(
"FEConfigSlidingInfo::setByID: Given config_id is not in the database"));
214 m_conn->terminateStatement(stmt);
216 throw(std::runtime_error(
std::string(
"FEConfigSlidingInfo::setByID: ") + e.getMessage()));
oracle::occi::Environment * m_env
std::string getTable() override
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void setIOVId(int iov_id)
oracle::occi::Statement Statement
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
void setDBTime(const Tm &x)
void FEConfigSlidingInfo::setDBTime |
( |
const Tm & |
x | ) |
|
|
inline |
void FEConfigSlidingInfo::setId |
( |
int |
id | ) |
|
|
inline |
void FEConfigSlidingInfo::setID |
( |
int |
id | ) |
|
|
inline |
void FEConfigSlidingInfo::setIOVId |
( |
int |
iov_id | ) |
|
|
inline |
void FEConfigSlidingInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 70 of file FEConfigSlidingInfo.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)
void FEConfigSlidingInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void FEConfigSlidingInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 84 of file FEConfigSlidingInfo.cc.
References alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
97 throw(std::runtime_error(
std::string(
"FEConfigSlidingInfo::writeDB(): ") + e.getMessage()));
101 throw(std::runtime_error(
"FEConfigSlidingInfo::writeDB: Failed to write"));
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
Tm FEConfigSlidingInfo::m_db_time |
|
private |
int FEConfigSlidingInfo::m_ID |
|
private |
int FEConfigSlidingInfo::m_iov_id |
|
private |
int FEConfigSlidingInfo::m_version |
|
private |