#include <ODTCCEECycle.h>
Definition at line 9 of file ODTCCEECycle.h.
◆ ODTCCEECycle()
ODTCCEECycle::ODTCCEECycle |
( |
| ) |
|
Definition at line 9 of file ODTCCEECycle.cc.
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
◆ ~ODTCCEECycle()
ODTCCEECycle::~ODTCCEECycle |
( |
| ) |
|
|
override |
◆ clear()
void ODTCCEECycle::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 109 of file ODTCCEECycle.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
113 if (
result->getId() == 0) {
114 throw(std::runtime_error(
"ODTCCConfig::fetchData(): no Id defined for this ODTCCConfig "));
119 "SELECT tcc_ee_configuration_id FROM ecal_tcc_ee_cycle " 120 "WHERE cycle_id = :1 ");
127 result->setTCCConfigurationID(rset->getInt(1));
130 throw(std::runtime_error(
"ODTCCEECycle::fetchData(): " +
e.getMessage()));
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
◆ fetchID()
int ODTCCEECycle::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 56 of file ODTCCEECycle.cc.
References MillePedeFileConverter_cfg::e.
67 "SELECT cycle_id, tcc_ee_configuration_id FROM ecal_tcc_ee_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(
"ODTCCEECycle::fetchID: " +
e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
◆ getId()
int ODTCCEECycle::getId |
( |
void |
| ) |
const |
|
inline |
◆ getTable()
std::string ODTCCEECycle::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTCCConfigurationID()
int ODTCCEECycle::getTCCConfigurationID |
( |
| ) |
const |
|
inline |
◆ insertConfig()
void ODTCCEECycle::insertConfig |
( |
| ) |
|
|
privatenoexcept |
◆ operator!=()
bool ODTCCEECycle::operator!= |
( |
const ODTCCEECycle & |
m | ) |
const |
|
inline |
◆ operator==()
bool ODTCCEECycle::operator== |
( |
const ODTCCEECycle & |
m | ) |
const |
|
inline |
◆ prepareWrite()
void ODTCCEECycle::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 21 of file ODTCCEECycle.cc.
References MillePedeFileConverter_cfg::e.
27 "INSERT INTO ECAL_TCC_EE_Cycle (cycle_id, tcc_ee_configuration_id ) " 30 throw(std::runtime_error(
"ODTCCEECycle::prepareWrite(): " +
e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
◆ setByID()
void ODTCCEECycle::setByID |
( |
int |
id | ) |
|
|
privatenoexcept |
Definition at line 86 of file ODTCCEECycle.cc.
References MillePedeFileConverter_cfg::e.
92 "SELECT cycle_id, tcc_ee_configuration_id FROM ecal_tcc_ee_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(
"ODTCCEECycle::fetchID: " +
e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
◆ setId()
void ODTCCEECycle::setId |
( |
int |
id | ) |
|
|
inline |
◆ setTCCConfigurationID()
void ODTCCEECycle::setTCCConfigurationID |
( |
int |
x | ) |
|
|
inline |
◆ writeDB()
void ODTCCEECycle::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 34 of file ODTCCEECycle.cc.
References MillePedeFileConverter_cfg::e, and getId().
45 throw(std::runtime_error(
"ODTCCEECycle::writeDB: " +
e.getMessage()));
50 throw(std::runtime_error(
"ODTCCEECycle::writeDB: Failed to write"));
int getTCCConfigurationID() const
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
oracle::occi::SQLException SQLException
void checkPrepare() noexcept(false)
◆ EcalCondDBInterface
◆ ODEcalCycle
◆ m_ID
◆ m_tcc_ee_config_id
int ODTCCEECycle::m_tcc_ee_config_id |
|
private |