#include <ODFEWeightsInfo.h>
Definition at line 9 of file ODFEWeightsInfo.h.
ODFEWeightsInfo::ODFEWeightsInfo |
( |
| ) |
|
Definition at line 12 of file ODFEWeightsInfo.cc.
References clear().
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
ODFEWeightsInfo::~ODFEWeightsInfo |
( |
| ) |
|
|
override |
void ODFEWeightsInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 108 of file ODFEWeightsInfo.cc.
References alignCSCRings::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
112 throw(std::runtime_error(
"ODFEWeightsInfo::fetchData(): no Id defined for this ODFEWeightsInfo "));
116 if (result->
getId() != 0) {
125 throw(std::runtime_error(
"ODFEWeightsInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
134 result->
setId(rset->getInt(1));
139 throw(std::runtime_error(
std::string(
"ODFEWeightsInfo::fetchData(): ") + e.getMessage()));
void checkConnection() const noexcept(false)
std::string getTable() override
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
int ODFEWeightsInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 143 of file ODFEWeightsInfo.cc.
References alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
153 stmt->setSQL(
"SELECT rec_id FROM " +
getTable() +
"WHERE tag=:1 and version=:2 ");
158 ResultSet* rset = stmt->executeQuery();
161 m_ID = rset->getInt(1);
165 m_conn->terminateStatement(stmt);
167 throw(std::runtime_error(
std::string(
"ODFEWeightsInfo::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()
int ODFEWeightsInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
int ODFEWeightsInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODFEWeightsInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int ODFEWeightsInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODFEWeightsInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void ODFEWeightsInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODFEWeightsInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 69 of file ODFEWeightsInfo.cc.
73 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
74 if (ci->first ==
"VERSION")
76 if (ci->first ==
"TAG")
void setConfigTag(std::string x)
void ODFEWeightsInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODFEWeightsInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 81 of file ODFEWeightsInfo.cc.
References gather_cfg::cout, alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
92 throw(std::runtime_error(
std::string(
"ODFEWeightsInfo::writeDB(): ") + e.getMessage()));
97 throw(std::runtime_error(
"ODFEWeightsInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void fetchData(ODFEWeightsInfo *result) noexcept(false)
int fetchID() noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
int ODFEWeightsInfo::m_ID |
|
private |
int ODFEWeightsInfo::m_version |
|
private |