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 }
LMFUnique::setClassName
virtual void setClassName(std::string s)
Definition: LMFUnique.h:97
LMFPrimVers::setByIDSql
std::string setByIDSql(Statement *stmt, int id) override
Definition: LMFPrimVers.cc:25
LMFPrimVers::fetchIdSql
std::string fetchIdSql(Statement *stmt) override
Definition: LMFPrimVers.cc:23
LMFPrimVers::LMFPrimVers
LMFPrimVers()
Definition: LMFPrimVers.cc:6
SiStripCommissioningClient_cfg.conn
conn
Definition: SiStripCommissioningClient_cfg.py:5
IDBObject::m_conn
oracle::occi::Connection * m_conn
Definition: IDBObject.h:34
LMFPrimVers
Definition: LMFPrimVers.h:22
oracle::occi
Definition: ConnectionManager.h:7
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
web.browse_db.env
env
Definition: browse_db.py:18
LMFPrimVers::fetchAllSql
std::string fetchAllSql(Statement *stmt) const override
Definition: LMFPrimVers.cc:42
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
std
Definition: JetResolutionObject.h:76
LMFPrimVers.h
LMFUnique::Statement
oracle::occi::Statement Statement
Definition: LMFUnique.h:24
LMFUnique::setString
LMFUnique & setString(std::string key, std::string value)
Definition: LMFUnique.cc:14
LMFPrimVers::getParameters
void getParameters(ResultSet *rset) override
Definition: LMFPrimVers.cc:34
IDBObject::m_env
oracle::occi::Environment * m_env
Definition: IDBObject.h:33
LMFPrimVers::~LMFPrimVers
~LMFPrimVers() override
Definition: LMFPrimVers.cc:21
LMFUnique
Definition: LMFUnique.h:21
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
LMFPrimVers::createObject
LMFUnique * createObject() const override
Definition: LMFPrimVers.cc:36
EcalDBConnection
Definition: EcalDBConnection.h:15
LMFUnique::ResultSet
oracle::occi::ResultSet ResultSet
Definition: LMFUnique.h:23