#include <ODFEDelaysInfo.h>
Definition at line 9 of file ODFEDelaysInfo.h.
ODFEDelaysInfo::ODFEDelaysInfo |
( |
| ) |
|
ODFEDelaysInfo::~ODFEDelaysInfo |
( |
| ) |
|
void ODFEDelaysInfo::clear |
( |
void |
| ) |
|
|
private |
void ODFEDelaysInfo::fetchData |
( |
ODFEDelaysInfo * |
result | ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 131 of file ODFEDelaysInfo.cc.
References alignCSCRings::e, and query::result.
139 throw(std::runtime_error(
"ODFEDelaysInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
143 if(result->
getId()!=0) {
145 " where rec_id = :1 ");
149 " where tag=:1 AND version=:2 " );
154 throw(std::runtime_error(
"ODFEDelaysInfo::fetchData(): no Id defined for this ODFEDelaysInfo "));
162 result->
setId(rset->getInt(1));
167 throw(std::runtime_error(
"ODFEDelaysInfo::fetchData(): "+e.getMessage()));
oracle::occi::SQLException SQLException
oracle::occi::ResultSet ResultSet
void setConfigTag(std::string x)
std::string getConfigTag()
void checkConnection() const
int ODFEDelaysInfo::fetchID |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
Definition at line 171 of file ODFEDelaysInfo.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(
"ODFEDelaysInfo::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 ODFEDelaysInfo::fetchNextId |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
Definition at line 37 of file ODFEDelaysInfo.cc.
References gather_cfg::cout, 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);
51 std::cout <<
" the id is going to be : "<< result<< endl;
55 throw(std::runtime_error(
"ODFEDelaysInfo::fetchNextId(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::ResultSet ResultSet
void checkConnection() const
int ODFEDelaysInfo::getId |
( |
| ) |
const |
|
inline |
std::string ODFEDelaysInfo::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODFEDelaysInfo::getVersion |
( |
| ) |
const |
|
inline |
void ODFEDelaysInfo::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IODConfig.
Definition at line 60 of file ODFEDelaysInfo.cc.
References alignCSCRings::e, and getId().
73 " VALUES ( :1, :2, :3 ) " );
79 throw(std::runtime_error(
"ODFEDelaysInfo::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void ODFEDelaysInfo::setId |
( |
int |
id | ) |
|
|
inline |
void ODFEDelaysInfo::setParameters |
( |
std::map< std::string, std::string > |
my_keys_map | ) |
|
Definition at line 84 of file ODFEDelaysInfo.cc.
89 for( std::map<std::string, std::string >::iterator ci=
90 my_keys_map.begin(); ci!=my_keys_map.end(); ci++ ) {
92 if(ci->first==
"VERSION")
setVersion(atoi(ci->second.c_str()) );
void setConfigTag(std::string x)
void ODFEDelaysInfo::setVersion |
( |
int |
id | ) |
|
|
inline |
void ODFEDelaysInfo::writeDB |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 99 of file ODFEDelaysInfo.cc.
References gather_cfg::cout, and alignCSCRings::e.
115 throw(std::runtime_error(
"ODFEDelaysInfo::writeDB(): "+e.getMessage()));
120 throw(std::runtime_error(
"ODFEDelaysInfo::writeDB: Failed to write"));
oracle::occi::Connection * m_conn
void fetchData(ODFEDelaysInfo *result)
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkConnection() const
int ODFEDelaysInfo::m_version |
|
private |