CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Friends
LMFSeqVers Class Reference

#include <LMFSeqVers.h>

Inheritance diagram for LMFSeqVers:
LMFPrimVers LMFUnique IUniqueDBObject IDBObject

Public Member Functions

 LMFSeqVers ()
 
 LMFSeqVers (EcalDBConnection *c)
 
 LMFSeqVers (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
bool operator!= (const LMFSeqVers &t) const
 
bool operator== (const LMFSeqVers &t) const
 
 ~LMFSeqVers () override
 
- Public Member Functions inherited from LMFPrimVers
std::string getDescription () const
 
int getVersion () const
 
 LMFPrimVers ()
 
 LMFPrimVers (EcalDBConnection *c)
 
 LMFPrimVers (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
bool operator!= (const LMFPrimVers &t) const
 
bool operator== (const LMFPrimVers &t) const
 
void setDescription (const std::string &s)
 
void setVersion (int v)
 
 ~LMFPrimVers () override
 
- Public Member Functions inherited from LMFUnique
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< LMFUniquefetchAll () 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
 
LMFUniquesetInt (std::string key, int value)
 
LMFUniquesetString (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 ()
 

Private Member Functions

LMFUniquecreateObject () const override
 
std::string fetchAllSql (Statement *stmt) const override
 
std::string fetchIdSql (Statement *stmt) override
 
void getParameters (ResultSet *rset) override
 
std::string setByIDSql (Statement *stmt, int id) override
 

Friends

class LMFRunIOV
 

Additional Inherited Members

- Public Types inherited from LMFUnique
typedef oracle::occi::ResultSet ResultSet
 
typedef oracle::occi::Statement Statement
 
- Static Public Attributes inherited from IDBObject
static int const ECALDB_NROWS =1024
 
- Protected Member Functions inherited from LMFUnique
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 inherited from LMFUnique
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
 

Detailed Description

LMF sequence version

Definition at line 17 of file LMFSeqVers.h.

Constructor & Destructor Documentation

LMFSeqVers::LMFSeqVers ( )

Definition at line 6 of file LMFSeqVers.cc.

References LMFUnique::setClassName(), and LMFUnique::setString().

Referenced by createObject().

6  : LMFPrimVers()
7 {
8  setClassName("LMFSeqVers");
9  setString("description", "");
10 }
virtual void setClassName(std::string s)
Definition: LMFUnique.h:96
LMFUnique & setString(std::string key, std::string value)
Definition: LMFUnique.cc:15
LMFSeqVers::LMFSeqVers ( EcalDBConnection c)

Definition at line 12 of file LMFSeqVers.cc.

References LMFUnique::setClassName(), and LMFUnique::setString().

12  : LMFPrimVers(c) {
13  setClassName("LMFSeqVers");
14  setString("description", "");
15 }
virtual void setClassName(std::string s)
Definition: LMFUnique.h:96
LMFUnique & setString(std::string key, std::string value)
Definition: LMFUnique.cc:15
LMFSeqVers::LMFSeqVers ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 17 of file LMFSeqVers.cc.

References LMFUnique::setClassName(), and LMFUnique::setString().

18  : LMFPrimVers(env, conn) {
19  setClassName("LMFSeqVers");
20  setString("description", "");
21 }
virtual void setClassName(std::string s)
Definition: LMFUnique.h:96
LMFUnique & setString(std::string key, std::string value)
Definition: LMFUnique.cc:15
LMFSeqVers::~LMFSeqVers ( )
override

Definition at line 23 of file LMFSeqVers.cc.

24 {
25 }

Member Function Documentation

LMFUnique * LMFSeqVers::createObject ( ) const
overrideprivatevirtual

Reimplemented from LMFPrimVers.

Definition at line 44 of file LMFSeqVers.cc.

References LMFSeqVers(), IDBObject::m_conn, IDBObject::m_env, IDBObject::setConnection(), and lumiQTWidget::t.

Referenced by operator!=().

44  {
45  LMFSeqVers *t = new LMFSeqVers;
47  return t;
48 }
oracle::occi::Environment * m_env
Definition: IDBObject.h:38
oracle::occi::Connection * m_conn
Definition: IDBObject.h:39
void setConnection(oracle::occi::Environment *env, oracle::occi::Connection *conn)
Definition: IDBObject.h:23
std::string LMFSeqVers::fetchAllSql ( Statement stmt) const
overrideprivatevirtual

Reimplemented from LMFPrimVers.

Definition at line 50 of file LMFSeqVers.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by operator!=().

50  {
51  std::string sql = "SELECT VERS FROM CMS_ECAL_LASER_COND.LMF_SEQ_VERS";
52  stmt->setSQL(sql);
53  return sql;
54 }
std::string LMFSeqVers::fetchIdSql ( Statement stmt)
overrideprivatevirtual

Reimplemented from LMFPrimVers.

Definition at line 27 of file LMFSeqVers.cc.

Referenced by operator!=().

27  {
28  return "";
29 }
void LMFSeqVers::getParameters ( ResultSet rset)
overrideprivatevirtual

Reimplemented from LMFPrimVers.

Definition at line 40 of file LMFSeqVers.cc.

References LMFUnique::setString().

Referenced by operator!=().

40  {
41  setString("description", getOraString(rset,1));
42 }
LMFUnique & setString(std::string key, std::string value)
Definition: LMFUnique.cc:15
bool LMFSeqVers::operator!= ( const LMFSeqVers t) const
inline

Definition at line 31 of file LMFSeqVers.h.

References createObject(), fetchAllSql(), fetchIdSql(), LMFPrimVers::getDescription(), getParameters(), setByIDSql(), and AlCaHLTBitMon_QueryRunRegistry::string.

31  {
32  return (getDescription() != t.getDescription());
33  }
std::string getDescription() const
Definition: LMFPrimVers.h:34
bool LMFSeqVers::operator== ( const LMFSeqVers t) const
inline

Definition at line 28 of file LMFSeqVers.h.

References LMFPrimVers::getDescription().

28  {
29  return (getDescription() == t.getDescription());
30  }
std::string getDescription() const
Definition: LMFPrimVers.h:34
std::string LMFSeqVers::setByIDSql ( Statement stmt,
int  id 
)
overrideprivatevirtual

Reimplemented from LMFPrimVers.

Definition at line 31 of file LMFSeqVers.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by operator!=().

32 {
33  std::string sql = "SELECT DESCR FROM CMS_ECAL_LASER_COND.LMF_SEQ_VERS "
34  "WHERE VERS = :1";
35  stmt->setSQL(sql);
36  stmt->setInt(1, id);
37  return sql;
38 }

Friends And Related Function Documentation

friend class LMFRunIOV
friend

Definition at line 19 of file LMFSeqVers.h.