#include <ODTowersToByPassInfo.h>
Definition at line 9 of file ODTowersToByPassInfo.h.
ODTowersToByPassInfo::ODTowersToByPassInfo |
( |
| ) |
|
ODTowersToByPassInfo::~ODTowersToByPassInfo |
( |
| ) |
|
|
override |
void ODTowersToByPassInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 107 of file ODTowersToByPassInfo.cc.
References alignCSCRings::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
111 throw(std::runtime_error(
"ODTowersToByPassInfo::fetchData(): no Id defined for this ODTowersToByPassInfo "));
115 if (result->
getId() != 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(
"ODTowersToByPassInfo::fetchData(): no Id defined for this record "));
144 result->
setId(rset->getInt(1));
149 throw(std::runtime_error(
std::string(
"ODTowersToByPassInfo::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 ODTowersToByPassInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 153 of file ODTowersToByPassInfo.cc.
References alignCSCRings::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(
"ODTowersToByPassInfo::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 ODTowersToByPassInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
int ODTowersToByPassInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODTowersToByPassInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int ODTowersToByPassInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODTowersToByPassInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void ODTowersToByPassInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODTowersToByPassInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 68 of file ODTowersToByPassInfo.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)
void ODTowersToByPassInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODTowersToByPassInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 80 of file ODTowersToByPassInfo.cc.
References gather_cfg::cout, alignCSCRings::e, and AlCaHLTBitMon_QueryRunRegistry::string.
92 throw(std::runtime_error(
std::string(
"ODTowersToByPassInfo::writeDB(): ") + e.getMessage()));
96 throw(std::runtime_error(
"ODTowersToByPassInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void fetchData(ODTowersToByPassInfo *result) noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
int fetchID() noexcept(false)
int ODTowersToByPassInfo::m_ID |
|
private |
int ODTowersToByPassInfo::m_version |
|
private |