CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/OnlineDB/EcalCondDB/interface/LMFSeqVers.h

Go to the documentation of this file.
00001 #ifndef LMFSEQVERS_H
00002 #define LMFSEQVERS_H
00003 
00004 /*
00005  Copyright (c) Giovanni.Organtini@roma1.infn.it 2010
00006  */
00007 
00008 #include <string>
00009 #include <stdexcept>
00010 
00011 #include "OnlineDB/EcalCondDB/interface/LMFPrimVers.h"
00012 #include "OnlineDB/EcalCondDB/interface/EcalDBConnection.h"
00013 
00017 class LMFSeqVers : public LMFPrimVers {
00018  public:
00019   friend class LMFRunIOV;  // needs permission to write
00020 
00021   LMFSeqVers();
00022   LMFSeqVers(EcalDBConnection *c);
00023   LMFSeqVers(oracle::occi::Environment* env,
00024              oracle::occi::Connection* conn);
00025   ~LMFSeqVers();
00026 
00027   // Operators
00028   inline bool operator==(const LMFSeqVers &t) const { 
00029     return (getDescription() == t.getDescription());
00030   }
00031   inline bool operator!=(const LMFSeqVers &t) const { 
00032     return (getDescription() != t.getDescription());
00033   }
00034 
00035  private:
00036   // Methods from LMFUnique
00037   std::string fetchIdSql(Statement *stmt);
00038   std::string fetchAllSql(Statement *stmt) const;
00039   std::string setByIDSql(Statement *stmt, int id);
00040   void getParameters(ResultSet *rset);
00041   LMFUnique *createObject() const;
00042 };
00043 
00044 #endif