#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 (const 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.
Referenced by LMFCorrCoefDatComponent::setLMFLmrSubIOV(), and LMFDat::setLMFRunIOV().
|
privatevirtual |
Reimplemented in LMFColor, LMFRunTag, LMFPrimVers, LMFIOV, LMFTrigType, LMFCorrVers, and LMFSeqVers.
Definition at line 189 of file LMFUnique.cc.
|
inline |
|
virtual |
Reimplemented in LMFDat, LMFRunIOV, and LMFIOV.
Definition at line 112 of file LMFUnique.cc.
|
virtual |
Reimplemented in LMFDat.
Definition at line 116 of file LMFUnique.cc.
|
virtual |
Definition at line 174 of file LMFUnique.cc.
|
virtual |
Definition at line 64 of file LMFUnique.cc.
Referenced by 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.
Referenced by 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 LMFCorrVers::operator!=(), LMFPrimVers::operator!=(), LMFCorrVers::operator==(), LMFPrimVers::operator==(), LMFLmrSubIOV::setLMFIOV(), LMFCorrCoefDatComponent::setLMFLmrSubIOV(), LMFDat::setLMFRunIOV(), and LMFCorrCoefDatComponent::setSequence().
int LMFUnique::getInt | ( | std::string | fieldname | ) | const |
Definition at line 203 of file LMFUnique.cc.
Referenced by LMFColor::fetchIdSql(), LMFColor::getColorIndex(), LMFCorrCoefDatComponent::getLMFLmrSubIOV(), LMFCorrCoefDatComponent::getLMFLmrSubIOVID(), LMFDat::getLMFRunIOV(), LMFSeqDat::getSequenceNumber(), LMFRunTag::getVersion(), LMFSeqDat::getVmax(), and LMFSeqDat::getVmin().
|
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.
Referenced by LMFColor::fetchIdSql(), LMFPrimVers::getDescription(), LMFRunTag::getGeneralTag(), LMFTrigType::getLongName(), LMFColor::getLongName(), LMFSeqDat::getSequenceStart(), LMFTrigType::getShortName(), and LMFColor::getShortName().
|
inlinevirtual |
Reimplemented in LMFSeqDat.
Definition at line 46 of file LMFUnique.h.
Referenced by core.AutoHandle.AutoHandle::ReallyLoad().
|
inlinevirtual |
Reimplemented in LMFDat, LMFPrimDat, LMFPnPrimDat, LMFLaserPulseDat, LMFClsDat, LMFRunIOV, LMFColor, and LMFRunTag.
Definition at line 47 of file LMFUnique.h.
Referenced by core.AutoHandle.AutoHandle::ReallyLoad().
|
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 | ( | const Tm & | t | ) |
Definition at line 10 of file LMFUnique.cc.
Referenced by LMFLmrSubIOV::writeDBSql().
|
virtual |
Implements IUniqueDBObject.
Definition at line 286 of file LMFUnique.cc.
Referenced by LMFLmrSubIOV::getLMFIOV(), LMFCorrCoefDatComponent::getLMFLmrSubIOV(), LMFDat::getLMFRunIOV(), and LMFCorrCoefDatComponent::getSequence().
|
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(), LMFSeqVers::LMFSeqVers(), LMFTrigType::LMFTrigType(), and LMFUnique().
LMFUnique & LMFUnique::setInt | ( | std::string | key, |
int | value | ||
) |
Definition at line 33 of file LMFUnique.cc.
Referenced by LMFRunTag::getParameters(), LMFColor::getParameters(), LMFColor::setColor(), LMFCorrCoefDatComponent::setLMFLmrSubIOV(), LMFDat::setLMFRunIOV(), LMFColor::setName(), LMFSeqDat::setSequenceNumber(), LMFRunTag::setVersion(), LMFSeqDat::setVmax(), and LMFSeqDat::setVmin().
LMFUnique & LMFUnique::setString | ( | std::string | key, |
std::string | value | ||
) |
Definition at line 15 of file LMFUnique.cc.
Referenced by LMFCorrVers::getParameters(), LMFSeqVers::getParameters(), LMFTrigType::getParameters(), LMFPrimVers::getParameters(), LMFRunTag::getParameters(), LMFColor::getParameters(), LMFCorrVers::LMFCorrVers(), LMFPrimVers::LMFPrimVers(), LMFSeqVers::LMFSeqVers(), LMFColor::setColor(), LMFPrimVers::setDescription(), LMFRunTag::setGeneralTag(), LMFColor::setName(), LMFTrigType::setName(), LMFTrigType::setNames(), LMFSeqDat::setSequenceStart(), and LMFSeqDat::setSequenceStop().
|
inline |
|
inline |
|
protectedvirtual |
Reimplemented in LMFDat, LMFColoredTable, and LMFCorrCoefDatComponent.
Definition at line 339 of file LMFUnique.cc.
|
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.
|
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 LMFLmrSubIOV::fetchIdSql(), getClassName(), LMFCorrCoefDatComponent::init(), LMFClsDat::init(), LMFLaserPulseDat::init(), LMFLmrSubIOV::init(), LMFColor::LMFColor(), LMFColoredTable::LMFColoredTable(), LMFLaserConfigDat::LMFLaserConfigDat(), LMFRunDat::LMFRunDat(), LMFTestPulseConfigDat::LMFTestPulseConfigDat(), setClassName(), LMFColoredTable::setColor(), LMFColoredTable::setSystem(), and LMFLmrSubIOV::writeDBSql().
|
protected |
Definition at line 100 of file LMFUnique.h.
Referenced by debug(), LMFLmrSubIOV::fetchIdSql(), nodebug(), and LMFLmrSubIOV::setLMFIOV().
|
protected |
Definition at line 106 of file LMFUnique.h.
|
protected |
Definition at line 104 of file LMFUnique.h.
Referenced by LMFColor::LMFColor(), and LMFRunTag::LMFRunTag().
|
protected |
Definition at line 102 of file LMFUnique.h.
Referenced by LMFColor::LMFColor(), LMFRunTag::LMFRunTag(), and LMFTrigType::LMFTrigType().