#include <ODFEPedestalOffsetInfo.h>
Definition at line 9 of file ODFEPedestalOffsetInfo.h.
ODFEPedestalOffsetInfo::ODFEPedestalOffsetInfo |
( |
| ) |
|
ODFEPedestalOffsetInfo::~ODFEPedestalOffsetInfo |
( |
| ) |
|
|
override |
void ODFEPedestalOffsetInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 134 of file ODFEPedestalOffsetInfo.cc.
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getVersion().
140 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::fetchData(): no Id defined for this ODFEPedestalOffsetInfo "));
144 if(result->
getId()!=0) {
146 " where rec_id = :1 ");
150 " where tag=:1 AND version=:2 " );
155 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::fetchData(): no Id defined for this record "));
164 result->
setId(rset->getInt(1));
169 throw(std::runtime_error(
std::string(
"ODFEPedestalOffsetInfo::fetchData(): ")+getOraMessage(&e)));
std::string getTable() override
void checkConnection() const noexcept(false)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
int ODFEPedestalOffsetInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 195 of file ODFEPedestalOffsetInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getVersion().
206 stmt->setSQL(
"SELECT rec_id FROM "+
getTable()+
207 "WHERE tag=:1 and version=:2 " );
212 ResultSet* rset = stmt->executeQuery();
215 m_ID = rset->getInt(1);
219 m_conn->terminateStatement(stmt);
221 throw(std::runtime_error(
std::string(
"ODFEPedestalOffsetInfo::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 ODFEPedestalOffsetInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
int ODFEPedestalOffsetInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODFEPedestalOffsetInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int ODFEPedestalOffsetInfo::getVersion |
( |
| ) |
const |
|
inline |
Definition at line 24 of file ODFEPedestalOffsetInfo.h.
References clear(), fetchData(), fetchID(), fetchLastData(), fetchNextId(), m_version, noexcept, prepareWrite(), mps_fire::result, setParameters(), and writeDB().
void ODFEPedestalOffsetInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void ODFEPedestalOffsetInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODFEPedestalOffsetInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 83 of file ODFEPedestalOffsetInfo.cc.
Referenced by getVersion().
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 ODFEPedestalOffsetInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODFEPedestalOffsetInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
int ODFEPedestalOffsetInfo::m_ID |
|
private |
int ODFEPedestalOffsetInfo::m_version |
|
private |