#include <LMFUnique.h>
Public Types | |
typedef oracle::occi::ResultSet | ResultSet |
typedef oracle::occi::Statement | Statement |
Public Member Functions | |
void | attach (std::string name, LMFUnique *u) |
void | debug () |
virtual void | dump () const |
virtual void | dump (int n) const |
virtual bool | exists () |
virtual std::list< std::unique_ptr< LMFUnique > > | fetchAll () const noexcept(false) |
int | fetchID () noexcept(false) override |
std::string | getClassName () |
std::string | getClassName () const |
int | getID () const |
int | getInt (std::string fieldname) const |
std::string | getString (std::string fieldname) const |
virtual bool | isValid () |
virtual bool | isValid () const |
LMFUnique () | |
LMFUnique (EcalDBConnection *c) | |
LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
void | nodebug () |
virtual bool | operator< (const LMFUnique &r) |
virtual bool | operator<= (const LMFUnique &r) |
std::string | sequencePostfix (const Tm &t) |
void | setByID (int id) noexcept(false) override |
LMFUnique & | setInt (std::string key, int value) |
LMFUnique & | setString (std::string key, std::string value) |
void | startProfiling () |
void | stopProfiling () |
~LMFUnique () override | |
Public Member Functions inherited from IDBObject | |
oracle::occi::Connection * | getConn () const |
oracle::occi::Environment * | getEnv () const |
void | setConnection (oracle::occi::Environment *env, oracle::occi::Connection *conn) |
virtual | ~IDBObject () |
Protected Member Functions | |
virtual void | getParameters (ResultSet *rset) |
virtual void | setClassName (std::string s) |
virtual int | writeDB () noexcept(false) |
virtual int | writeForeignKeys () noexcept(false) |
Protected Member Functions inherited from IDBObject | |
void | checkConnection () const noexcept(false) |
Protected Attributes | |
bool | _profiling |
std::string | m_className |
char | m_debug |
std::map< std::string, LMFUnique * > | m_foreignKeys |
std::map< std::string, int > | m_intFields |
std::map< std::string, std::string > | m_stringFields |
Protected Attributes inherited from IUniqueDBObject | |
int | m_ID |
Protected Attributes inherited from IDBObject | |
oracle::occi::Connection * | m_conn |
oracle::occi::Environment * | m_env |
Private Member Functions | |
virtual LMFUnique * | createObject () const |
virtual std::string | fetchAllSql (Statement *stmt) const |
virtual std::string | fetchIdSql (Statement *stmt) |
virtual void | fetchParentIDs () |
virtual std::string | setByIDSql (Statement *stmt, int id) |
virtual std::string | writeDBSql (Statement *stmt) |
Friends | |
class | EcalCondDBInterface |
Additional Inherited Members | |
Static Public Attributes inherited from IDBObject | |
static const int | ECALDB_NROWS = 1024 |
Definition at line 21 of file LMFUnique.h.
typedef oracle::occi::ResultSet LMFUnique::ResultSet |
Definition at line 23 of file LMFUnique.h.
typedef oracle::occi::Statement LMFUnique::Statement |
Definition at line 24 of file LMFUnique.h.
|
inline |
Definition at line 27 of file LMFUnique.h.
References _profiling, IDBObject::m_conn, IDBObject::m_env, IUniqueDBObject::m_ID, nodebug(), and setClassName().
|
inline |
Definition at line 35 of file LMFUnique.h.
References _profiling, SiStripCommissioningClient_cfg::conn, web.browse_db::env, IUniqueDBObject::m_ID, nodebug(), setClassName(), and IDBObject::setConnection().
|
inline |
Definition at line 42 of file LMFUnique.h.
References _profiling, HltBtagPostValidation_cff::c, IUniqueDBObject::m_ID, nodebug(), setClassName(), and IDBObject::setConnection().
|
override |
Definition at line 7 of file LMFUnique.cc.
void LMFUnique::attach | ( | std::string | name, |
LMFUnique * | u | ||
) |
Definition at line 48 of file LMFUnique.cc.
References mps_fire::i, and Skims_PA_cff::name.
Referenced by LMFCorrCoefDatComponent::setLMFLmrSubIOV(), LMFDat::setLMFRunIOV(), and LMFRunIOV::setSequence().
|
privatevirtual |
Reimplemented in LMFColor, LMFRunTag, LMFIOV, LMFPrimVers, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 173 of file LMFUnique.cc.
|
inline |
Definition at line 74 of file LMFUnique.h.
References m_debug.
Referenced by LMFCorrCoefDat::fetchBetween(), LMFPnPrimDat::LMFPnPrimDat(), and LMFDat::writeDB().
|
virtual |
Reimplemented in LMFDat, LMFRunIOV, and LMFIOV.
Definition at line 104 of file LMFUnique.cc.
References FrontierConditions_GlobalTag_cff::dump.
Referenced by LMFRunIOV::dump(), LMFDat::dump(), LMFCorrCoefDat::fetch(), and LMFSeqDat::writeDBSql().
|
virtual |
Reimplemented in LMFDat.
Definition at line 106 of file LMFUnique.cc.
References gather_cfg::cout, cuy::ii, crabWrapper::key, dqmiodumpmetadata::n, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
|
virtualnoexcept |
Definition at line 61 of file LMFUnique.cc.
References gather_cfg::cout, createObject(), MillePedeFileConverter_cfg::e, cppFunctionSkipper::exception, cmsLHEtoEOSManager::l, EcalTangentSkim_cfg::o, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LMFDefFabric::initialize(), and LMFColor::isValid().
|
privatevirtual |
Reimplemented in LMFColor, LMFRunTag, LMFPrimVers, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 167 of file LMFUnique.cc.
|
overridevirtualnoexcept |
Implements IUniqueDBObject.
Definition at line 197 of file LMFUnique.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, mps_fire::i, dqmiodumpmetadata::n, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LMFDat::getLMFRunIOVID(), LMFColor::setColor(), LMFColor::setName(), and LMFTrigType::setName().
|
inlineprivatevirtual |
Reimplemented in LMFLmrSubIOV, LMFSeqDat, LMFRunIOV, LMFColor, LMFRunTag, LMFIOV, LMFPrimVers, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 86 of file LMFUnique.h.
|
inlineprivatevirtual |
|
inline |
|
inline |
|
inline |
Definition at line 58 of file LMFUnique.h.
References IUniqueDBObject::m_ID.
Referenced by LMFCorrCoefDat::fetch(), LMFCorrCoefDat::find(), LMFDefFabric::getColorID(), LMFCorrCoefDat::getFlag(), LMFCorrCoefDat::getParameterErrors(), LMFCorrCoefDat::getParameters(), LMFDefFabric::getRunTagID(), LMFCorrCoefDat::getSeqID(), LMFCorrCoefDat::getSequence(), LMFDefFabric::getTrigTypeID(), LMFCorrVers::operator!=(), LMFPrimVers::operator!=(), LMFCorrVers::operator==(), LMFPrimVers::operator==(), LMFRunIOV::setColor(), LMFLmrSubIOV::setLMFIOV(), LMFCorrCoefDatComponent::setLMFLmrSubIOV(), LMFDat::setLMFRunIOV(), LMFRunIOV::setSequence(), LMFRunIOV::setTriggerType(), and LMFDat::writeDB().
int LMFUnique::getInt | ( | std::string | fieldname | ) | const |
Definition at line 187 of file LMFUnique.cc.
References mps_fire::i, runTheMatrix::ret, and alignCSCRings::s.
Referenced by LMFColor::fetchIdSql(), LMFColor::getColorIndex(), LMFRunIOV::getLMFColor(), LMFCorrCoefDatComponent::getLMFLmrSubIOV(), LMFCorrCoefDatComponent::getLMFLmrSubIOVID(), LMFDat::getLMFRunIOV(), LMFDat::getLMFRunIOVID(), LMFRunIOV::getLMFRunTag(), LMFRunIOV::getLmr(), LMFRunIOV::getSequence(), LMFSeqDat::getSequenceNumber(), LMFRunIOV::getTriggerType(), LMFRunTag::getVersion(), LMFSeqDat::getVmax(), LMFSeqDat::getVmin(), and LMFRunIOV::writeDBSql().
|
inlineprotectedvirtual |
Reimplemented in LMFLmrSubIOV, LMFSeqDat, LMFRunIOV, LMFColor, LMFRunTag, LMFIOV, LMFPrimVers, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 94 of file LMFUnique.h.
std::string LMFUnique::getString | ( | std::string | fieldname | ) | const |
Definition at line 178 of file LMFUnique.cc.
References mps_fire::i, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LMFColor::fetchIdSql(), LMFRunIOV::getDBInsertionTime(), LMFPrimVers::getDescription(), LMFRunTag::getGeneralTag(), LMFTrigType::getLongName(), LMFColor::getLongName(), LMFSeqDat::getSequenceStart(), LMFSeqDat::getSequenceStop(), LMFTrigType::getShortName(), LMFColor::getShortName(), LMFRunIOV::getSubRunEnd(), LMFRunIOV::getSubRunStart(), and LMFRunIOV::getSubRunType().
|
inlinevirtual |
Reimplemented in LMFDat, LMFPrimDat, LMFPnPrimDat, LMFLaserPulseDat, LMFClsDat, LMFRunIOV, LMFColor, and LMFRunTag.
Definition at line 53 of file LMFUnique.h.
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inlinevirtual |
Reimplemented in LMFSeqDat.
Definition at line 52 of file LMFUnique.h.
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
|
inlinevirtual |
Definition at line 79 of file LMFUnique.h.
References IUniqueDBObject::m_ID, and alignCSCRings::r.
|
inlinevirtual |
Definition at line 80 of file LMFUnique.h.
References IUniqueDBObject::m_ID, and alignCSCRings::r.
std::string LMFUnique::sequencePostfix | ( | const Tm & | t | ) |
Definition at line 9 of file LMFUnique.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and submitPVValidationJobs::t.
Referenced by LMFRunIOV::writeDBSql(), LMFSeqDat::writeDBSql(), and LMFLmrSubIOV::writeDBSql().
|
overridevirtualnoexcept |
Implements IUniqueDBObject.
Definition at line 267 of file LMFUnique.cc.
References gather_cfg::cout, MillePedeFileConverter_cfg::e, triggerObjects_cff::id, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LMFCorrCoefDat::fetch(), LMFRunIOV::fetchBySequence(), LMFRunIOV::getLMFColor(), LMFLmrSubIOV::getLMFIOV(), LMFCorrCoefDatComponent::getLMFLmrSubIOV(), LMFDat::getLMFRunIOV(), LMFRunIOV::getLMFRunTag(), and LMFRunIOV::getSequence().
|
inlineprivatevirtual |
Reimplemented in LMFLmrSubIOV, LMFSeqDat, LMFRunIOV, LMFColor, LMFRunTag, LMFIOV, LMFPrimVers, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 88 of file LMFUnique.h.
|
inlineprotectedvirtual |
Definition at line 97 of file LMFUnique.h.
References m_className, and alignCSCRings::s.
Referenced by LMFCorrVers::LMFCorrVers(), LMFPrimVers::LMFPrimVers(), LMFRunTag::LMFRunTag(), LMFSeqDat::LMFSeqDat(), LMFSeqVers::LMFSeqVers(), LMFTrigType::LMFTrigType(), and LMFUnique().
LMFUnique & LMFUnique::setInt | ( | std::string | key, |
int | value | ||
) |
Definition at line 31 of file LMFUnique.cc.
References mps_fire::i, crabWrapper::key, and relativeConstraints::value.
Referenced by LMFDat::getLMFRunIOVID(), LMFRunTag::getParameters(), LMFColor::getParameters(), LMFSeqDat::getParameters(), LMFColor::setColor(), LMFRunIOV::setColor(), LMFRunIOV::setColorIndex(), LMFCorrCoefDatComponent::setLMFLmrSubIOV(), LMFDat::setLMFRunIOV(), LMFRunIOV::setLMFRunTag(), LMFRunIOV::setLmr(), LMFColor::setName(), LMFRunIOV::setSequence(), LMFSeqDat::setSequenceNumber(), LMFRunIOV::setTriggerType(), LMFRunTag::setVersion(), LMFSeqDat::setVmax(), and LMFSeqDat::setVmin().
LMFUnique & LMFUnique::setString | ( | std::string | key, |
std::string | value | ||
) |
Definition at line 14 of file LMFUnique.cc.
References mps_fire::i, crabWrapper::key, and relativeConstraints::value.
Referenced by LMFCorrVers::getParameters(), LMFSeqVers::getParameters(), LMFTrigType::getParameters(), LMFPrimVers::getParameters(), LMFRunTag::getParameters(), LMFColor::getParameters(), LMFSeqDat::getParameters(), LMFCorrVers::LMFCorrVers(), LMFPrimVers::LMFPrimVers(), LMFSeqVers::LMFSeqVers(), LMFColor::setColor(), LMFPrimVers::setDescription(), LMFRunTag::setGeneralTag(), LMFColor::setName(), LMFTrigType::setName(), LMFTrigType::setNames(), LMFSeqDat::setSequenceStart(), LMFSeqDat::setSequenceStop(), LMFRunIOV::setSubRunEnd(), LMFRunIOV::setSubRunStart(), and LMFRunIOV::setSubRunType().
|
inline |
|
inline |
|
protectedvirtualnoexcept |
Reimplemented in LMFDat, LMFColoredTable, and LMFCorrCoefDatComponent.
Definition at line 316 of file LMFUnique.cc.
References gather_cfg::cout, debug, FrontierConditions_GlobalTag_cff::dump, MillePedeFileConverter_cfg::e, mps_fire::end, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineprivatevirtual |
Reimplemented in LMFLmrSubIOV, LMFSeqDat, LMFRunIOV, and LMFIOV.
Definition at line 85 of file LMFUnique.h.
|
protectedvirtualnoexcept |
Definition at line 302 of file LMFUnique.cc.
References submitPVResolutionJobs::count, MillePedeFileConverter_cfg::e, and mps_fire::i.
Referenced by LMFDat::writeDB().
|
friend |
Definition at line 25 of file LMFUnique.h.
|
protected |
Definition at line 107 of file LMFUnique.h.
Referenced by LMFUnique(), startProfiling(), and stopProfiling().
|
protected |
Definition at line 99 of file LMFUnique.h.
Referenced by LMFDat::buildInsertSql(), LMFDat::buildSelectSql(), LMFDat::check(), LMFDat::fetchData(), LMFSeqDat::fetchIdSql(), LMFLmrSubIOV::fetchIdSql(), getClassName(), LMFDat::getKeyTypes(), LMFCorrCoefDatComponent::init(), LMFClsDat::init(), LMFLaserPulseDat::init(), LMFPnPrimDat::init(), LMFLmrSubIOV::init(), LMFPrimDat::init(), LMFDat::isValid(), LMFColor::LMFColor(), LMFColoredTable::LMFColoredTable(), LMFLaserConfigDat::LMFLaserConfigDat(), LMFRunDat::LMFRunDat(), LMFTestPulseConfigDat::LMFTestPulseConfigDat(), setClassName(), LMFColoredTable::setColor(), LMFColoredTable::setSystem(), LMFDat::writeDB(), and LMFLmrSubIOV::writeDBSql().
|
protected |
Definition at line 100 of file LMFUnique.h.
Referenced by LMFDat::buildInsertSql(), LMFDat::buildSelectSql(), debug(), LMFRunIOV::dump(), LMFDat::fetchData(), LMFSeqDat::fetchIdSql(), LMFLmrSubIOV::fetchIdSql(), LMFDat::isValid(), nodebug(), LMFRunIOV::operator=(), LMFLmrSubIOV::setLMFIOV(), LMFPnPrimDat::setSystem(), and LMFDat::writeDB().
|
protected |
Definition at line 106 of file LMFUnique.h.
Referenced by LMFDat::getLMFRunIOVID(), LMFDat::isValid(), and LMFDat::writeDB().
|
protected |
Definition at line 104 of file LMFUnique.h.
Referenced by LMFRunIOV::fetchIdSql(), LMFColor::LMFColor(), LMFRunTag::LMFRunTag(), and LMFSeqDat::LMFSeqDat().
|
protected |
Definition at line 102 of file LMFUnique.h.
Referenced by LMFColor::LMFColor(), LMFRunTag::LMFRunTag(), LMFSeqDat::LMFSeqDat(), and LMFTrigType::LMFTrigType().