#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) noexcept(false) | |
EcalDBConnection (std::string sid, std::string user, std::string pass) noexcept(false) | |
oracle::occi::Clob | getClobLocator () |
oracle::occi::Connection * | getConn () const |
oracle::occi::Environment * | getEnv () const |
void | rollback () |
void | terminateStatement (oracle::occi::Statement *stmt) |
virtual | ~EcalDBConnection () noexcept(false) |
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 15 of file EcalDBConnection.h.
|
noexcept |
Constructor Makes a connection to an oracle database without TNS_ADMIN
|
noexcept |
Constructor Makes a connection to an oracle database using TNS_ADMIN
|
virtualnoexcept |
Destructor
Definition at line 50 of file EcalDBConnection.cc.
References getInfo::conn, MillePedeFileConverter_cfg::e, and web.browse_db::env.
|
inline |
|
inline |
Get a new Statement
Definition at line 42 of file EcalDBConnection.h.
References conn, and gather_cfg::cout.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 72 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 64 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 75 of file EcalDBConnection.h.
|
protected |
Definition at line 79 of file EcalDBConnection.h.
|
protected |
Definition at line 76 of file EcalDBConnection.h.
|
protected |
Definition at line 77 of file EcalDBConnection.h.
|
protected |
Definition at line 73 of file EcalDBConnection.h.
Referenced by terminateStatement().
|
protected |
Definition at line 78 of file EcalDBConnection.h.
Referenced by dataset.BaseDataset::printInfo(), DTWorkflow.DTWorkflow::remote_out_path(), production_tasks.CheckDatasetExists::run(), production_tasks.GenerateMask::run(), production_tasks.SourceCFG::run(), production_tasks.FullCFG::run(), production_tasks.MonitorJobs::run(), and production_tasks.CleanJobFiles::run().