#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 boost::ptr_list< 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 17 of file LMFUnique.h.
typedef oracle::occi::ResultSet LMFUnique::ResultSet |
Definition at line 19 of file LMFUnique.h.
typedef oracle::occi::Statement LMFUnique::Statement |
Definition at line 20 of file LMFUnique.h.
|
inline |
Definition at line 23 of file LMFUnique.h.
References _profiling, IDBObject::m_conn, IDBObject::m_env, IUniqueDBObject::m_ID, nodebug(), and setClassName().
|
inline |
Definition at line 31 of file LMFUnique.h.
References _profiling, IUniqueDBObject::m_ID, nodebug(), setClassName(), and IDBObject::setConnection().
|
inline |
Definition at line 38 of file LMFUnique.h.
References _profiling, EcalDBConnection::getConn(), EcalDBConnection::getEnv(), IUniqueDBObject::m_ID, nodebug(), setClassName(), IDBObject::setConnection(), and ~LMFUnique().
|
override |
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 getClassName(), 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.
Referenced by fetchParentIDs().
|
inline |
Definition at line 70 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 FrontierConditions_GlobalTag_cff::dump.
Referenced by LMFRunIOV::dump(), LMFDat::dump(), LMFCorrCoefDat::fetch(), fetchAll(), getClassName(), and LMFSeqDat::writeDBSql().
|
virtual |
Reimplemented in LMFDat.
Definition at line 106 of file LMFUnique.cc.
References gather_cfg::cout, DataFormats::L1THGCal::ei, cuy::ii, crabWrapper::key, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
|
virtualnoexcept |
Definition at line 61 of file LMFUnique.cc.
References gather_cfg::cout, createObject(), debug(), dump(), MillePedeFileConverter_cfg::e, cmsLHEtoEOSManager::l, EcalTangentSkim_cfg::o, setByID(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LMFDefFabric::initialize(), LMFColor::isValid(), and nodebug().
|
privatevirtual |
Reimplemented in LMFColor, LMFRunTag, LMFPrimVers, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 167 of file LMFUnique.cc.
Referenced by fetchIdSql().
|
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 getClassName(), 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 82 of file LMFUnique.h.
References fetchAllSql(), EcalDBConnection::stmt, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineprivatevirtual |
Reimplemented in LMFSeqDat, and LMFIOV.
Definition at line 86 of file LMFUnique.h.
References createObject().
|
inline |
|
inline |
Definition at line 57 of file LMFUnique.h.
References attach(), dump(), fetchID(), getString(), crabWrapper::key, m_className, dqmiodumpmetadata::n, Skims_PA_cff::name, noexcept, setByID(), setInt(), setString(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 54 of file LMFUnique.h.
References getInt(), IUniqueDBObject::m_ID, and AlCaHLTBitMon_QueryRunRegistry::string.
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(), getID(), 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 90 of file LMFUnique.h.
References noexcept, writeDB(), and writeForeignKeys().
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(), getClassName(), 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 48 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 49 of file LMFUnique.h.
References exists(), sequencePostfix(), AlCaHLTBitMon_QueryRunRegistry::string, and OrderedSet::t.
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
Definition at line 71 of file LMFUnique.h.
References fetchAll(), m_debug, and noexcept.
Referenced by LMFUnique().
|
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 isValid(), 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, cfg-viewer::getParameters(), triggerObjects_cff::id, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LMFCorrCoefDat::fetch(), fetchAll(), LMFSeqDat::fetchByRunIOV(), LMFRunIOV::fetchBySequence(), getClassName(), 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 84 of file LMFUnique.h.
|
inlineprotectedvirtual |
Definition at line 93 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::fetch(), getClassName(), LMFDat::getLMFRunIOVID(), LMFRunTag::getParameters(), LMFColor::getParameters(), LMFRunIOV::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 getClassName(), LMFCorrVers::getParameters(), LMFSeqVers::getParameters(), LMFTrigType::getParameters(), LMFPrimVers::getParameters(), LMFRunTag::getParameters(), LMFColor::getParameters(), LMFRunIOV::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, end, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getParameters().
|
inlineprivatevirtual |
Reimplemented in LMFLmrSubIOV, LMFSeqDat, LMFRunIOV, and LMFIOV.
Definition at line 81 of file LMFUnique.h.
|
protectedvirtualnoexcept |
Definition at line 302 of file LMFUnique.cc.
References KineDebug3::count(), MillePedeFileConverter_cfg::e, and mps_fire::i.
Referenced by getParameters(), and LMFDat::writeDB().
|
friend |
Definition at line 21 of file LMFUnique.h.
|
protected |
Definition at line 103 of file LMFUnique.h.
Referenced by LMFUnique(), startProfiling(), and stopProfiling().
|
protected |
Definition at line 95 of file LMFUnique.h.
Referenced by LMFDat::buildInsertSql(), LMFDat::buildSelectSql(), LMFDat::check(), LMFDat::fetch(), LMFSeqDat::fetchByRunIOV(), LMFRunIOV::fetchBySequence(), LMFDat::fetchData(), LMFSeqDat::fetchIdSql(), LMFLmrSubIOV::fetchIdSql(), getClassName(), LMFLmrSubIOV::getIOVIDsLaterThan(), LMFDat::getKeyTypes(), LMFDat::getNeighbour(), 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 96 of file LMFUnique.h.
Referenced by LMFDat::buildInsertSql(), LMFDat::buildSelectSql(), debug(), LMFRunIOV::dump(), LMFDat::fetch(), LMFDat::fetchData(), LMFSeqDat::fetchIdSql(), LMFLmrSubIOV::fetchIdSql(), LMFLmrSubIOV::getIOVIDsLaterThan(), LMFDat::isValid(), nodebug(), LMFRunIOV::operator=(), LMFLmrSubIOV::setLMFIOV(), LMFPnPrimDat::setSystem(), and LMFDat::writeDB().
|
protected |
Definition at line 102 of file LMFUnique.h.
Referenced by LMFDat::getLMFRunIOVID(), LMFRunIOV::getParameters(), LMFDat::isValid(), and LMFDat::writeDB().
|
protected |
Definition at line 100 of file LMFUnique.h.
Referenced by LMFRunIOV::fetchIdSql(), LMFColor::LMFColor(), LMFRunTag::LMFRunTag(), and LMFSeqDat::LMFSeqDat().
|
protected |
Definition at line 98 of file LMFUnique.h.
Referenced by LMFColor::LMFColor(), LMFRunTag::LMFRunTag(), LMFSeqDat::LMFSeqDat(), and LMFTrigType::LMFTrigType().