#include <EcalDBConnection.h>
Public Member Functions | |
void | commit () |
oracle::occi::Statement * | createStatement () |
EcalDBConnection (std::string host, std::string sid, std::string user, std::string pass, int port=1521) throw (std::runtime_error) | |
EcalDBConnection (std::string sid, std::string user, std::string pass) throw (std::runtime_error) | |
oracle::occi::Clob | getClobLocator () |
oracle::occi::Connection * | getConn () const |
oracle::occi::Environment * | getEnv () const |
void | rollback () |
void | terminateStatement (oracle::occi::Statement *stmt) |
virtual | ~EcalDBConnection () throw (std::runtime_error) |
Protected Attributes | |
oracle::occi::Connection * | conn |
oracle::occi::Environment * | env |
std::string | host |
std::string | pass |
int | port |
std::string | sid |
oracle::occi::Statement * | stmt |
std::string | user |
A wrapper class for the oracle Connection and Environment classes along with any OCCI-dependent methods that are useful for any database
Definition at line 16 of file EcalDBConnection.h.
EcalDBConnection::EcalDBConnection | ( | std::string | host, |
std::string | sid, | ||
std::string | user, | ||
std::string | pass, | ||
int | port = 1521 |
||
) | |||
throw | ( | std::runtime_error | |
) |
Constructor Makes a connection to an oracle database without TNS_ADMIN
EcalDBConnection::EcalDBConnection | ( | std::string | sid, |
std::string | user, | ||
std::string | pass | ||
) | |||
throw | ( | std::runtime_error | |
) |
Constructor Makes a connection to an oracle database using TNS_ADMIN
|
virtual |
Destructor
Definition at line 61 of file EcalDBConnection.cc.
References results_mgr::conn, and web.browse_db::env.
|
inline |
|
inline |
Get a new Statement
Definition at line 55 of file EcalDBConnection.h.
References conn, and gather_cfg::cout.
|
inline |
|
inline |
Definition at line 82 of file EcalDBConnection.h.
References conn.
Referenced by LMFCorrCoefDat::LMFCorrCoefDat(), LMFDefFabric::LMFDefFabric(), LMFIOV::LMFIOV(), and LMFUnique::LMFUnique().
|
inline |
Definition at line 81 of file EcalDBConnection.h.
References env.
Referenced by LMFCorrCoefDat::LMFCorrCoefDat(), LMFDefFabric::LMFDefFabric(), LMFIOV::LMFIOV(), and LMFUnique::LMFUnique().
|
inline |
|
inline |
|
protected |
Definition at line 91 of file EcalDBConnection.h.
Referenced by commit(), createStatement(), EcalCondDBInterface::EcalCondDBInterface(), EcalCondDBInterface::fetchConfigDataSet(), EcalCondDBInterface::fetchConfigSet(), EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchDataSetWithMap(), EcalCondDBInterface::fetchDCSDataSet(), EcalCondDBInterface::fetchLastConfigSet(), EcalCondDBInterface::fetchValidDataSet(), getClobLocator(), getConn(), EcalCondDBInterface::insertConfigDataArraySet(), EcalCondDBInterface::insertConfigDataSet(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), EcalCondDBInterface::insertDataSet(), EcalCondDBInterface::insertDataSetVector(), rollback(), and terminateStatement().
|
protected |
Definition at line 82 of file EcalDBConnection.h.
Referenced by EcalCondDBInterface::EcalCondDBInterface(), EcalCondDBInterface::fetchConfigDataSet(), EcalCondDBInterface::fetchConfigSet(), EcalCondDBInterface::fetchDataSet(), EcalCondDBInterface::fetchDataSetWithMap(), EcalCondDBInterface::fetchDCSDataSet(), EcalCondDBInterface::fetchLastConfigSet(), EcalCondDBInterface::fetchValidDataSet(), getEnv(), EcalCondDBInterface::insertConfigDataArraySet(), EcalCondDBInterface::insertConfigDataSet(), EcalCondDBInterface::insertConfigSet(), EcalCondDBInterface::insertDataArraySet(), EcalCondDBInterface::insertDataSet(), and EcalCondDBInterface::insertDataSetVector().
|
protected |
Definition at line 94 of file EcalDBConnection.h.
|
protected |
Definition at line 98 of file EcalDBConnection.h.
|
protected |
Definition at line 95 of file EcalDBConnection.h.
Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::sinkPort(), and Vispa.Gui.ConnectableWidget.ConnectableWidget::sourcePort().
|
protected |
Definition at line 96 of file EcalDBConnection.h.
|
protected |
Definition at line 92 of file EcalDBConnection.h.
|
protected |
Definition at line 97 of file EcalDBConnection.h.
Referenced by cmsPerfSuite.PerfSuite::optionParse().