#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 () const |
virtual bool | isValid () |
LMFUnique () | |
LMFUnique (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
LMFUnique (EcalDBConnection *c) | |
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 int const | 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, IUniqueDBObject::m_ID, nodebug(), setClassName(), and IDBObject::setConnection().
|
inline |
Definition at line 42 of file LMFUnique.h.
References _profiling, EcalDBConnection::getConn(), EcalDBConnection::getEnv(), 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 mergeVDriftHistosByStation::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::fetch(), fetchAll(), LMFCorrCoefDat::fetchBetween(), LMFPnPrimDat::LMFPnPrimDat(), and LMFDat::writeDB().
|
virtual |
Reimplemented in LMFDat, LMFRunIOV, and LMFIOV.
Definition at line 104 of file LMFUnique.cc.
References remoteMonitoring_LASER_era2018_cfg::dump.
Referenced by LMFRunIOV::dump(), LMFDat::dump(), LMFCorrCoefDat::fetch(), fetchAll(), and LMFSeqDat::writeDBSql().
|
virtual |
Reimplemented in LMFDat.
Definition at line 106 of file LMFUnique.cc.
References gather_cfg::cout, cuy::ii, sistrip::SpyUtilities::isValid(), submitPVResolutionJobs::key, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
|
virtualnoexcept |
Definition at line 61 of file LMFUnique.cc.
References gather_cfg::cout, createObject(), debug(), dump(), alignCSCRings::e, cppFunctionSkipper::exception, cmsLHEtoEOSManager::l, class-composition::o, setByID(), 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, alignCSCRings::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(), LMFSeqDat::fetchByRunIOV(), LMFRunIOV::fetchBySequence(), LMFRunIOV::fetchLastBeforeSequence(), EcalCondDBInterface::fetchLMFRunIOV(), 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::setLMFRunTag(), LMFRunIOV::setSequence(), LMFCorrCoefDatComponent::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, and runTheMatrix::ret.
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, 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 LMFSeqDat.
Definition at line 52 of file LMFUnique.h.
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
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().
|
inline |
|
inlinevirtual |
|
inlinevirtual |
std::string LMFUnique::sequencePostfix | ( | const Tm & | t | ) |
Definition at line 9 of file LMFUnique.cc.
References Tm::str(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LMFRunIOV::writeDBSql(), LMFSeqDat::writeDBSql(), and LMFLmrSubIOV::writeDBSql().
|
overridevirtualnoexcept |
Implements IUniqueDBObject.
Definition at line 267 of file LMFUnique.cc.
References gather_cfg::cout, alignCSCRings::e, gpuClustering::id, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LMFCorrCoefDat::fetch(), fetchAll(), LMFSeqDat::fetchByRunIOV(), LMFRunIOV::fetchBySequence(), LMFRunIOV::getLMFColor(), LMFLmrSubIOV::getLMFIOV(), LMFCorrCoefDatComponent::getLMFLmrSubIOV(), LMFDat::getLMFRunIOV(), LMFRunIOV::getLMFRunTag(), LMFRunIOV::getSequence(), LMFCorrCoefDatComponent::getSequence(), and LMFRunIOV::getTriggerType().
|
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, submitPVResolutionJobs::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, submitPVResolutionJobs::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, remoteMonitoring_LASER_era2018_cfg::dump, alignCSCRings::e, dataset::end, command_line::start, 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, alignCSCRings::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().