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, const oracle::occi::Connection *conn);
24  ~LMFIOV() override;
25 
26  LMFIOV &setStart(const Tm &start);
27  LMFIOV &setStop(const Tm &stop);
28  LMFIOV &setIOV(const Tm &start, const Tm &stop);
29  LMFIOV &setVmin(int vmin);
30  LMFIOV &setVmax(int vmax);
31  LMFIOV &setVersions(int vmin, int vmax);
32 
33  Tm getStart() const;
34  Tm getStop() const;
35  int getVmin() const;
36  int getVmax() const;
37 
38  void dump() const override;
39 
40 private:
41  // Methods from LMFUnique
44  // std::string fetchAllSql(Statement *stmt) const;
45  std::string setByIDSql(Statement *stmt, int id) override;
46 
47  void getParameters(ResultSet *rset) override;
48  void fetchParentIDs() override {}
49  LMFUnique *createObject() const override;
50 
53  int m_vmin;
54  int m_vmax;
55 };
56 
57 #endif
Definition: start.py:1
LMFUnique * createObject() const override
Definition: LMFIOV.cc:105
int getVmin() const
Definition: LMFIOV.cc:67
int m_vmax
Definition: LMFIOV.h:54
std::string setByIDSql(Statement *stmt, int id) override
Definition: LMFIOV.cc:85
LMFIOV & setVmin(int vmin)
Definition: LMFIOV.cc:48
LMFIOV & setStop(const Tm &stop)
Definition: LMFIOV.cc:38
oracle::occi::ResultSet ResultSet
Definition: LMFUnique.h:23
LMFIOV & setVersions(int vmin, int vmax)
Definition: LMFIOV.cc:58
~LMFIOV() override
Definition: LMFIOV.cc:31
int getVmax() const
Definition: LMFIOV.cc:69
void dump() const override
Definition: LMFIOV.cc:111
void getParameters(ResultSet *rset) override
Definition: LMFIOV.cc:95
LMFIOV & setVmax(int vmax)
Definition: LMFIOV.cc:53
std::string writeDBSql(Statement *stmt) override
Definition: LMFIOV.cc:120
oracle::occi::Statement Statement
Definition: LMFUnique.h:24
Tm m_iov_start
Definition: LMFIOV.h:51
std::string fetchIdSql(Statement *stmt) override
Definition: LMFIOV.cc:71
LMFIOV & setStart(const Tm &start)
Definition: LMFIOV.cc:33
Tm getStop() const
Definition: LMFIOV.cc:65
Tm getStart() const
Definition: LMFIOV.cc:63
Definition: LMFIOV.h:17
LMFIOV & setIOV(const Tm &start, const Tm &stop)
Definition: LMFIOV.cc:43
void fetchParentIDs() override
Definition: LMFIOV.h:48
conn
Definition: getInfo.py:9
oracle::occi::Statement * stmt
Tm m_iov_stop
Definition: LMFIOV.h:52
LMFIOV()
Definition: LMFIOV.cc:6
Definition: Tm.h:13
int m_vmin
Definition: LMFIOV.h:53