#include <ODDCUConfig.h>
Definition at line 15 of file ODDCUConfig.h.
ODDCUConfig::ODDCUConfig |
( |
| ) |
|
ODDCUConfig::~ODDCUConfig |
( |
| ) |
|
void ODDCUConfig::clear |
( |
void |
| ) |
|
|
private |
void ODDCUConfig::fetchData |
( |
ODDCUConfig * |
result | ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 113 of file ODDCUConfig.cc.
References alignCSCRings::e, and query::result.
119 throw(std::runtime_error(
"ODDCUConfig::fetchData(): no Id defined for this ODDCUConfig "));
125 "FROM ECAL_DCU_CONFIGURATION "
126 " where ( dcu_configuration_id = :1 or dcu_tag=:2 ) " );
133 result->
setId(rset->getInt(1));
138 throw(std::runtime_error(
"ODDCUConfig::fetchData(): "+e.getMessage()));
oracle::occi::SQLException SQLException
oracle::occi::ResultSet ResultSet
void setConfigTag(std::string x)
std::string getConfigTag()
void checkConnection() const
int ODDCUConfig::fetchID |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 142 of file ODDCUConfig.cc.
References alignCSCRings::e.
153 stmt->setSQL(
"SELECT dcu_configuration_id FROM ecal_dcu_configuration "
154 "WHERE dcu_tag=:dcu_tag " );
161 m_ID = rset->getInt(1);
165 m_conn->terminateStatement(stmt);
167 throw(std::runtime_error(
"ODDCUConfig::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 ODDCUConfig::fetchNextId |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 44 of file ODDCUConfig.cc.
References alignCSCRings::e, and query::result.
51 m_readStmt->setSQL(
"select ecal_dcu_config_sq.NextVal from dual");
53 while (rset->next ()){
54 result= rset->getInt(1);
60 throw(std::runtime_error(
"ODDCUConfig::fetchNextId(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::ResultSet ResultSet
void checkConnection() const
int ODDCUConfig::getId |
( |
| ) |
const |
|
inline |
std::string ODDCUConfig::getTable |
( |
| ) |
|
|
inlinevirtual |
void ODDCUConfig::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IODConfig.
Definition at line 66 of file ODDCUConfig.cc.
References alignCSCRings::e.
74 m_writeStmt->setSQL(
"INSERT INTO ECAL_DCU_CONFIGURATION ( dcu_configuration_id, dcu_tag ) "
81 throw(std::runtime_error(
"ODDCUConfig::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void ODDCUConfig::setId |
( |
int |
id | ) |
|
|
inline |
void ODDCUConfig::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 31 of file ODDCUConfig.cc.
36 for( std::map<std::string, std::string >::const_iterator ci=
37 my_keys_map.begin(); ci!=my_keys_map.end(); ci++ ) {
39 if(ci->first==
"DCU_CONFIGURATION_ID")
setConfigTag(ci->second);
void setConfigTag(std::string x)
void ODDCUConfig::writeDB |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 87 of file ODDCUConfig.cc.
References alignCSCRings::e.
101 throw(std::runtime_error(
"ODDCUConfig::writeDB(): "+e.getMessage()));
105 throw(std::runtime_error(
"ODDCUConfig::writeDB: Failed to write"));
oracle::occi::SQLException SQLException
std::string getConfigTag()
void checkConnection() const