#include <ODFEWeightsInfo.h>
Definition at line 9 of file ODFEWeightsInfo.h.
ODFEWeightsInfo::ODFEWeightsInfo |
( |
| ) |
|
ODFEWeightsInfo::~ODFEWeightsInfo |
( |
| ) |
|
void ODFEWeightsInfo::clear |
( |
void |
| ) |
|
|
private |
void ODFEWeightsInfo::fetchData |
( |
ODFEWeightsInfo * |
result | ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 131 of file ODFEWeightsInfo.cc.
References alignCSCRings::e, and query::result.
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()));
oracle::occi::SQLException SQLException
oracle::occi::ResultSet ResultSet
void setConfigTag(std::string x)
std::string getConfigTag()
void checkConnection() const
int ODFEWeightsInfo::fetchID |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
Definition at line 171 of file ODFEWeightsInfo.cc.
References alignCSCRings::e.
182 stmt->setSQL(
"SELECT rec_id FROM "+
getTable()+
183 "WHERE tag=:1 and version=:2 " );
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
oracle::occi::SQLException SQLException
oracle::occi::Statement Statement
oracle::occi::ResultSet ResultSet
std::string getConfigTag()
void checkConnection() const
int ODFEWeightsInfo::fetchNextId |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
Definition at line 37 of file ODFEWeightsInfo.cc.
References alignCSCRings::e, and query::result.
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
oracle::occi::SQLException SQLException
oracle::occi::ResultSet ResultSet
void checkConnection() const
int ODFEWeightsInfo::getId |
( |
| ) |
const |
|
inline |
std::string ODFEWeightsInfo::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODFEWeightsInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODFEWeightsInfo::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IODConfig.
Definition at line 59 of file ODFEWeightsInfo.cc.
References alignCSCRings::e, and getId().
72 " VALUES ( :1, :2, :3 ) " );
78 throw(std::runtime_error(
"ODFEWeightsInfo::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void ODFEWeightsInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODFEWeightsInfo::setParameters |
( |
std::map< std::string, std::string > |
my_keys_map | ) |
|
Definition at line 83 of file ODFEWeightsInfo.cc.
88 for( std::map<std::string, std::string >::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 |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 98 of file ODFEWeightsInfo.cc.
References gather_cfg::cout, and alignCSCRings::e.
113 throw(std::runtime_error(
"ODFEWeightsInfo::writeDB(): "+e.getMessage()));
118 throw(std::runtime_error(
"ODFEWeightsInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void fetchData(ODFEWeightsInfo *result)
std::string getConfigTag()
void checkConnection() const
int ODFEWeightsInfo::m_ID |
|
private |
int ODFEWeightsInfo::m_version |
|
private |