#include <ODFEWeightsInfo.h>
Definition at line 9 of file ODFEWeightsInfo.h.
◆ ODFEWeightsInfo()
ODFEWeightsInfo::ODFEWeightsInfo |
( |
| ) |
|
◆ ~ODFEWeightsInfo()
ODFEWeightsInfo::~ODFEWeightsInfo |
( |
| ) |
|
|
override |
◆ clear()
void ODFEWeightsInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 108 of file ODFEWeightsInfo.cc.
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
111 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
112 throw(std::runtime_error(
"ODFEWeightsInfo::fetchData(): no Id defined for this ODFEWeightsInfo "));
116 if (
result->getId() != 0) {
119 }
else if (!
result->getConfigTag().empty()) {
125 throw(std::runtime_error(
"ODFEWeightsInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
134 result->setId(rset->getInt(1));
135 result->setConfigTag(rset->getString(2));
136 result->setVersion(rset->getInt(3));
139 throw(std::runtime_error(
std::string(
"ODFEWeightsInfo::fetchData(): ") +
e.getMessage()));
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::SQLException SQLException
◆ fetchID()
int ODFEWeightsInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 143 of file ODFEWeightsInfo.cc.
References MillePedeFileConverter_cfg::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()
◆ fetchNextId()
int ODFEWeightsInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
◆ getId()
int ODFEWeightsInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getTable()
std::string ODFEWeightsInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getVersion()
int ODFEWeightsInfo::getVersion |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODFEWeightsInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setId()
void ODFEWeightsInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setParameters()
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)
◆ setVersion()
void ODFEWeightsInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
◆ writeDB()
void ODFEWeightsInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 81 of file ODFEWeightsInfo.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::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)
◆ EcalCondDBInterface
◆ m_ID
int ODFEWeightsInfo::m_ID |
|
private |
◆ m_version
int ODFEWeightsInfo::m_version |
|
private |