#include <ODTCCEECycle.h>
Definition at line 11 of file ODTCCEECycle.h.
ODTCCEECycle::ODTCCEECycle |
( |
| ) |
|
Definition at line 9 of file ODTCCEECycle.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
ODTCCEECycle::~ODTCCEECycle |
( |
| ) |
|
void ODTCCEECycle::clear |
( |
void |
| ) |
|
|
private |
void ODTCCEECycle::fetchData |
( |
ODTCCEECycle * |
result | ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 131 of file ODTCCEECycle.cc.
References alignCSCRings::e, and query::result.
137 if(result->
getId()==0){
138 throw(std::runtime_error(
"ODTCCConfig::fetchData(): no Id defined for this ODTCCConfig "));
143 m_readStmt->setSQL(
"SELECT tcc_ee_configuration_id FROM ecal_tcc_ee_cycle "
144 "WHERE cycle_id = :1 ");
154 throw(std::runtime_error(
"ODTCCEECycle::fetchData(): "+e.getMessage()));
oracle::occi::SQLException SQLException
void setTCCConfigurationID(int x)
oracle::occi::ResultSet ResultSet
void checkConnection() const
int ODTCCEECycle::fetchID |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 71 of file ODTCCEECycle.cc.
References alignCSCRings::e.
83 stmt->setSQL(
"SELECT cycle_id, tcc_ee_configuration_id FROM ecal_tcc_ee_cycle "
84 "WHERE cycle_id = :1 ");
85 stmt->setInt(1,
m_ID);
89 m_ID = rset->getInt(1);
94 m_conn->terminateStatement(stmt);
96 throw(std::runtime_error(
"ODTCCEECycle::fetchID: "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::Statement Statement
oracle::occi::ResultSet ResultSet
void checkConnection() const
int ODTCCEECycle::getId |
( |
| ) |
const |
|
inline |
std::string ODTCCEECycle::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODTCCEECycle::getTCCConfigurationID |
( |
| ) |
const |
|
inline |
void ODTCCEECycle::insertConfig |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 158 of file ODTCCEECycle.cc.
References alignCSCRings::e.
Referenced by ODEcalCycle::writeDB().
167 }
catch (std::runtime_error &
e) {
172 throw(std::runtime_error(
"EcalCondDBInterface::insertDataSet: Unknown exception caught"));
oracle::occi::Connection * m_conn
void terminateWriteStatement()
bool ODTCCEECycle::operator!= |
( |
const ODTCCEECycle & |
m | ) |
const |
|
inline |
bool ODTCCEECycle::operator== |
( |
const ODTCCEECycle & |
m | ) |
const |
|
inline |
void ODTCCEECycle::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IODConfig.
Definition at line 26 of file ODTCCEECycle.cc.
References alignCSCRings::e.
33 m_writeStmt->setSQL(
"INSERT INTO ECAL_TCC_EE_Cycle (cycle_id, tcc_ee_configuration_id ) "
36 throw(std::runtime_error(
"ODTCCEECycle::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void ODTCCEECycle::setByID |
( |
int |
id | ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 104 of file ODTCCEECycle.cc.
References alignCSCRings::e.
112 stmt->setSQL(
"SELECT cycle_id, tcc_ee_configuration_id FROM ecal_tcc_ee_cycle "
113 "WHERE cycle_id = :1 ");
118 m_ID = rset->getInt(1);
123 m_conn->terminateStatement(stmt);
125 throw(std::runtime_error(
"ODTCCEECycle::fetchID: "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::Statement Statement
oracle::occi::ResultSet ResultSet
void checkConnection() const
void ODTCCEECycle::setId |
( |
int |
id | ) |
|
|
inline |
void ODTCCEECycle::setTCCConfigurationID |
( |
int |
x | ) |
|
|
inline |
void ODTCCEECycle::writeDB |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 41 of file ODTCCEECycle.cc.
References alignCSCRings::e, and getId().
55 throw(std::runtime_error(
"ODTCCEECycle::writeDB: "+e.getMessage()));
60 throw(std::runtime_error(
"ODTCCEECycle::writeDB: Failed to write"));
int getTCCConfigurationID() const
oracle::occi::SQLException SQLException
void checkConnection() const
int ODTCCEECycle::m_tcc_ee_config_id |
|
private |