To be moved in DBCommon, has to serve also the pure coral use case. More...
#include <ConnectionPool.h>
Public Member Functions | |
coral::IConnectionServiceConfiguration & | configuration () |
SharedSession | connect (const std::string &connectionString, coral::AccessMode accessMode) |
SharedSession | connect (const std::string &connectionString, const std::string &asRole, coral::AccessMode accessMode) |
ConnectionPool () | |
coral::IConnectionService & | connectionService () |
virtual | ~ConnectionPool () |
Static Private Member Functions | |
static std::string | lookupString (const std::string &connectionString, coral::AccessMode accessMode) |
static std::string | lookupString (const std::string &connectionString, const std::string &role, coral::AccessMode accessMode) |
Private Attributes | |
coral::ConnectionService | m_connectionService |
std::map< std::string, boost::weak_ptr < coral::ISessionProxy > > | m_sessions |
To be moved in DBCommon, has to serve also the pure coral use case.
Definition at line 32 of file ConnectionPool.h.
ora::ConnectionPool::ConnectionPool | ( | ) |
Definition at line 43 of file ConnectionPool.cc.
|
virtual |
Definition at line 46 of file ConnectionPool.cc.
coral::IConnectionServiceConfiguration & ora::ConnectionPool::configuration | ( | ) |
Definition at line 52 of file ConnectionPool.cc.
ora::SharedSession ora::ConnectionPool::connect | ( | const std::string & | connectionString, |
coral::AccessMode | accessMode | ||
) |
Definition at line 56 of file ConnectionPool.cc.
References python.CommonUtils::session, tmp, and TrackValidation_HighPurity_cff::valid.
Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
ora::SharedSession ora::ConnectionPool::connect | ( | const std::string & | connectionString, |
const std::string & | asRole, | ||
coral::AccessMode | accessMode | ||
) |
Definition at line 77 of file ConnectionPool.cc.
References python.CommonUtils::session, tmp, and TrackValidation_HighPurity_cff::valid.
Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea::__init__(), Vispa.Views.PropertyView.BooleanProperty::__init__(), Vispa.Gui.FindDialog.FindDialog::_addScript(), Vispa.Gui.FindDialog.FindDialog::_addStringProperty(), Vispa.Main.Application.Application::_connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView::_createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog::addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer::addWidget(), Vispa.Views.PropertyView.PropertyView::append(), Vispa.Views.PropertyView.PropertyView::appendAddRow(), Vispa.Main.Application.Application::createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createButton(), Vispa.Views.LineDecayView.LineDecayView::createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty::createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Gui.PortWidget.PortWidget::mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty::setChecked(), Vispa.Main.SplitterTab.SplitterTab::setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab::setController(), Vispa.Views.PropertyView.BooleanProperty::setReadOnly(), Vispa.Views.PropertyView.DropDownProperty::setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty::setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::setTab(), Vispa.Views.PropertyView.IntegerProperty::setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController::updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::updateViewMenu().
coral::IConnectionService & ora::ConnectionPool::connectionService | ( | ) |
Definition at line 49 of file ConnectionPool.cc.
|
staticprivate |
Definition at line 100 of file ConnectionPool.cc.
|
staticprivate |
Definition at line 112 of file ConnectionPool.cc.
|
private |
Definition at line 53 of file ConnectionPool.h.
|
private |
Definition at line 55 of file ConnectionPool.h.