#include <ODTCCEECycle.h>
Definition at line 11 of file ODTCCEECycle.h.
ODTCCEECycle::ODTCCEECycle |
( |
| ) |
|
Definition at line 9 of file ODTCCEECycle.cc.
References NULL.
oracle::occi::Environment * m_env
oracle::occi::Connection * m_conn
ODTCCEECycle::~ODTCCEECycle |
( |
| ) |
|
void ODTCCEECycle::clear |
( |
void |
| ) |
|
|
private |
Definition at line 131 of file ODTCCEECycle.cc.
References MillePedeFileConverter_cfg::e, and mps_fire::result.
137 if(result->
getId()==0){
138 throw(std::runtime_error(
"ODTCCConfig::fetchData(): no Id defined for this ODTCCConfig "));
143 m_readStmt->setSQL(
"SELECT tcc_ee_configuration_id FROM ecal_tcc_ee_cycle " 144 "WHERE cycle_id = :1 ");
154 throw(std::runtime_error(
"ODTCCEECycle::fetchData(): "+e.getMessage()));
oracle::occi::SQLException SQLException
void setTCCConfigurationID(int x)
void checkConnection() const noexcept(false)
oracle::occi::ResultSet ResultSet
int ODTCCEECycle::fetchID |
( |
| ) |
|
|
privatenoexcept |
Definition at line 71 of file ODTCCEECycle.cc.
References MillePedeFileConverter_cfg::e.
83 stmt->setSQL(
"SELECT cycle_id, tcc_ee_configuration_id FROM ecal_tcc_ee_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(
"ODTCCEECycle::fetchID: "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::ResultSet ResultSet
int ODTCCEECycle::getId |
( |
void |
| ) |
const |
|
inline |
std::string ODTCCEECycle::getTable |
( |
| ) |
|
|
inlinevirtual |
int ODTCCEECycle::getTCCConfigurationID |
( |
| ) |
const |
|
inline |
void ODTCCEECycle::insertConfig |
( |
| ) |
|
|
privatenoexcept |
bool ODTCCEECycle::operator!= |
( |
const ODTCCEECycle & |
m | ) |
const |
|
inline |
bool ODTCCEECycle::operator== |
( |
const ODTCCEECycle & |
m | ) |
const |
|
inline |
void ODTCCEECycle::prepareWrite |
( |
| ) |
|
|
privatevirtualnoexcept |
Implements IODConfig.
Definition at line 26 of file ODTCCEECycle.cc.
References MillePedeFileConverter_cfg::e.
33 m_writeStmt->setSQL(
"INSERT INTO ECAL_TCC_EE_Cycle (cycle_id, tcc_ee_configuration_id ) " 36 throw(std::runtime_error(
"ODTCCEECycle::prepareWrite(): "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const noexcept(false)
void ODTCCEECycle::setByID |
( |
int |
id | ) |
|
|
privatenoexcept |
Definition at line 104 of file ODTCCEECycle.cc.
References MillePedeFileConverter_cfg::e.
112 stmt->setSQL(
"SELECT cycle_id, tcc_ee_configuration_id FROM ecal_tcc_ee_cycle " 113 "WHERE cycle_id = :1 ");
118 m_ID = rset->getInt(1);
123 m_conn->terminateStatement(stmt);
125 throw(std::runtime_error(
"ODTCCEECycle::fetchID: "+e.getMessage()));
oracle::occi::Connection * m_conn
oracle::occi::SQLException SQLException
void checkConnection() const noexcept(false)
oracle::occi::Statement Statement
oracle::occi::ResultSet ResultSet
void ODTCCEECycle::setId |
( |
int |
id | ) |
|
|
inline |
void ODTCCEECycle::setTCCConfigurationID |
( |
int |
x | ) |
|
|
inline |
void ODTCCEECycle::writeDB |
( |
| ) |
|
|
privatenoexcept |
Definition at line 41 of file ODTCCEECycle.cc.
References MillePedeFileConverter_cfg::e, and getId().
55 throw(std::runtime_error(
"ODTCCEECycle::writeDB: "+e.getMessage()));
60 throw(std::runtime_error(
"ODTCCEECycle::writeDB: Failed to write"));
int getTCCConfigurationID() const
oracle::occi::SQLException SQLException
void checkConnection() const noexcept(false)
int fetchID() noexcept(false)
void checkPrepare() noexcept(false)
int ODTCCEECycle::m_tcc_ee_config_id |
|
private |