#include <ODTTCciCycle.h>
Definition at line 11 of file ODTTCciCycle.h.
ODTTCciCycle::ODTTCciCycle |
( |
| ) |
|
Definition at line 9 of file ODTTCciCycle.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
ODTTCciCycle::~ODTTCciCycle |
( |
| ) |
|
void ODTTCciCycle::clear |
( |
void |
| ) |
|
|
private |
void ODTTCciCycle::fetchData |
( |
ODTTCciCycle * |
result | ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 131 of file ODTTCciCycle.cc.
References alignCSCRings::e, and mps_fire::result.
137 if(result->
getId()==0){
138 throw(std::runtime_error(
"ODTTCciConfig::fetchData(): no Id defined for this ODTTCciConfig "));
143 m_readStmt->setSQL(
"SELECT ttcci_configuration_id FROM ecal_ttcci_cycle "
144 "WHERE cycle_id = :1 ");
154 throw(std::runtime_error(
"ODTTCciCycle::fetchData(): "+e.getMessage()));
oracle::occi::SQLException SQLException
oracle::occi::ResultSet ResultSet
void setTTCciConfigurationID(int x)
void checkConnection() const
int ODTTCciCycle::fetchID |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 71 of file ODTTCciCycle.cc.
References alignCSCRings::e.
83 stmt->setSQL(
"SELECT cycle_id, ttcci_configuration_id FROM ecal_ttcci_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(
"ODTTCciCycle::fetchID: "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::Statement Statement
oracle::occi::ResultSet ResultSet
void checkConnection() const
int ODTTCciCycle::getId |
( |
| ) |
const |
|
inline |
std::string ODTTCciCycle::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODTTCciCycle::getTTCciConfigurationID |
( |
| ) |
const |
|
inline |
void ODTTCciCycle::insertConfig |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 159 of file ODTTCciCycle.cc.
References alignCSCRings::e.
Referenced by ODEcalCycle::writeDB().
168 }
catch (std::runtime_error &
e) {
173 throw(std::runtime_error(
"EcalCondDBInterface::insertDataSet: Unknown exception caught"));
oracle::occi::Connection * m_conn
void terminateWriteStatement()
bool ODTTCciCycle::operator!= |
( |
const ODTTCciCycle & |
m | ) |
const |
|
inline |
bool ODTTCciCycle::operator== |
( |
const ODTTCciCycle & |
m | ) |
const |
|
inline |
void ODTTCciCycle::prepareWrite |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
privatevirtual |
Implements IODConfig.
Definition at line 26 of file ODTTCciCycle.cc.
References alignCSCRings::e.
33 m_writeStmt->setSQL(
"INSERT INTO ECAL_TTCci_Cycle (cycle_id, ttcci_configuration_id ) "
36 throw(std::runtime_error(
"ODTTCciCycle::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const
void ODTTCciCycle::setByID |
( |
int |
id | ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 104 of file ODTTCciCycle.cc.
References alignCSCRings::e.
112 stmt->setSQL(
"SELECT cycle_id, ttcci_configuration_id FROM ecal_ttcci_cycle "
113 "WHERE cycle_id = :1 ");
118 m_ID = rset->getInt(1);
123 m_conn->terminateStatement(stmt);
125 throw(std::runtime_error(
"ODTTCciCycle::fetchID: "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
oracle::occi::Statement Statement
oracle::occi::ResultSet ResultSet
void checkConnection() const
void ODTTCciCycle::setId |
( |
int |
id | ) |
|
|
inline |
void ODTTCciCycle::setTTCciConfigurationID |
( |
int |
x | ) |
|
|
inline |
void ODTTCciCycle::writeDB |
( |
| ) |
|
throw | ( | std::runtime_error |
| ) | | |
|
private |
Definition at line 41 of file ODTTCciCycle.cc.
References alignCSCRings::e, and getId().
55 throw(std::runtime_error(
"ODTTCciCycle::writeDB: "+e.getMessage()));
60 throw(std::runtime_error(
"ODTTCciCycle::writeDB: Failed to write"));
int getTTCciConfigurationID() const
oracle::occi::SQLException SQLException
void checkConnection() const
int ODTTCciCycle::m_ttcci_config_id |
|
private |