#include <FEConfigSpikeInfo.h>
Definition at line 11 of file FEConfigSpikeInfo.h.
FEConfigSpikeInfo::FEConfigSpikeInfo |
( |
| ) |
|
FEConfigSpikeInfo::~FEConfigSpikeInfo |
( |
| ) |
|
|
override |
void FEConfigSpikeInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 125 of file FEConfigSpikeInfo.cc.
References DateHandler::dateToTm(), cuy::dh, MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
131 throw(std::runtime_error(
"FEConfigSpikeInfo::fetchData(): no Id defined for this FEConfigSpikeInfo "));
138 " where ( spi_conf_id= :1 or (tag=:2 AND version=:3 ) )" );
148 result->
setId(rset->getInt(1));
151 Date dbdate = rset->getDate(4);
155 throw(std::runtime_error(
std::string(
"FEConfigSpikeInfo::fetchData(): ")+getOraMessage(&e)));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
std::string getTable() override
void checkConnection() const noexcept(false)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void setDBTime(const Tm &x)
int FEConfigSpikeInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 184 of file FEConfigSpikeInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDBTime().
195 stmt->setSQL(
"SELECT spi_conf_id FROM "+
getTable()+
196 " WHERE tag=:1 and version=:2 " );
201 ResultSet* rset = stmt->executeQuery();
204 m_ID = rset->getInt(1);
208 m_conn->terminateStatement(stmt);
210 throw(std::runtime_error(
std::string(
"FEConfigSpikeInfo::fetchID: ")+getOraMessage(&e)));
oracle::occi::Connection * m_conn
std::string getTable() override
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
int FEConfigSpikeInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
Tm FEConfigSpikeInfo::getDBTime |
( |
| ) |
const |
|
inline |
int FEConfigSpikeInfo::getId |
( |
void |
| ) |
const |
|
inline |
int FEConfigSpikeInfo::getID |
( |
| ) |
|
|
inline |
std::string FEConfigSpikeInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int FEConfigSpikeInfo::getVersion |
( |
| ) |
const |
|
inline |
void FEConfigSpikeInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void FEConfigSpikeInfo::setByID |
( |
int |
id | ) |
|
|
noexcept |
Definition at line 218 of file FEConfigSpikeInfo.cc.
References DateHandler::dateToTm(), cuy::dh, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by setDBTime().
228 stmt->setSQL(
"SELECT * FROM "+
getTable()+
" WHERE spi_conf_id = :1");
231 ResultSet* rset = stmt->executeQuery();
233 this->
setId(rset->getInt(1));
236 Date dbdate = rset->getDate(4);
239 throw(std::runtime_error(
"FEConfigSpikeInfo::setByID: Given spi_conf_id is not in the database"));
242 m_conn->terminateStatement(stmt);
244 throw(std::runtime_error(
std::string(
"FEConfigSpikeInfo::setByID: ")+getOraMessage(&e)));
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
std::string getTable() override
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
void setDBTime(const Tm &x)
void FEConfigSpikeInfo::setDBTime |
( |
const Tm & |
x | ) |
|
|
inline |
void FEConfigSpikeInfo::setId |
( |
int |
id | ) |
|
|
inline |
void FEConfigSpikeInfo::setID |
( |
int |
id | ) |
|
|
inline |
void FEConfigSpikeInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 83 of file FEConfigSpikeInfo.cc.
Referenced by setDBTime().
88 for( std::map<std::string, std::string >::const_iterator ci=
89 my_keys_map.begin(); ci!=my_keys_map.end(); ci++ ) {
91 if(ci->first==
"VERSION")
setVersion(atoi(ci->second.c_str()) );
void setConfigTag(std::string x)
void FEConfigSpikeInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void FEConfigSpikeInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Tm FEConfigSpikeInfo::m_db_time |
|
private |
int FEConfigSpikeInfo::m_ID |
|
private |
int FEConfigSpikeInfo::m_version |
|
private |