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