Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:54

0001 #ifndef LMFSEQVERS_H
0002 #define LMFSEQVERS_H
0003 
0004 /*
0005  Last updated by  Giovanni.Organtini@roma1.infn.it 2010
0006  */
0007 
0008 #include <string>
0009 #include <stdexcept>
0010 
0011 #include "OnlineDB/EcalCondDB/interface/LMFPrimVers.h"
0012 #include "OnlineDB/EcalCondDB/interface/EcalDBConnection.h"
0013 
0014 /**
0015  *   LMF sequence version
0016  */
0017 class LMFSeqVers : public LMFPrimVers {
0018 public:
0019   friend class LMFRunIOV;  // needs permission to write
0020 
0021   LMFSeqVers();
0022   LMFSeqVers(EcalDBConnection *c);
0023   LMFSeqVers(oracle::occi::Environment *env, oracle::occi::Connection *conn);
0024   ~LMFSeqVers() override;
0025 
0026   // Operators
0027   inline bool operator==(const LMFSeqVers &t) const { return (getDescription() == t.getDescription()); }
0028   inline bool operator!=(const LMFSeqVers &t) const { return (getDescription() != t.getDescription()); }
0029 
0030 private:
0031   // Methods from LMFUnique
0032   std::string fetchIdSql(Statement *stmt) override;
0033   std::string fetchAllSql(Statement *stmt) const override;
0034   std::string setByIDSql(Statement *stmt, int id) override;
0035   void getParameters(ResultSet *rset) override;
0036   LMFUnique *createObject() const override;
0037 };
0038 
0039 #endif