CMS 3D CMS Logo

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