CMS 3D CMS Logo

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