#include <ODGolBiasCurrentInfo.h>
Definition at line 9 of file ODGolBiasCurrentInfo.h.
ODGolBiasCurrentInfo::ODGolBiasCurrentInfo |
( |
| ) |
|
ODGolBiasCurrentInfo::~ODGolBiasCurrentInfo |
( |
| ) |
|
|
override |
void ODGolBiasCurrentInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 130 of file ODGolBiasCurrentInfo.cc.
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getVersion().
136 throw(std::runtime_error(
"ODGolBiasCurrentInfo::fetchData(): no Id defined for this ODGolBiasCurrentInfo "));
142 if(result->
getId()!=0) {
144 " where rec_id = :1 ");
151 " and version = :version " );
157 " WHERE tag = :1 and version= (select max(version) from "+
getTable() +
" where tag=:2) " );
164 throw(std::runtime_error(
"ODGolBiasCurrentInfo::fetchData(): no Id defined for this record "));
174 result->
setId(rset->getInt(1));
179 throw(std::runtime_error(
std::string(
"ODGolBiasCurrentInfo::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 ODGolBiasCurrentInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 183 of file ODGolBiasCurrentInfo.cc.
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getVersion().
194 stmt->setSQL(
"SELECT rec_id FROM "+
getTable()+
195 " WHERE tag=:1 and version=:2 " );
200 ResultSet* rset = stmt->executeQuery();
203 m_ID = rset->getInt(1);
207 m_conn->terminateStatement(stmt);
209 throw(std::runtime_error(
std::string(
"ODGolBiasCurrentInfo::fetchID: ")+getOraMessage(&e)));
std::string getTable() override
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
int ODGolBiasCurrentInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
int ODGolBiasCurrentInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODGolBiasCurrentInfo::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int ODGolBiasCurrentInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODGolBiasCurrentInfo::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
void ODGolBiasCurrentInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODGolBiasCurrentInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 82 of file ODGolBiasCurrentInfo.cc.
Referenced by getVersion().
87 for( std::map<std::string, std::string >::const_iterator ci=
88 my_keys_map.begin(); ci!=my_keys_map.end(); ci++ ) {
90 if(ci->first==
"VERSION")
setVersion(atoi(ci->second.c_str()) );
void setConfigTag(std::string x)
void ODGolBiasCurrentInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODGolBiasCurrentInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
int ODGolBiasCurrentInfo::m_ID |
|
private |
int ODGolBiasCurrentInfo::m_version |
|
private |