Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:23:06

0001 #include "OnlineDB/EcalCondDB/interface/LMFSeqVers.h"
0002 
0003 using namespace std;
0004 using namespace oracle::occi;
0005 
0006 LMFSeqVers::LMFSeqVers() : LMFPrimVers() {
0007   setClassName("LMFSeqVers");
0008   setString("description", "");
0009 }
0010 
0011 LMFSeqVers::LMFSeqVers(EcalDBConnection *c) : LMFPrimVers(c) {
0012   setClassName("LMFSeqVers");
0013   setString("description", "");
0014 }
0015 
0016 LMFSeqVers::LMFSeqVers(oracle::occi::Environment *env, oracle::occi::Connection *conn) : LMFPrimVers(env, conn) {
0017   setClassName("LMFSeqVers");
0018   setString("description", "");
0019 }
0020 
0021 LMFSeqVers::~LMFSeqVers() {}
0022 
0023 std::string LMFSeqVers::fetchIdSql(Statement *stmt) { return ""; }
0024 
0025 std::string LMFSeqVers::setByIDSql(Statement *stmt, int id) {
0026   std::string sql =
0027       "SELECT DESCR FROM CMS_ECAL_LASER_COND.LMF_SEQ_VERS "
0028       "WHERE VERS = :1";
0029   stmt->setSQL(sql);
0030   stmt->setInt(1, id);
0031   return sql;
0032 }
0033 
0034 void LMFSeqVers::getParameters(ResultSet *rset) { setString("description", rset->getString(1)); }
0035 
0036 LMFUnique *LMFSeqVers::createObject() const {
0037   LMFSeqVers *t = new LMFSeqVers;
0038   t->setConnection(m_env, m_conn);
0039   return t;
0040 }
0041 
0042 std::string LMFSeqVers::fetchAllSql(Statement *stmt) const {
0043   std::string sql = "SELECT VERS FROM CMS_ECAL_LASER_COND.LMF_SEQ_VERS";
0044   stmt->setSQL(sql);
0045   return sql;
0046 }