#include <ODVfeToRejectInfo.h>
Definition at line 9 of file ODVfeToRejectInfo.h.
◆ ODVfeToRejectInfo()
ODVfeToRejectInfo::ODVfeToRejectInfo |
( |
| ) |
|
◆ ~ODVfeToRejectInfo()
ODVfeToRejectInfo::~ODVfeToRejectInfo |
( |
| ) |
|
|
override |
◆ clear()
void ODVfeToRejectInfo::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 107 of file ODVfeToRejectInfo.cc.
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
110 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
111 throw(std::runtime_error(
"ODVfeToRejectInfo::fetchData(): no Id defined for this ODVfeToRejectInfo "));
115 if (
result->getId() != 0) {
118 }
else if (!
result->getConfigTag().empty()) {
119 if (
result->getVersion() != 0) {
122 " and version = :version ");
127 m_readStmt->setSQL(
"SELECT * FROM " +
getTable() +
" WHERE tag = :1 and version= (select max(version) from " +
135 throw(std::runtime_error(
"ODVfeToRejectInfo::fetchData(): no Id defined for this record "));
144 result->setId(rset->getInt(1));
145 result->setConfigTag(rset->getString(2));
146 result->setVersion(rset->getInt(3));
149 throw(std::runtime_error(
std::string(
"ODVfeToRejectInfo::fetchData(): ") +
e.getMessage()));
void checkConnection() const noexcept(false)
std::string getTable() override
oracle::occi::SQLException SQLException
◆ fetchID()
int ODVfeToRejectInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 153 of file ODVfeToRejectInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
163 stmt->setSQL(
"SELECT rec_id FROM " +
getTable() +
" WHERE tag=:1 and version=:2 ");
168 ResultSet* rset = stmt->executeQuery();
171 m_ID = rset->getInt(1);
175 m_conn->terminateStatement(stmt);
177 throw(std::runtime_error(
std::string(
"ODVfeToRejectInfo::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 ODVfeToRejectInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
◆ getId()
int ODVfeToRejectInfo::getId |
( |
void |
| ) |
const |
|
inline |
◆ getTable()
std::string ODVfeToRejectInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getVersion()
int ODVfeToRejectInfo::getVersion |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODVfeToRejectInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setId()
void ODVfeToRejectInfo::setId |
( |
int |
id | ) |
|
|
inline |
◆ setParameters()
void ODVfeToRejectInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 68 of file ODVfeToRejectInfo.cc.
72 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
73 if (ci->first ==
"VERSION")
75 if (ci->first ==
"TAG")
void setConfigTag(std::string x)
◆ setVersion()
void ODVfeToRejectInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
◆ writeDB()
void ODVfeToRejectInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 80 of file ODVfeToRejectInfo.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
92 throw(std::runtime_error(
std::string(
"ODVfeToRejectInfo::writeDB(): ") +
e.getMessage()));
96 throw(std::runtime_error(
"ODVfeToRejectInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void fetchData(ODVfeToRejectInfo *result) noexcept(false)
void checkPrepare() noexcept(false)
◆ EcalCondDBInterface
◆ m_ID
int ODVfeToRejectInfo::m_ID |
|
private |
◆ m_version
int ODVfeToRejectInfo::m_version |
|
private |