#include <LMFSeqVers.h>
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 | |
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 sequence version
Definition at line 17 of file LMFSeqVers.h.
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.
{ }
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 matplotRender::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 LMF_SEQ_VERS"; stmt->setSQL(sql); return sql; }
std::string LMFSeqVers::fetchIdSql | ( | Statement * | stmt | ) | [private, virtual] |
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 LMF_SEQ_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 LMFSeqVers.h.