#include <LMFCorrVers.h>
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 () | |
Private Member Functions | |
LMFUnique * | createObject () 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 |
LMF Correction version
Definition at line 17 of file LMFCorrVers.h.
LMFCorrVers::LMFCorrVers | ( | ) |
Definition at line 6 of file LMFCorrVers.cc.
References LMFUnique::setClassName(), and LMFUnique::setString().
Referenced by createObject().
: LMFPrimVers() { setClassName("LMFCorrVers"); setString("description", ""); }
LMFCorrVers::LMFCorrVers | ( | EcalDBConnection * | c | ) |
Definition at line 12 of file LMFCorrVers.cc.
References LMFUnique::setClassName(), and LMFUnique::setString().
: LMFPrimVers(c) { setClassName("LMFCorrVers"); setString("description", ""); }
LMFCorrVers::LMFCorrVers | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
Definition at line 17 of file LMFCorrVers.cc.
References LMFUnique::setClassName(), and LMFUnique::setString().
: LMFPrimVers(env, conn) { setClassName("LMFCorrVers"); setString("description", ""); }
LMFCorrVers::~LMFCorrVers | ( | ) |
Definition at line 25 of file LMFCorrVers.cc.
{ }
LMFUnique * LMFCorrVers::createObject | ( | ) | const [private, virtual] |
Reimplemented from LMFPrimVers.
Definition at line 46 of file LMFCorrVers.cc.
References LMFCorrVers(), IDBObject::m_conn, IDBObject::m_env, IDBObject::setConnection(), and matplotRender::t.
{ LMFCorrVers *t = new LMFCorrVers; t->setConnection(m_env, m_conn); return t; }
std::string LMFCorrVers::fetchAllSql | ( | Statement * | stmt | ) | const [private, virtual] |
Reimplemented from LMFPrimVers.
Definition at line 52 of file LMFCorrVers.cc.
{ std::string sql = "SELECT VERS FROM LMF_CORR_VERS"; stmt->setSQL(sql); return sql; }
std::string LMFCorrVers::fetchIdSql | ( | Statement * | stmt | ) | [private, virtual] |
void LMFCorrVers::getParameters | ( | ResultSet * | rset | ) | [private, virtual] |
Reimplemented from LMFPrimVers.
Definition at line 42 of file LMFCorrVers.cc.
References LMFUnique::setString().
{ setString("description", rset->getString(1)); }
bool LMFCorrVers::operator!= | ( | const LMFCorrVers & | t | ) | const [inline] |
Definition at line 31 of file LMFCorrVers.h.
References LMFUnique::getID().
bool LMFCorrVers::operator== | ( | const LMFCorrVers & | t | ) | const [inline] |
Definition at line 28 of file LMFCorrVers.h.
References LMFUnique::getID().
std::string LMFCorrVers::setByIDSql | ( | Statement * | stmt, |
int | id | ||
) | [private, virtual] |
Reimplemented from LMFPrimVers.
Definition at line 33 of file LMFCorrVers.cc.
{ std::string sql = "SELECT DESCR FROM LMF_CORR_VERS " "WHERE VERS = :1"; stmt->setSQL(sql); stmt->setInt(1, id); return sql; }
friend class LMFRunIOV [friend] |
Reimplemented from LMFPrimVers.
Definition at line 19 of file LMFCorrVers.h.