10 m_className =
"LMFIOV";
21 setConnection(
c->getEnv(),
c->getConn());
22 m_className =
"LMFIOV";
73 "SELECT IOV_ID FROM CMS_ECAL_LASER_COND.LMF_IOV " 74 "WHERE IOV_START = :1 AND IOV_STOP = :2 AND " 75 "VMIN = :3 AND VMIN = :4";
78 stmt->setDate(1,
dm.tmToDate(m_iov_start));
79 stmt->setDate(2,
dm.tmToDate(m_iov_stop));
80 stmt->setInt(3, m_vmin);
81 stmt->setInt(4, m_vmax);
87 "SELECT IOV_START, IOV_STOP, VMIN, VMAX FROM " 88 "CMS_ECAL_LASER_COND.LMF_IOV " 96 Date
d = rset->getDate(1);
98 m_iov_start =
dh.dateToTm(
d);
100 m_iov_stop =
dh.dateToTm(
d);
101 m_vmin = rset->getInt(3);
102 m_vmax = rset->getInt(4);
107 t->setConnection(m_env, m_conn);
112 cout <<
"################# LMFIOV ######################" << endl;
113 cout <<
"id : " << m_ID << endl;
114 cout <<
"Start: " << m_iov_start.str() << endl;
115 cout <<
"Stop : " << m_iov_stop.str() << endl;
116 cout <<
"Vers.: " << m_vmin <<
" - " << m_vmax << endl;
117 cout <<
"################# LMFIOV ######################" << endl;
122 std::string seqName = sequencePostfix(m_iov_start);
124 "INSERT INTO LMF_IOV (IOV_ID, IOV_START, IOV_STOP, " 125 "VMIN, VMAX) VALUES " 127 seqName +
"_sq.NextVal, :1, :2, :3, :4)";
130 stmt->setDate(1,
dm.tmToDate(m_iov_start));
131 stmt->setDate(2,
dm.tmToDate(m_iov_stop));
132 stmt->setInt(3, m_vmin);
133 stmt->setInt(4, m_vmax);
LMFUnique * createObject() const override
std::string setByIDSql(Statement *stmt, int id) override
LMFIOV & setVmin(int vmin)
LMFIOV & setStop(const Tm &stop)
oracle::occi::ResultSet ResultSet
LMFIOV & setVersions(int vmin, int vmax)
void dump() const override
void getParameters(ResultSet *rset) override
LMFIOV & setVmax(int vmax)
std::string writeDBSql(Statement *stmt) override
oracle::occi::Statement Statement
std::string fetchIdSql(Statement *stmt) override
LMFIOV & setStart(const Tm &start)
LMFIOV & setIOV(const Tm &start, const Tm &stop)