CMS 3D CMS Logo

LMFIOV.h
Go to the documentation of this file.
1 #ifndef LMFIOV_H
2 #define LMFIOV_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 LMFIOV : public LMFUnique {
18  public:
19  friend class EcalCondDBInterface; // need permission to write
20 
21  LMFIOV();
23  LMFIOV(const oracle::occi::Environment* env,
24  const oracle::occi::Connection* conn);
25  ~LMFIOV() override;
26 
27  LMFIOV& setStart(const Tm &start);
28  LMFIOV& setStop(const Tm &stop);
29  LMFIOV& setIOV(const Tm &start, const Tm &stop);
30  LMFIOV& setVmin(int vmin);
31  LMFIOV& setVmax(int vmax);
32  LMFIOV& setVersions(int vmin, int vmax);
33 
34  Tm getStart() const;
35  Tm getStop() const;
36  int getVmin() const;
37  int getVmax() const;
38 
39  void dump() const override;
40 
41  private:
42  // Methods from LMFUnique
45  // std::string fetchAllSql(Statement *stmt) const;
47  int id) override;
48 
49  void getParameters(ResultSet *rset) override;
50  void fetchParentIDs() override {}
51  LMFUnique * createObject() const override;
52 
55  int m_vmin;
56  int m_vmax;
57 
58 };
59 
60 #endif
Definition: start.py:1
int m_vmax
Definition: LMFIOV.h:56
std::string setByIDSql(Statement *stmt, int id) override
Definition: LMFIOV.cc:96
LMFIOV & setVmin(int vmin)
Definition: LMFIOV.cc:52
LMFIOV & setStop(const Tm &stop)
Definition: LMFIOV.cc:42
oracle::occi::ResultSet ResultSet
Definition: LMFUnique.h:19
LMFIOV & setVersions(int vmin, int vmax)
Definition: LMFIOV.cc:62
~LMFIOV() override
Definition: LMFIOV.cc:33
void dump() const override
Definition: LMFIOV.cc:122
oracle::occi::Connection * conn
void getParameters(ResultSet *rset) override
Definition: LMFIOV.cc:106
LMFIOV & setVmax(int vmax)
Definition: LMFIOV.cc:57
int getVmin() const
Definition: LMFIOV.cc:75
std::string writeDBSql(Statement *stmt) override
Definition: LMFIOV.cc:131
oracle::occi::Statement Statement
Definition: LMFUnique.h:20
Tm m_iov_start
Definition: LMFIOV.h:53
std::string fetchIdSql(Statement *stmt) override
Definition: LMFIOV.cc:83
LMFIOV & setStart(const Tm &start)
Definition: LMFIOV.cc:37
LMFUnique * createObject() const override
Definition: LMFIOV.cc:116
Definition: LMFIOV.h:17
int getVmax() const
Definition: LMFIOV.cc:79
LMFIOV & setIOV(const Tm &start, const Tm &stop)
Definition: LMFIOV.cc:47
void fetchParentIDs() override
Definition: LMFIOV.h:50
Tm getStop() const
Definition: LMFIOV.cc:71
oracle::occi::Statement * stmt
Tm m_iov_stop
Definition: LMFIOV.h:54
Tm getStart() const
Definition: LMFIOV.cc:67
LMFIOV()
Definition: LMFIOV.cc:6
Definition: Tm.h:13
int m_vmin
Definition: LMFIOV.h:55