#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 throw (std::runtime_error) |
int | fetchID () throw (std::runtime_error) |
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 (Tm t) |
void | setByID (int id) throw (std::runtime_error) |
LMFUnique & | setInt (std::string key, int value) |
LMFUnique & | setString (std::string key, std::string value) |
void | startProfiling () |
void | stopProfiling () |
virtual | ~LMFUnique () |
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 | setClassName (std::string s) |
virtual int | writeDB () throw (std::runtime_error) |
virtual int | writeForeignKeys () throw (std::runtime_error) |
Protected Member Functions inherited from IDBObject | |
void | checkConnection () const throw (std::runtime_error) |
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 void | getParameters (ResultSet *rset) |
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(), NULL, and setClassName().
|
inline |
Definition at line 30 of file LMFUnique.h.
References _profiling, IUniqueDBObject::m_ID, nodebug(), setClassName(), and IDBObject::setConnection().
|
inline |
Definition at line 37 of file LMFUnique.h.
References _profiling, EcalDBConnection::getConn(), EcalDBConnection::getEnv(), IUniqueDBObject::m_ID, nodebug(), setClassName(), and IDBObject::setConnection().
|
virtual |
Definition at line 7 of file LMFUnique.cc.
void LMFUnique::attach | ( | std::string | name, |
LMFUnique * | u | ||
) |
Definition at line 50 of file LMFUnique.cc.
References i, and mergeVDriftHistosByStation::name.
Referenced by LMFCorrCoefDatComponent::setLMFLmrSubIOV(), LMFDat::setLMFRunIOV(), and LMFRunIOV::setSequence().
|
privatevirtual |
Reimplemented in LMFColor, LMFRunTag, LMFPrimVers, LMFIOV, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 189 of file LMFUnique.cc.
References NULL.
|
inline |
Definition at line 68 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 112 of file LMFUnique.cc.
References hcal_timing_source_file_cfg::dump.
Referenced by LMFRunIOV::dump(), LMFDat::dump(), LMFCorrCoefDat::fetch(), fetchAll(), and LMFSeqDat::writeDBSql().
|
virtual |
Reimplemented in LMFDat.
Definition at line 116 of file LMFUnique.cc.
References gather_cfg::cout, and combine::key.
|
virtual |
|
virtual |
Definition at line 64 of file LMFUnique.cc.
References gather_cfg::cout, debug(), dump(), alignCSCRings::e, prof2calltree::l, NULL, python.connectstrParser::o, and setByID().
Referenced by LMFDefFabric::initialize(), and LMFColor::isValid().
|
privatevirtual |
Reimplemented in LMFColor, LMFRunTag, LMFPrimVers, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 183 of file LMFUnique.cc.
|
virtual |
Implements IUniqueDBObject.
Definition at line 213 of file LMFUnique.cc.
References gather_cfg::cout, alignCSCRings::e, i, and n.
Referenced by LMFDat::getLMFRunIOVID(), LMFColor::setColor(), LMFColor::setName(), and LMFTrigType::setName().
|
inlineprivatevirtual |
Reimplemented in LMFLmrSubIOV, LMFSeqDat, LMFRunIOV, LMFColor, LMFRunTag, LMFPrimVers, LMFIOV, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 85 of file LMFUnique.h.
|
inlineprivatevirtual |
|
inline |
|
inline |
|
inline |
Definition at line 52 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 203 of file LMFUnique.cc.
References i, and run_regression::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().
|
inlineprivatevirtual |
Reimplemented in LMFLmrSubIOV, LMFSeqDat, LMFRunIOV, LMFColor, LMFRunTag, LMFPrimVers, LMFIOV, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 90 of file LMFUnique.h.
std::string LMFUnique::getString | ( | std::string | fieldname | ) | const |
Definition at line 194 of file LMFUnique.cc.
References i.
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 |
|
inlinevirtual |
Reimplemented in LMFDat, LMFPrimDat, LMFPnPrimDat, LMFLaserPulseDat, LMFClsDat, LMFRunIOV, LMFColor, and LMFRunTag.
Definition at line 47 of file LMFUnique.h.
|
inline |
|
inlinevirtual |
Definition at line 74 of file LMFUnique.h.
References IUniqueDBObject::m_ID.
|
inlinevirtual |
Definition at line 77 of file LMFUnique.h.
References IUniqueDBObject::m_ID.
std::string LMFUnique::sequencePostfix | ( | Tm | t | ) |
Definition at line 10 of file LMFUnique.cc.
References Tm::str().
Referenced by LMFRunIOV::writeDBSql(), LMFSeqDat::writeDBSql(), and LMFLmrSubIOV::writeDBSql().
|
virtual |
Implements IUniqueDBObject.
Definition at line 286 of file LMFUnique.cc.
References gather_cfg::cout, alignCSCRings::e, cmsPerfRegress::getParameters(), and errorMatrix2Lands_multiChannel::id.
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, LMFPrimVers, LMFIOV, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 87 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 33 of file LMFUnique.cc.
References i, combine::key, and relativeConstraints::value.
Referenced by 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 15 of file LMFUnique.cc.
References i, combine::key, and relativeConstraints::value.
Referenced by 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 |
|
protectedvirtual |
Reimplemented in LMFDat, LMFColoredTable, and LMFCorrCoefDatComponent.
Definition at line 339 of file LMFUnique.cc.
References gather_cfg::cout, debug, hcal_timing_source_file_cfg::dump, alignCSCRings::e, end, and errorMatrix2Lands_multiChannel::start.
|
inlineprivatevirtual |
Reimplemented in LMFLmrSubIOV, LMFSeqDat, LMFRunIOV, and LMFIOV.
Definition at line 84 of file LMFUnique.h.
|
protectedvirtual |
Definition at line 323 of file LMFUnique.cc.
References prof2calltree::count, alignCSCRings::e, and i.
Referenced by LMFDat::writeDB().
|
friend |
Definition at line 21 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(), LMFPrimDat::init(), LMFLmrSubIOV::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(), LMFRunIOV::getParameters(), 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().