#include <ODFEDelaysInfo.h>
Definition at line 9 of file ODFEDelaysInfo.h.
ODFEDelaysInfo::ODFEDelaysInfo |
( |
| ) |
|
ODFEDelaysInfo::~ODFEDelaysInfo |
( |
| ) |
|
void ODFEDelaysInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 131 of file ODFEDelaysInfo.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
Referenced by getVersion().
139 throw(std::runtime_error(
"ODFEDelaysInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
143 if(result->
getId()!=0) {
145 " where rec_id = :1 ");
149 " where tag=:1 AND version=:2 " );
154 throw(std::runtime_error(
"ODFEDelaysInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
162 result->
setId(rset->getInt(1));
167 throw(std::runtime_error(
"ODFEDelaysInfo::fetchData(): "+e.getMessage()));
void checkConnection() const noexcept(false)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
int ODFEDelaysInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 171 of file ODFEDelaysInfo.cc.
References MillePedeFileConverter_cfg::e.
Referenced by getVersion().
182 stmt->setSQL(
"SELECT rec_id FROM "+
getTable()+
183 "WHERE tag=:1 and version=:2 " );
188 ResultSet* rset = stmt->executeQuery();
191 m_ID = rset->getInt(1);
195 m_conn->terminateStatement(stmt);
197 throw(std::runtime_error(
"ODFEDelaysInfo::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 ODFEDelaysInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
int ODFEDelaysInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODFEDelaysInfo::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODFEDelaysInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODFEDelaysInfo::prepareWrite |
( |
| ) |
|
|
privatevirtualnoexcept |
Implements IODConfig.
Definition at line 60 of file ODFEDelaysInfo.cc.
References MillePedeFileConverter_cfg::e, and getId().
Referenced by getVersion().
73 " VALUES ( :1, :2, :3 ) " );
79 throw(std::runtime_error(
"ODFEDelaysInfo::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
int fetchNextId() noexcept(false)
void ODFEDelaysInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODFEDelaysInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 84 of file ODFEDelaysInfo.cc.
Referenced by getVersion().
89 for( std::map<std::string, std::string >::const_iterator ci=
90 my_keys_map.begin(); ci!=my_keys_map.end(); ci++ ) {
92 if(ci->first==
"VERSION")
setVersion(atoi(ci->second.c_str()) );
void setConfigTag(std::string x)
void ODFEDelaysInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODFEDelaysInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 99 of file ODFEDelaysInfo.cc.
References gather_cfg::cout, and MillePedeFileConverter_cfg::e.
Referenced by getVersion().
115 throw(std::runtime_error(
"ODFEDelaysInfo::writeDB(): "+e.getMessage()));
120 throw(std::runtime_error(
"ODFEDelaysInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
int fetchID() noexcept(false)
void fetchData(ODFEDelaysInfo *result) noexcept(false)
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
int ODFEDelaysInfo::m_version |
|
private |