CMS 3D CMS Logo

LMFPrimVers.cc
Go to the documentation of this file.
2 
3 using namespace std;
4 using namespace oracle::occi;
5 
7  setClassName("LMFPrimVers");
8  setString("description", "");
9 }
10 
12  setClassName("LMFPrimVers");
13  setString("description", "");
14 }
15 
16 LMFPrimVers::LMFPrimVers(oracle::occi::Environment *env, oracle::occi::Connection *conn) : LMFUnique(env, conn) {
17  setClassName("LMFPrimVers");
18  setString("description", "");
19 }
20 
22 
24 
26  std::string sql =
27  "SELECT DESCR FROM CMS_ECAL_LASER_COND.LMF_PRIM_VERS "
28  "WHERE VERS = :1";
29  stmt->setSQL(sql);
30  stmt->setInt(1, id);
31  return sql;
32 }
33 
34 void LMFPrimVers::getParameters(ResultSet *rset) { setString("description", rset->getString(1)); }
35 
37  LMFPrimVers *t = new LMFPrimVers;
38  t->setConnection(m_env, m_conn);
39  return t;
40 }
41 
43  std::string sql = "SELECT VERS FROM CMS_ECAL_LASER_COND.LMF_PRIM_VERS";
44  stmt->setSQL(sql);
45  return sql;
46 }
oracle::occi::Environment * m_env
Definition: IDBObject.h:33
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
std::string fetchIdSql(Statement *stmt) override
Definition: LMFPrimVers.cc:23
oracle::occi::ResultSet ResultSet
Definition: LMFUnique.h:23
virtual void setClassName(std::string s)
Definition: LMFUnique.h:97
std::string setByIDSql(Statement *stmt, int id) override
Definition: LMFPrimVers.cc:25
oracle::occi::Statement Statement
Definition: LMFUnique.h:24
std::string fetchAllSql(Statement *stmt) const override
Definition: LMFPrimVers.cc:42
LMFUnique & setString(std::string key, std::string value)
Definition: LMFUnique.cc:14
LMFUnique * createObject() const override
Definition: LMFPrimVers.cc:36
void getParameters(ResultSet *rset) override
Definition: LMFPrimVers.cc:34
conn
Definition: getInfo.py:9
~LMFPrimVers() override
Definition: LMFPrimVers.cc:21