CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Friends

LMFSeqVers Class Reference

#include <LMFSeqVers.h>

Inheritance diagram for LMFSeqVers:
LMFPrimVers LMFUnique IUniqueDBObject IDBObject

List of all members.

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 ()

Private Member Functions

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

Friends

class LMFRunIOV

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().

                       : LMFPrimVers()
{
  setClassName("LMFSeqVers");
  setString("description", "");
}
LMFSeqVers::LMFSeqVers ( EcalDBConnection c)

Definition at line 12 of file LMFSeqVers.cc.

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

                                          : LMFPrimVers(c) {
  setClassName("LMFSeqVers");
  setString("description", "");
}
LMFSeqVers::LMFSeqVers ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 17 of file LMFSeqVers.cc.

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

                                                   : LMFPrimVers(env, conn) {
  setClassName("LMFSeqVers");
  setString("description", "");
}
LMFSeqVers::~LMFSeqVers ( )

Definition at line 23 of file LMFSeqVers.cc.

{
}

Member Function Documentation

LMFUnique * LMFSeqVers::createObject ( ) const [private, virtual]

Reimplemented from LMFPrimVers.

Definition at line 44 of file LMFSeqVers.cc.

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

                                           {
  LMFSeqVers *t = new LMFSeqVers;
  t->setConnection(m_env, m_conn);
  return t;
}
std::string LMFSeqVers::fetchAllSql ( Statement stmt) const [private, virtual]

Reimplemented from LMFPrimVers.

Definition at line 50 of file LMFSeqVers.cc.

                                                       {
  std::string sql = "SELECT VERS FROM CMS_ECAL_LASER_COND.LMF_SEQ_VERS";
  stmt->setSQL(sql);
  return sql;
}
std::string LMFSeqVers::fetchIdSql ( Statement stmt) [private, virtual]

Reimplemented from LMFPrimVers.

Definition at line 27 of file LMFSeqVers.cc.

                                                {
  return "";
}
void LMFSeqVers::getParameters ( ResultSet rset) [private, virtual]

Reimplemented from LMFPrimVers.

Definition at line 40 of file LMFSeqVers.cc.

References LMFUnique::setString().

                                              {
  setString("description", rset->getString(1));
}
bool LMFSeqVers::operator!= ( const LMFSeqVers t) const [inline]

Definition at line 31 of file LMFSeqVers.h.

References LMFPrimVers::getDescription().

                                                    { 
    return (getDescription() != t.getDescription());
  }
bool LMFSeqVers::operator== ( const LMFSeqVers t) const [inline]

Definition at line 28 of file LMFSeqVers.h.

References LMFPrimVers::getDescription().

                                                    { 
    return (getDescription() == t.getDescription());
  }
std::string LMFSeqVers::setByIDSql ( Statement stmt,
int  id 
) [private, virtual]

Reimplemented from LMFPrimVers.

Definition at line 31 of file LMFSeqVers.cc.

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

Friends And Related Function Documentation

friend class LMFRunIOV [friend]

Reimplemented from LMFPrimVers.

Definition at line 19 of file LMFSeqVers.h.