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