#include <ODTowersToByPassInfo.h>
Definition at line 9 of file ODTowersToByPassInfo.h.
ODTowersToByPassInfo::ODTowersToByPassInfo |
( |
| ) |
|
ODTowersToByPassInfo::~ODTowersToByPassInfo |
( |
| ) |
|
void ODTowersToByPassInfo::clear |
( |
void |
| ) |
|
|
private |
Definition at line 130 of file ODTowersToByPassInfo.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
Referenced by getVersion().
136 throw(std::runtime_error(
"ODTowersToByPassInfo::fetchData(): no Id defined for this ODTowersToByPassInfo "));
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(
"ODTowersToByPassInfo::fetchData(): no Id defined for this record "));
174 result->
setId(rset->getInt(1));
179 throw(std::runtime_error(
"ODTowersToByPassInfo::fetchData(): "+e.getMessage()));
void checkConnection() const noexcept(false)
void setConfigTag(std::string x)
oracle::occi::SQLException SQLException
std::string getConfigTag()
int ODTowersToByPassInfo::fetchID |
( |
| ) |
|
|
noexcept |
Definition at line 183 of file ODTowersToByPassInfo.cc.
References MillePedeFileConverter_cfg::e.
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(
"ODTowersToByPassInfo::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 ODTowersToByPassInfo::fetchNextId |
( |
| ) |
|
|
noexcept |
Definition at line 36 of file ODTowersToByPassInfo.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(
"ODTowersToByPassInfo::fetchNextId(): "+e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
int ODTowersToByPassInfo::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODTowersToByPassInfo::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODTowersToByPassInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODTowersToByPassInfo::prepareWrite |
( |
| ) |
|
|
privatevirtualnoexcept |
Implements IODConfig.
Definition at line 58 of file ODTowersToByPassInfo.cc.
References MillePedeFileConverter_cfg::e, and getId().
Referenced by getVersion().
71 " VALUES ( :1, :2, :3 ) " );
77 throw(std::runtime_error(
"ODTowersToByPassInfo::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
int fetchNextId() noexcept(false)
oracle::occi::SQLException SQLException
void ODTowersToByPassInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODTowersToByPassInfo::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 82 of file ODTowersToByPassInfo.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 ODTowersToByPassInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODTowersToByPassInfo::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 97 of file ODTowersToByPassInfo.cc.
References gather_cfg::cout, and MillePedeFileConverter_cfg::e.
Referenced by getVersion().
113 throw(std::runtime_error(
"ODTowersToByPassInfo::writeDB(): "+e.getMessage()));
117 throw(std::runtime_error(
"ODTowersToByPassInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
void fetchData(ODTowersToByPassInfo *result) noexcept(false)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkPrepare() noexcept(false)
int fetchID() noexcept(false)
int ODTowersToByPassInfo::m_ID |
|
private |
int ODTowersToByPassInfo::m_version |
|
private |