#include <PayloadReader.h>
Public Member Functions | |
void | close () |
ConnectionPool & | connection () |
template<typename T > | |
std::shared_ptr< T > | fetch (const cond::Hash &payloadHash) |
void | open (const std::string &connectionString) |
void | open () |
PayloadReader & | operator= (const PayloadReader &rhs) |
PayloadReader () | |
PayloadReader (const PayloadReader &rhs) | |
virtual | ~PayloadReader () |
Static Public Attributes | |
static const char *const | PRODUCTION_DB = "oracle://cms_orcon_adg/CMS_CONDITIONS" |
Private Attributes | |
std::shared_ptr< ConnectionPool > | m_connection |
Session | m_session |
Definition at line 23 of file PayloadReader.h.
PayloadReader::PayloadReader | ( | ) |
Definition at line 7 of file PayloadReader.cc.
References m_connection.
PayloadReader::PayloadReader | ( | const PayloadReader & | rhs | ) |
Definition at line 11 of file PayloadReader.cc.
|
virtual |
Definition at line 16 of file PayloadReader.cc.
void PayloadReader::close | ( | void | ) |
Definition at line 37 of file PayloadReader.cc.
References cond::persistency::Session::close(), and m_session.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog::keyPressEvent().
ConnectionPool & PayloadReader::connection | ( | ) |
Definition at line 25 of file PayloadReader.cc.
References m_connection.
|
inline |
Definition at line 63 of file PayloadReader.h.
References cond::persistency::Transaction::commit(), cond::persistency::Session::connectionString(), cond::persistency::Session::fetchPayload(), m_session, open(), PRODUCTION_DB, cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().
void PayloadReader::open | ( | const std::string & | connectionString | ) |
Definition at line 29 of file PayloadReader.cc.
References m_connection, and m_session.
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig().
void PayloadReader::open | ( | ) |
Definition at line 33 of file PayloadReader.cc.
References PRODUCTION_DB.
Referenced by fetch(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig().
PayloadReader & PayloadReader::operator= | ( | const PayloadReader & | rhs | ) |
Definition at line 19 of file PayloadReader.cc.
References m_connection, and m_session.
|
private |
Definition at line 59 of file PayloadReader.h.
Referenced by connection(), open(), operator=(), and PayloadReader().
|
private |
Definition at line 60 of file PayloadReader.h.
Referenced by close(), fetch(), open(), and operator=().
|
static |
Definition at line 26 of file PayloadReader.h.