#include <ODFEPedestalOffsetInfo.h>
Definition at line 9 of file ODFEPedestalOffsetInfo.h.
ODFEPedestalOffsetInfo::ODFEPedestalOffsetInfo |
( |
| ) |
|
ODFEPedestalOffsetInfo::~ODFEPedestalOffsetInfo |
( |
| ) |
|
void ODFEPedestalOffsetInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 134 of file ODFEPedestalOffsetInfo.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
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(
"ODFEPedestalOffsetInfo::fetchData(): "+e.getMessage()));
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.
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(
"ODFEPedestalOffsetInfo::fetchID: "+e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
std::string getConfigTag()
int ODFEPedestalOffsetInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
Definition at line 37 of file ODFEPedestalOffsetInfo.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
Referenced by getVersion().
44 m_readStmt->setSQL(
"select COND2CONF_INFO_SQ.NextVal from DUAL ");
46 while (rset->next ()){
47 result= rset->getInt(1);
54 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::fetchNextId(): "+e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
int ODFEPedestalOffsetInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODFEPedestalOffsetInfo::getTable |
( |
| ) |
|
|
inlinevirtual |
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 |
( |
| ) |
|
|
privatevirtualnoexcept |
Implements IODConfig.
Definition at line 59 of file ODFEPedestalOffsetInfo.cc.
References MillePedeFileConverter_cfg::e, and getId().
Referenced by getVersion().
72 " VALUES ( :1, :2, :3 ) " );
78 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
int fetchNextId() noexcept(false)
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
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 |
Definition at line 98 of file ODFEPedestalOffsetInfo.cc.
References gather_cfg::cout, and MillePedeFileConverter_cfg::e.
Referenced by getVersion().
114 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::writeDB(): "+e.getMessage()));
120 throw(std::runtime_error(
"ODFEPedestalOffsetInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
void fetchData(ODFEPedestalOffsetInfo *result) noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
int ODFEPedestalOffsetInfo::m_ID |
|
private |
int ODFEPedestalOffsetInfo::m_version |
|
private |