#include <FEConfigBadStripInfo.h>
Definition at line 9 of file FEConfigBadStripInfo.h.
FEConfigBadStripInfo::FEConfigBadStripInfo |
( |
| ) |
|
FEConfigBadStripInfo::~FEConfigBadStripInfo |
( |
| ) |
|
void FEConfigBadStripInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 130 of file FEConfigBadStripInfo.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
Referenced by getVersion().
136 throw(std::runtime_error(
"FEConfigBadStripInfo::fetchData(): no Id defined for this FEConfigBadStripInfo "));
142 if(result->
getId()!=0) {
144 " where rec_id = :1 ");
148 " where tag=:1 AND version=:2 " );
153 throw(std::runtime_error(
"FEConfigBadStripInfo::fetchData(): no Id defined for this record "));
163 result->
setId(rset->getInt(1));
168 throw(std::runtime_error(
"FEConfigBadStripInfo::fetchData(): "+e.getMessage()));
void checkConnection() const noexcept(false)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
int FEConfigBadStripInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 172 of file FEConfigBadStripInfo.cc.
References MillePedeFileConverter_cfg::e.
Referenced by getVersion().
183 stmt->setSQL(
"SELECT rec_id FROM "+
getTable()+
184 " WHERE tag=:1 and version=:2 " );
189 ResultSet* rset = stmt->executeQuery();
192 m_ID = rset->getInt(1);
196 m_conn->terminateStatement(stmt);
198 throw(std::runtime_error(
"FEConfigBadStripInfo::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 FEConfigBadStripInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
Definition at line 36 of file FEConfigBadStripInfo.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
Referenced by getVersion().
43 m_readStmt->setSQL(
"select COND2CONF_INFO_SQ.NextVal from DUAL ");
45 while (rset->next ()){
46 result= rset->getInt(1);
53 throw(std::runtime_error(
"FEConfigBadStripInfo::fetchNextId(): "+e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
int FEConfigBadStripInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string FEConfigBadStripInfo::getTable |
( |
| ) |
|
|
inlinevirtual |
int FEConfigBadStripInfo::getVersion |
( |
| ) |
const |
|
inline |
void FEConfigBadStripInfo::prepareWrite |
( |
| ) |
|
|
privatevirtualnoexcept |
Implements IODConfig.
Definition at line 58 of file FEConfigBadStripInfo.cc.
References MillePedeFileConverter_cfg::e, and getId().
Referenced by getVersion().
71 " VALUES ( :1, :2, :3 ) " );
77 throw(std::runtime_error(
"FEConfigBadStripInfo::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
int fetchNextId() noexcept(false)
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
void FEConfigBadStripInfo::setId |
( |
int |
id | ) |
|
|
inline |
void FEConfigBadStripInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 82 of file FEConfigBadStripInfo.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 FEConfigBadStripInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void FEConfigBadStripInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 97 of file FEConfigBadStripInfo.cc.
References gather_cfg::cout, and MillePedeFileConverter_cfg::e.
Referenced by getVersion().
113 throw(std::runtime_error(
"FEConfigBadStripInfo::writeDB(): "+e.getMessage()));
117 throw(std::runtime_error(
"FEConfigBadStripInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
int fetchID() noexcept(false)
void checkConnection() const noexcept(false)
void fetchData(FEConfigBadStripInfo *result) noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
int FEConfigBadStripInfo::m_ID |
|
private |
int FEConfigBadStripInfo::m_version |
|
private |