#include <ODFEWeightsInfo.h>
Definition at line 9 of file ODFEWeightsInfo.h.
ODFEWeightsInfo::ODFEWeightsInfo |
( |
| ) |
|
ODFEWeightsInfo::~ODFEWeightsInfo |
( |
| ) |
|
void ODFEWeightsInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 131 of file ODFEWeightsInfo.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
Referenced by getVersion().
137 throw(std::runtime_error(
"ODFEWeightsInfo::fetchData(): no Id defined for this ODFEWeightsInfo "));
142 if(result->
getId()!=0) {
144 " where rec_id = :1 ");
148 " where tag=:1 AND version=:2 " );
153 throw(std::runtime_error(
"ODFEWeightsInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
162 result->
setId(rset->getInt(1));
167 throw(std::runtime_error(
"ODFEWeightsInfo::fetchData(): "+e.getMessage()));
void checkConnection() const noexcept(false)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
int ODFEWeightsInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 171 of file ODFEWeightsInfo.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(
"ODFEWeightsInfo::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 ODFEWeightsInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
Definition at line 37 of file ODFEWeightsInfo.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(
"ODFEWeightsInfo::fetchNextId(): "+e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
int ODFEWeightsInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODFEWeightsInfo::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODFEWeightsInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODFEWeightsInfo::prepareWrite |
( |
| ) |
|
|
privatevirtualnoexcept |
Implements IODConfig.
Definition at line 59 of file ODFEWeightsInfo.cc.
References MillePedeFileConverter_cfg::e, and getId().
Referenced by getVersion().
72 " VALUES ( :1, :2, :3 ) " );
78 throw(std::runtime_error(
"ODFEWeightsInfo::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
int fetchNextId() noexcept(false)
void ODFEWeightsInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODFEWeightsInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 83 of file ODFEWeightsInfo.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 ODFEWeightsInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODFEWeightsInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 98 of file ODFEWeightsInfo.cc.
References gather_cfg::cout, and MillePedeFileConverter_cfg::e.
Referenced by getVersion().
113 throw(std::runtime_error(
"ODFEWeightsInfo::writeDB(): "+e.getMessage()));
118 throw(std::runtime_error(
"ODFEWeightsInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void fetchData(ODFEWeightsInfo *result) noexcept(false)
int fetchID() noexcept(false)
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
int ODFEWeightsInfo::m_ID |
|
private |
int ODFEWeightsInfo::m_version |
|
private |