#include <OMDSReader.h>
Classes | |
class | QueryResults |
Public Member Functions | |
const QueryResults | basicQuery (const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") const |
const QueryResults | basicQuery (const std::string &columnName, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") const |
template<class T > | |
const QueryResults | basicQueryGenericKey (const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") const |
template<class T > | |
const QueryResults | basicQueryGenericKey (const std::string &columnName, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") const |
const QueryResults | basicQueryView (const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &viewName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") const |
const QueryResults | basicQueryView (const std::string &columnName, const std::string &schemaName, const std::string &viewName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="") const |
std::vector< std::string > | columnNames (const std::string &schemaName, const std::string &tableName) const |
std::vector< std::string > | columnNamesView (const std::string &schemaName, const std::string &viewName) const |
void | connect (const std::string &connectString, const std::string &authenticationPath) |
OMDSReader () | |
OMDSReader (const std::string &connectString, const std::string &authenticationPath) | |
template<class T > | |
const QueryResults | singleAttribute (const T &data) const |
virtual | ~OMDSReader () |
Public Member Functions inherited from l1t::DataManager | |
void | connect (const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false) |
DataManager () | |
DataManager (const std::string &connectString, const std::string &authenticationPath, bool isOMDS=false) | |
cond::DbConnection * | dbConnection () |
cond::DbSession * | dbSession () |
void | setDebug (bool debug) |
virtual | ~DataManager () |
Private Member Functions | |
OMDSReader (const OMDSReader &) | |
const OMDSReader & | operator= (const OMDSReader &) |
Additional Inherited Members | |
Protected Member Functions inherited from l1t::DataManager | |
edm::eventsetup::TypeTag | findType (const std::string &type) const |
Protected Attributes inherited from l1t::DataManager | |
cond::DbConnection * | connection |
cond::DbSession * | session |
Definition at line 44 of file OMDSReader.h.
OMDSReader::OMDSReader | ( | ) |
Definition at line 38 of file OMDSReader.cc.
OMDSReader::OMDSReader | ( | const std::string & | connectString, |
const std::string & | authenticationPath | ||
) |
Definition at line 42 of file OMDSReader.cc.
References l1t::DataManager::session, cond::DbTransaction::start(), and cond::DbSession::transaction().
|
virtual |
Definition at line 62 of file OMDSReader.cc.
|
private |
const OMDSReader::QueryResults OMDSReader::basicQuery | ( | const std::vector< std::string > & | columnNames, |
const std::string & | schemaName, | ||
const std::string & | tableName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) | const |
Definition at line 87 of file OMDSReader.cc.
References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), end, l1t::OMDSReader::QueryResults::fillVariable(), cond::DbSession::nominalSchema(), l1t::OMDSReader::QueryResults::numberRows(), o2o::query, cond::DbSession::schema(), python.IdGenerator::schema, l1t::DataManager::session, asciidump::table, and tmp.
Referenced by L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), basicQuery(), basicQueryView(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1GctRSObjectKeysOnlineProd::fillObjectKeys(), L1GctTSCObjectKeysOnlineProd::fillObjectKeys(), L1MuGMTRSKeysOnlineProd::fillObjectKeys(), L1MuGMTParametersKeysOnlineProd::fillObjectKeys(), DTTFRSKeysOnlineProd::fillObjectKeys(), L1MuTriggerScaleKeysOnlineProd::fillObjectKeys(), DTTFTSCObjectKeysOnlineProd::fillObjectKeys(), RCTObjectKeysOnlineProd::fillObjectKeys(), L1RCT_RSKeysOnlineProd::fillObjectKeys(), L1GtTscObjectKeysOnlineProd::keyL1GtParameters(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig(), L1GtTscObjectKeysOnlineProd::keyL1GtTriggerMenu(), CSCTFAlignmentOnlineProd::newObject(), L1MuGMTChannelMaskOnlineProducer::newObject(), CSCTFConfigOnlineProd::newObject(), L1GctChannelMaskOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), L1MuCSCPtLutConfigOnlineProd::newObject(), L1JetEtScaleOnlineProd::newObject(), DTTFMasksOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), L1HtMissScaleOnlineProd::newObject(), L1MuTriggerPtScaleOnlineProducer::newObject(), L1HfRingEtScaleOnlineProd::newObject(), L1EmEtScaleOnlineProd::newObject(), L1RCTParametersOnlineProd::newObject(), L1MuTriggerScalesOnlineProducer::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtPsbSetupConfigOnlineProd::newObject(), and L1SubsystemKeysOnlineProd::produce().
const OMDSReader::QueryResults OMDSReader::basicQuery | ( | const std::string & | columnName, |
const std::string & | schemaName, | ||
const std::string & | tableName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) | const |
Definition at line 150 of file OMDSReader.cc.
References basicQuery(), and columnNames().
const OMDSReader::QueryResults OMDSReader::basicQueryGenericKey | ( | const std::vector< std::string > & | columnNames, |
const std::string & | schemaName, | ||
const std::string & | tableName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) | const |
Definition at line 217 of file OMDSReader.h.
References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), end, l1t::OMDSReader::QueryResults::fillVariable(), cond::DbSession::nominalSchema(), l1t::OMDSReader::QueryResults::numberRows(), o2o::query, cond::DbSession::schema(), python.IdGenerator::schema, l1t::DataManager::session, asciidump::table, and tmp.
Referenced by L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), and L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig().
const OMDSReader::QueryResults OMDSReader::basicQueryGenericKey | ( | const std::string & | columnName, |
const std::string & | schemaName, | ||
const std::string & | tableName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) | const |
Definition at line 280 of file OMDSReader.h.
References columnNames().
const OMDSReader::QueryResults OMDSReader::basicQueryView | ( | const std::vector< std::string > & | columnNames, |
const std::string & | schemaName, | ||
const std::string & | viewName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) | const |
Definition at line 191 of file OMDSReader.cc.
References l1t::OMDSReader::QueryResults::attributeLists(), l1t::OMDSReader::QueryResults::columnNames(), l1t::OMDSReader::QueryResults::fillVariable(), cond::DbSession::nominalSchema(), l1t::OMDSReader::QueryResults::numberRows(), o2o::query, cond::DbSession::schema(), python.IdGenerator::schema, l1t::DataManager::session, and tmp.
Referenced by L1CaloHcalScaleConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().
const OMDSReader::QueryResults OMDSReader::basicQueryView | ( | const std::string & | columnName, |
const std::string & | schemaName, | ||
const std::string & | viewName, | ||
const std::string & | conditionLHS = "" , |
||
const QueryResults | conditionRHS = QueryResults() , |
||
const std::string & | conditionRHSName = "" |
||
) | const |
Definition at line 263 of file OMDSReader.cc.
References basicQuery(), and columnNames().
std::vector< std::string > OMDSReader::columnNames | ( | const std::string & | schemaName, |
const std::string & | tableName | ||
) | const |
Definition at line 165 of file OMDSReader.cc.
References i, cscdqm::h::names, cond::DbSession::nominalSchema(), cond::DbSession::schema(), python.IdGenerator::schema, l1t::DataManager::session, and asciidump::table.
Referenced by basicQuery(), basicQueryGenericKey(), basicQueryView(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), and L1GtPsbSetupConfigOnlineProd::newObject().
std::vector< std::string > OMDSReader::columnNamesView | ( | const std::string & | schemaName, |
const std::string & | viewName | ||
) | const |
Definition at line 278 of file OMDSReader.cc.
References i, cscdqm::h::names, cond::DbSession::nominalSchema(), cond::DbSession::schema(), python.IdGenerator::schema, and l1t::DataManager::session.
Referenced by L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().
void OMDSReader::connect | ( | const std::string & | connectString, |
const std::string & | authenticationPath | ||
) |
Definition at line 50 of file OMDSReader.cc.
References l1t::DataManager::connect(), l1t::DataManager::session, cond::DbTransaction::start(), and cond::DbSession::transaction().
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(), L1ConfigOnlineProdBase< TRcd, TData >::L1ConfigOnlineProdBase(), 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().
|
private |
const OMDSReader::QueryResults OMDSReader::singleAttribute | ( | const T & | data | ) | const |
Definition at line 295 of file OMDSReader.h.
References cscdqm::h::names.
Referenced by L1GtPsbSetupConfigOnlineProd::addPsbFromDb(), CSCTFObjectKeysOnlineProd::fillObjectKeys(), L1GctTSCObjectKeysOnlineProd::fillObjectKeys(), L1MuGMTParametersKeysOnlineProd::fillObjectKeys(), DTTFTSCObjectKeysOnlineProd::fillObjectKeys(), L1MuTriggerScaleKeysOnlineProd::fillObjectKeys(), RCTObjectKeysOnlineProd::fillObjectKeys(), L1GtTscObjectKeysOnlineProd::keyL1GtParameters(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig(), L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig(), L1GtTscObjectKeysOnlineProd::keyL1GtTriggerMenu(), CSCTFAlignmentOnlineProd::newObject(), L1GctChannelMaskOnlineProd::newObject(), L1GctJetFinderParamsOnlineProd::newObject(), L1MuCSCPtLutConfigOnlineProd::newObject(), CSCTFConfigOnlineProd::newObject(), L1MuGMTChannelMaskOnlineProducer::newObject(), L1JetEtScaleOnlineProd::newObject(), L1MuTriggerPtScaleOnlineProducer::newObject(), L1EmEtScaleOnlineProd::newObject(), L1HtMissScaleOnlineProd::newObject(), L1HfRingEtScaleOnlineProd::newObject(), DTTFMasksOnlineProd::newObject(), DTTFParametersOnlineProd::newObject(), L1RCTParametersOnlineProd::newObject(), L1MuTriggerScalesOnlineProducer::newObject(), L1RCTChannelMaskOnlineProd::newObject(), L1CaloHcalScaleConfigOnlineProd::newObject(), L1CaloEcalScaleConfigOnlineProd::newObject(), L1GtPrescaleFactorsAlgoTrigConfigOnlineProd::newObject(), L1GtPrescaleFactorsTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskTechTrigConfigOnlineProd::newObject(), L1GtTriggerMaskAlgoTrigConfigOnlineProd::newObject(), L1GtTriggerMaskVetoTechTrigConfigOnlineProd::newObject(), L1GtParametersConfigOnlineProd::newObject(), L1GtPsbSetupConfigOnlineProd::newObject(), L1SubsystemKeysOnlineProd::produce(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuAlgoFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuCondFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuGeneralFromDB(), L1GtTriggerMenuConfigOnlineProd::tableMenuObjectParametersFromDB(), and L1GtTriggerMenuConfigOnlineProd::tableMenuTechTrigFromDB().