CMS 3D CMS Logo

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