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