CMS 3D CMS Logo

LMFSeqVers.h
Go to the documentation of this file.
1 #ifndef LMFSEQVERS_H
2 #define LMFSEQVERS_H
3 
4 /*
5  Last updated by Giovanni.Organtini@roma1.infn.it 2010
6  */
7 
8 #include <string>
9 #include <stdexcept>
10 
13 
17 class LMFSeqVers : public LMFPrimVers {
18  public:
19  friend class LMFRunIOV; // needs permission to write
20 
21  LMFSeqVers();
23  LMFSeqVers(oracle::occi::Environment* env,
24  oracle::occi::Connection* conn);
25  ~LMFSeqVers() override;
26 
27  // Operators
28  inline bool operator==(const LMFSeqVers &t) const {
29  return (getDescription() == t.getDescription());
30  }
31  inline bool operator!=(const LMFSeqVers &t) const {
32  return (getDescription() != t.getDescription());
33  }
34 
35  private:
36  // Methods from LMFUnique
37  std::string fetchIdSql(Statement *stmt) override;
38  std::string fetchAllSql(Statement *stmt) const override;
39  std::string setByIDSql(Statement *stmt, int id) override;
40  void getParameters(ResultSet *rset) override;
41  LMFUnique *createObject() const override;
42 };
43 
44 #endif
bool operator!=(const LMFSeqVers &t) const
Definition: LMFSeqVers.h:31
std::string setByIDSql(Statement *stmt, int id) override
Definition: LMFSeqVers.cc:31
std::string getDescription() const
Definition: LMFPrimVers.h:34
oracle::occi::ResultSet ResultSet
Definition: LMFUnique.h:19
LMFUnique * createObject() const override
Definition: LMFSeqVers.cc:44
std::string fetchAllSql(Statement *stmt) const override
Definition: LMFSeqVers.cc:50
std::string fetchIdSql(Statement *stmt) override
Definition: LMFSeqVers.cc:27
oracle::occi::Statement Statement
Definition: LMFUnique.h:20
void getParameters(ResultSet *rset) override
Definition: LMFSeqVers.cc:40
bool operator==(const LMFSeqVers &t) const
Definition: LMFSeqVers.h:28
~LMFSeqVers() override
Definition: LMFSeqVers.cc:23