CMS 3D CMS Logo

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