#include <FEConfigSpikeInfo.h>
Definition at line 11 of file FEConfigSpikeInfo.h.
◆ FEConfigSpikeInfo()
FEConfigSpikeInfo::FEConfigSpikeInfo |
( |
| ) |
|
◆ ~FEConfigSpikeInfo()
FEConfigSpikeInfo::~FEConfigSpikeInfo |
( |
| ) |
|
|
override |
◆ clear()
void FEConfigSpikeInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 102 of file FEConfigSpikeInfo.cc.
References cuy::dh, MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
105 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
106 throw(std::runtime_error(
"FEConfigSpikeInfo::fetchData(): no Id defined for this FEConfigSpikeInfo "));
112 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" where ( spi_conf_id= :1 or (tag=:2 AND version=:3 ) )");
122 result->setId(rset->getInt(1));
123 result->setConfigTag(rset->getString(2));
124 result->setVersion(rset->getInt(3));
125 Date dbdate = rset->getDate(4);
126 result->setDBTime(
dh.dateToTm(dbdate));
129 throw(std::runtime_error(
std::string(
"FEConfigSpikeInfo::fetchData(): ") +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::SQLException SQLException
◆ fetchID()
int FEConfigSpikeInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 156 of file FEConfigSpikeInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
166 stmt->setSQL(
"SELECT spi_conf_id FROM " +
getTable() +
" WHERE tag=:1 and version=:2 ");
171 ResultSet* rset = stmt->executeQuery();
174 m_ID = rset->getInt(1);
178 m_conn->terminateStatement(stmt);
180 throw(std::runtime_error(
std::string(
"FEConfigSpikeInfo::fetchID: ") +
e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
◆ fetchLastData()
◆ fetchNextId()
int FEConfigSpikeInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
◆ getDBTime()
Tm FEConfigSpikeInfo::getDBTime |
( |
| ) |
const |
|
inline |
◆ getId()
int FEConfigSpikeInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getID()
int FEConfigSpikeInfo::getID |
( |
| ) |
|
|
inline |
◆ getTable()
std::string FEConfigSpikeInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getVersion()
int FEConfigSpikeInfo::getVersion |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator==()
◆ prepareWrite()
void FEConfigSpikeInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setByID()
void FEConfigSpikeInfo::setByID |
( |
int |
id | ) |
|
|
noexcept |
Definition at line 186 of file FEConfigSpikeInfo.cc.
References cuy::dh, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
194 stmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE spi_conf_id = :1");
197 ResultSet* rset = stmt->executeQuery();
199 this->
setId(rset->getInt(1));
202 Date dbdate = rset->getDate(4);
205 throw(std::runtime_error(
"FEConfigSpikeInfo::setByID: Given spi_conf_id is not in the database"));
208 m_conn->terminateStatement(stmt);
210 throw(std::runtime_error(
std::string(
"FEConfigSpikeInfo::setByID: ") +
e.getMessage()));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::Statement Statement
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
void setDBTime(const Tm &x)
◆ setDBTime()
void FEConfigSpikeInfo::setDBTime |
( |
const Tm & |
x | ) |
|
|
inline |
◆ setId()
void FEConfigSpikeInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setID()
void FEConfigSpikeInfo::setID |
( |
int |
id | ) |
|
|
inline |
◆ setParameters()
void FEConfigSpikeInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 70 of file FEConfigSpikeInfo.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")
void setConfigTag(std::string x)
◆ setVersion()
void FEConfigSpikeInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
◆ writeDB()
void FEConfigSpikeInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ m_db_time
Tm FEConfigSpikeInfo::m_db_time |
|
private |
◆ m_ID
int FEConfigSpikeInfo::m_ID |
|
private |
◆ m_version
int FEConfigSpikeInfo::m_version |
|
private |