CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Friends
LMFCorrVers Class Reference

#include <LMFCorrVers.h>

Inheritance diagram for LMFCorrVers:
LMFPrimVers LMFUnique IUniqueDBObject IDBObject

Public Member Functions

 LMFCorrVers ()
 
 LMFCorrVers (EcalDBConnection *c)
 
 LMFCorrVers (oracle::occi::Environment *env, oracle::occi::Connection *conn)
 
bool operator!= (const LMFCorrVers &t) const
 
bool operator== (const LMFCorrVers &t) const
 
 ~LMFCorrVers ()
 
- 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 ()
 
- 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
< 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
 
 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)
 
LMFUniquesetInt (std::string key, int value)
 
LMFUniquesetString (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 ()
 

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
 

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

Definition at line 17 of file LMFCorrVers.h.

Constructor & Destructor Documentation

LMFCorrVers::LMFCorrVers ( )

Definition at line 6 of file LMFCorrVers.cc.

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

Referenced by createObject().

6  : LMFPrimVers()
7 {
8  setClassName("LMFCorrVers");
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
LMFCorrVers::LMFCorrVers ( EcalDBConnection c)

Definition at line 12 of file LMFCorrVers.cc.

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

12  : LMFPrimVers(c) {
13  setClassName("LMFCorrVers");
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
LMFCorrVers::LMFCorrVers ( oracle::occi::Environment *  env,
oracle::occi::Connection *  conn 
)

Definition at line 17 of file LMFCorrVers.cc.

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

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

Definition at line 25 of file LMFCorrVers.cc.

26 {
27 }

Member Function Documentation

LMFUnique * LMFCorrVers::createObject ( ) const
privatevirtual

Reimplemented from LMFUnique.

Definition at line 46 of file LMFCorrVers.cc.

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

46  {
47  LMFCorrVers *t = new LMFCorrVers;
49  return t;
50 }
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 LMFCorrVers::fetchAllSql ( Statement stmt) const
privatevirtual

Reimplemented from LMFUnique.

Definition at line 52 of file LMFCorrVers.cc.

52  {
53  std::string sql = "SELECT VERS FROM LMF_CORR_VERS";
54  stmt->setSQL(sql);
55  return sql;
56 }
std::string LMFCorrVers::fetchIdSql ( Statement stmt)
privatevirtual

Reimplemented from LMFUnique.

Definition at line 29 of file LMFCorrVers.cc.

29  {
30  return "";
31 }
void LMFCorrVers::getParameters ( ResultSet rset)
privatevirtual

Reimplemented from LMFUnique.

Definition at line 42 of file LMFCorrVers.cc.

References LMFUnique::setString().

42  {
43  setString("description", rset->getString(1));
44 }
LMFUnique & setString(std::string key, std::string value)
Definition: LMFUnique.cc:15
bool LMFCorrVers::operator!= ( const LMFCorrVers t) const
inline

Definition at line 31 of file LMFCorrVers.h.

References LMFUnique::getID().

31  {
32  return (getID() != t.getID());
33  }
int getID() const
Definition: LMFUnique.h:51
bool LMFCorrVers::operator== ( const LMFCorrVers t) const
inline

Definition at line 28 of file LMFCorrVers.h.

References LMFUnique::getID().

28  {
29  return (getID() == t.getID());
30  }
int getID() const
Definition: LMFUnique.h:51
std::string LMFCorrVers::setByIDSql ( Statement stmt,
int  id 
)
privatevirtual

Reimplemented from LMFUnique.

Definition at line 33 of file LMFCorrVers.cc.

34 {
35  std::string sql = "SELECT DESCR FROM LMF_CORR_VERS "
36  "WHERE VERS = :1";
37  stmt->setSQL(sql);
38  stmt->setInt(1, id);
39  return sql;
40 }

Friends And Related Function Documentation

friend class LMFRunIOV
friend

Definition at line 19 of file LMFCorrVers.h.