#include <ODLaserCycle.h>
Definition at line 9 of file ODLaserCycle.h.
ODLaserCycle::ODLaserCycle |
( |
| ) |
|
Definition at line 9 of file ODLaserCycle.cc.
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
ODLaserCycle::~ODLaserCycle |
( |
| ) |
|
|
override |
void ODLaserCycle::clear |
( |
void |
| ) |
|
|
private |
Definition at line 109 of file ODLaserCycle.cc.
References alignCSCRings::e, and mps_fire::result.
113 if (result->
getId() == 0) {
114 throw(std::runtime_error(
"ODLaserConfig::fetchData(): no Id defined for this ODLaserConfig "));
119 "SELECT laser_configuration_id FROM ecal_laser_cycle "
120 "WHERE cycle_id = :1 ");
130 throw(std::runtime_error(
"ODLaserCycle::fetchData(): " + e.getMessage()));
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
void setLaserConfigurationID(int x)
int ODLaserCycle::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 56 of file ODLaserCycle.cc.
References alignCSCRings::e.
67 "SELECT cycle_id, laser_configuration_id FROM ecal_laser_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(
"ODLaserCycle::fetchID: " + e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
int ODLaserCycle::getId |
( |
void |
| ) |
const |
|
inline |
int ODLaserCycle::getLaserConfigurationID |
( |
| ) |
const |
|
inline |
std::string ODLaserCycle::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
void ODLaserCycle::insertConfig |
( |
| ) |
|
|
privatenoexcept |
Definition at line 134 of file ODLaserCycle.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 terminateWriteStatement() noexcept(false)
void writeDB() noexcept(false)
void prepareWrite() noexcept(false) override
bool ODLaserCycle::operator!= |
( |
const ODLaserCycle & |
m | ) |
const |
|
inline |
bool ODLaserCycle::operator== |
( |
const ODLaserCycle & |
m | ) |
const |
|
inline |
void ODLaserCycle::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 21 of file ODLaserCycle.cc.
References alignCSCRings::e.
27 "INSERT INTO ECAL_Laser_Cycle (cycle_id, laser_configuration_id ) "
30 throw(std::runtime_error(
"ODLaserCycle::prepareWrite(): " + e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::SQLException SQLException
void ODLaserCycle::setByID |
( |
int |
id | ) |
|
|
privatenoexcept |
Definition at line 86 of file ODLaserCycle.cc.
References alignCSCRings::e.
92 "SELECT cycle_id, laser_configuration_id FROM ecal_laser_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(
"ODLaserCycle::fetchID: " + e.getMessage()));
oracle::occi::Connection * m_conn
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::SQLException SQLException
void ODLaserCycle::setId |
( |
int |
id | ) |
|
|
inline |
void ODLaserCycle::setLaserConfigurationID |
( |
int |
x | ) |
|
|
inline |
void ODLaserCycle::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 34 of file ODLaserCycle.cc.
References alignCSCRings::e, and getId().
45 throw(std::runtime_error(
"ODLaserCycle::writeDB: " + e.getMessage()));
50 throw(std::runtime_error(
"ODLaserCycle::writeDB: Failed to write"));
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
oracle::occi::SQLException SQLException
int getLaserConfigurationID() const
void checkPrepare() noexcept(false)
int ODLaserCycle::m_laser_config_id |
|
private |