#include <ODSRPCycle.h>
Definition at line 9 of file ODSRPCycle.h.
◆ ODSRPCycle()
ODSRPCycle::ODSRPCycle |
( |
| ) |
|
◆ ~ODSRPCycle()
ODSRPCycle::~ODSRPCycle |
( |
| ) |
|
|
override |
◆ clear()
void ODSRPCycle::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 109 of file ODSRPCycle.cc.
113 if (
result->getId() == 0) {
114 throw(std::runtime_error(
"ODSRPConfig::fetchData(): no Id defined for this ODSRPConfig "));
119 "SELECT srp_configuration_id FROM ecal_srp_cycle "
120 "WHERE cycle_id = :1 ");
127 result->setSRPConfigurationID(rset->getInt(1));
130 throw(std::runtime_error(
"ODSRPCycle::fetchData(): " +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and mps_fire::result.
◆ fetchID()
int ODSRPCycle::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 56 of file ODSRPCycle.cc.
67 "SELECT cycle_id, srp_configuration_id FROM ecal_srp_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(
"ODSRPCycle::fetchID: " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ getId()
int ODSRPCycle::getId |
( |
void |
| ) |
const |
|
inline |
◆ getSRPConfigurationID()
int ODSRPCycle::getSRPConfigurationID |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODSRPCycle::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ insertConfig()
void ODSRPCycle::insertConfig |
( |
| ) |
|
|
privatenoexcept |
◆ operator!=()
bool ODSRPCycle::operator!= |
( |
const ODSRPCycle & |
m | ) |
const |
|
inline |
◆ operator==()
bool ODSRPCycle::operator== |
( |
const ODSRPCycle & |
m | ) |
const |
|
inline |
◆ prepareWrite()
void ODSRPCycle::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
◆ setByID()
void ODSRPCycle::setByID |
( |
int |
id | ) |
|
|
privatenoexcept |
Definition at line 86 of file ODSRPCycle.cc.
92 "SELECT cycle_id, srp_configuration_id FROM ecal_srp_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(
"ODSRPCycle::fetchID: " +
e.getMessage()));
References MillePedeFileConverter_cfg::e.
◆ setId()
void ODSRPCycle::setId |
( |
int |
id | ) |
|
|
inline |
◆ setSRPConfigurationID()
void ODSRPCycle::setSRPConfigurationID |
( |
int |
x | ) |
|
|
inline |
◆ writeDB()
void ODSRPCycle::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ ODEcalCycle
◆ m_ID
◆ m_srp_config_id
int ODSRPCycle::m_srp_config_id |
|
private |