CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Friends

LMFTrigType Class Reference

#include <LMFTrigType.h>

Inheritance diagram for LMFTrigType:
LMFUnique IUniqueDBObject IDBObject

List of all members.

Public Member Functions

std::string getLongName ()
std::string getLongName () const
std::string getShortName ()
std::string getShortName () const
 LMFTrigType ()
 LMFTrigType (EcalDBConnection *c)
 LMFTrigType (oracle::occi::Environment *env, oracle::occi::Connection *conn)
bool operator!= (const LMFTrigType &m) const
bool operator== (const LMFTrigType &m) const
LMFTrigTypesetName (std::string s)
LMFTrigTypesetNames (const std::string &s, const std::string &l)
 ~LMFTrigType ()

Private Member Functions

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

Detailed Description

Definition at line 10 of file LMFTrigType.h.


Constructor & Destructor Documentation

LMFTrigType::LMFTrigType ( )

Definition at line 6 of file LMFTrigType.cc.

Referenced by createObject().

{
  setClassName("LMFTrigType");
  m_stringFields["short_name"] = "";
  m_stringFields["long_name"]  = "";
}
LMFTrigType::LMFTrigType ( EcalDBConnection c)

Definition at line 21 of file LMFTrigType.cc.

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

                                            : LMFUnique(c) {
  setClassName("LMFTrigType");
  m_stringFields["short_name"] = "";
  m_stringFields["long_name"]  = "";
}
LMFTrigType::LMFTrigType ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 13 of file LMFTrigType.cc.

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

                                                     : 
  LMFUnique(env, conn) {
  setClassName("LMFTrigType");
  m_stringFields["short_name"] = "";
  m_stringFields["long_name"]  = "";
}
LMFTrigType::~LMFTrigType ( )

Definition at line 27 of file LMFTrigType.cc.

{
}

Member Function Documentation

LMFTrigType * LMFTrigType::createObject ( ) const [private, virtual]

Reimplemented from LMFUnique.

Definition at line 61 of file LMFTrigType.cc.

References LMFTrigType(), IDBObject::m_conn, IDBObject::m_env, IDBObject::setConnection(), and matplotRender::t.

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

Reimplemented from LMFUnique.

Definition at line 67 of file LMFTrigType.cc.

                                                        {
  std::string sql = "SELECT TRIG_TYPE FROM LMF_TRIG_TYPE_DEF";
  stmt->setSQL(sql);
  return sql;
}
std::string LMFTrigType::fetchIdSql ( Statement stmt) [private, virtual]

Reimplemented from LMFUnique.

Definition at line 37 of file LMFTrigType.cc.

References getShortName().

{
  std::string sql = "SELECT TRIG_TYPE, SNAME, LNAME FROM LMF_TRIG_TYPE_DEF "
    "WHERE "
    "SNAME   = :1";
  stmt->setSQL(sql);
  stmt->setString(1, getShortName());
  return sql;
}
std::string LMFTrigType::getLongName ( ) const [inline]

Definition at line 23 of file LMFTrigType.h.

References LMFUnique::getString().

{ return getString("long_name"); }
std::string LMFTrigType::getLongName ( ) [inline]

Definition at line 21 of file LMFTrigType.h.

References LMFUnique::getString().

Referenced by operator==().

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

Reimplemented from LMFUnique.

Definition at line 56 of file LMFTrigType.cc.

References LMFUnique::setString().

                                               {
  setString("short_name", rset->getString(1));
  setString("long_name", rset->getString(2));
}
std::string LMFTrigType::getShortName ( ) [inline]

Definition at line 20 of file LMFTrigType.h.

References LMFUnique::getString().

Referenced by fetchIdSql(), and operator==().

{ return getString("short_name"); }
std::string LMFTrigType::getShortName ( ) const [inline]

Definition at line 22 of file LMFTrigType.h.

References LMFUnique::getString().

{ return getString("short_name"); }
bool LMFTrigType::operator!= ( const LMFTrigType m) const [inline]

Definition at line 39 of file LMFTrigType.h.

References m.

{ return !(*this == m); }
bool LMFTrigType::operator== ( const LMFTrigType m) const [inline]

Definition at line 33 of file LMFTrigType.h.

References getLongName(), and getShortName().

    {
      return ((getShortName()   == m.getShortName()) &&
              (getLongName()    == m.getLongName()));
    }
std::string LMFTrigType::setByIDSql ( Statement stmt,
int  id 
) [private, virtual]

Reimplemented from LMFUnique.

Definition at line 47 of file LMFTrigType.cc.

{
  std::string sql = "SELECT SNAME, LNAME FROM LMF_TRIG_TYPE_DEF "
    "WHERE TRIG_TYPE = :1";
  stmt->setSQL(sql);
  stmt->setInt(1, id);
  return sql;
}   
LMFTrigType & LMFTrigType::setName ( std::string  s)

Definition at line 31 of file LMFTrigType.cc.

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

                                             {
  setString("short_name", s);
  fetchID();
  return *this;
}
LMFTrigType& LMFTrigType::setNames ( const std::string &  s,
const std::string &  l 
) [inline]

Definition at line 26 of file LMFTrigType.h.

References LMFUnique::setString().

                                                                {
    setString("short_name", s);
    setString("long_name", l);
    return *this;
  }

Friends And Related Function Documentation

friend class EcalCondDBInterface [friend]

Reimplemented from LMFUnique.

Definition at line 12 of file LMFTrigType.h.