#include <ODTTCciCycle.h>
Definition at line 9 of file ODTTCciCycle.h.
ODTTCciCycle::ODTTCciCycle |
( |
| ) |
|
Definition at line 9 of file ODTTCciCycle.cc.
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
ODTTCciCycle::~ODTTCciCycle |
( |
| ) |
|
|
override |
void ODTTCciCycle::clear |
( |
void |
| ) |
|
|
private |
Definition at line 109 of file ODTTCciCycle.cc.
References alignCSCRings::e, and mps_fire::result.
113 if (result->
getId() == 0) {
114 throw(std::runtime_error(
"ODTTCciConfig::fetchData(): no Id defined for this ODTTCciConfig "));
119 "SELECT ttcci_configuration_id FROM ecal_ttcci_cycle "
120 "WHERE cycle_id = :1 ");
130 throw(std::runtime_error(
"ODTTCciCycle::fetchData(): " + e.getMessage()));
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
void setTTCciConfigurationID(int x)
int ODTTCciCycle::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 56 of file ODTTCciCycle.cc.
References alignCSCRings::e.
67 "SELECT cycle_id, ttcci_configuration_id FROM ecal_ttcci_cycle "
68 "WHERE cycle_id = :1 ");
69 stmt->setInt(1,
m_ID);
70 ResultSet *rset = stmt->executeQuery();
73 m_ID = rset->getInt(1);
78 m_conn->terminateStatement(stmt);
80 throw(std::runtime_error(
"ODTTCciCycle::fetchID: " + e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
int ODTTCciCycle::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODTTCciCycle::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
int ODTTCciCycle::getTTCciConfigurationID |
( |
| ) |
const |
|
inline |
void ODTTCciCycle::insertConfig |
( |
| ) |
|
|
privatenoexcept |
Definition at line 134 of file ODTTCciCycle.cc.
References alignCSCRings::e.
Referenced by ODEcalCycle::writeDB().
140 }
catch (std::runtime_error &
e) {
145 throw(std::runtime_error(
"EcalCondDBInterface::insertDataSet: Unknown exception caught"));
oracle::occi::Connection * m_conn
void prepareWrite() noexcept(false) override
void terminateWriteStatement() noexcept(false)
void writeDB() noexcept(false)
bool ODTTCciCycle::operator!= |
( |
const ODTTCciCycle & |
m | ) |
const |
|
inline |
bool ODTTCciCycle::operator== |
( |
const ODTTCciCycle & |
m | ) |
const |
|
inline |
void ODTTCciCycle::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 21 of file ODTTCciCycle.cc.
References alignCSCRings::e.
27 "INSERT INTO ECAL_TTCci_Cycle (cycle_id, ttcci_configuration_id ) "
30 throw(std::runtime_error(
"ODTTCciCycle::prepareWrite(): " + e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
void ODTTCciCycle::setByID |
( |
int |
id | ) |
|
|
privatenoexcept |
Definition at line 86 of file ODTTCciCycle.cc.
References alignCSCRings::e.
92 "SELECT cycle_id, ttcci_configuration_id FROM ecal_ttcci_cycle "
93 "WHERE cycle_id = :1 ");
95 ResultSet *rset = stmt->executeQuery();
98 m_ID = rset->getInt(1);
103 m_conn->terminateStatement(stmt);
105 throw(std::runtime_error(
"ODTTCciCycle::fetchID: " + e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
void ODTTCciCycle::setId |
( |
int |
id | ) |
|
|
inline |
void ODTTCciCycle::setTTCciConfigurationID |
( |
int |
x | ) |
|
|
inline |
void ODTTCciCycle::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 34 of file ODTTCciCycle.cc.
References alignCSCRings::e, and getId().
45 throw(std::runtime_error(
"ODTTCciCycle::writeDB: " + e.getMessage()));
50 throw(std::runtime_error(
"ODTTCciCycle::writeDB: Failed to write"));
void checkConnection() const noexcept(false)
int getTTCciConfigurationID() const
int fetchID() noexcept(false)
oracle::occi::SQLException SQLException
void checkPrepare() noexcept(false)
int ODTTCciCycle::m_ttcci_config_id |
|
private |