#include <DateHandler.h>
Public Member Functions | |
DateHandler (oracle::occi::Environment *env, oracle::occi::Connection *conn) | |
DateHandler ()=delete | |
Tm | dateToTm (oracle::occi::Date &date) const |
oracle::occi::Date | getCurrentDate () |
oracle::occi::Date | getNegInfDate () const |
Tm | getNegInfTm () const |
oracle::occi::Date | getPlusInfDate () const |
Tm | getPlusInfTm () const |
oracle::occi::Date | maxDate () |
oracle::occi::Date | minDate () |
oracle::occi::Date | tmToDate (const Tm &inTm) const |
~DateHandler () | |
Private Attributes | |
oracle::occi::Connection * | m_conn |
oracle::occi::Environment * | m_env |
Tm | NEG_INF |
oracle::occi::Date | NEG_INF_DATE |
Tm | PLUS_INF |
oracle::occi::Date | PLUS_INF_DATE |
Definition at line 7 of file DateHandler.h.
DateHandler::DateHandler | ( | oracle::occi::Environment * | env, |
oracle::occi::Connection * | conn | ||
) |
DateHandler::~DateHandler | ( | ) |
Definition at line 17 of file DateHandler.cc.
|
delete |
Tm DateHandler::dateToTm | ( | oracle::occi::Date & | date | ) | const |
Translate an oracle Date object to a Tm object
Definition at line 28 of file DateHandler.cc.
References SiStripPI::min, and LaserDQM_cfi::mon.
Referenced by RunCommentDat::fetchData(), FEConfigTimingInfo::fetchData(), FEConfigCokeInfo::fetchData(), FEConfigSpikeInfo::fetchData(), FEConfigFgrInfo::fetchData(), FEConfigLUTInfo::fetchData(), FEConfigWeightInfo::fetchData(), FEConfigOddWeightInfo::fetchData(), ODCond2ConfInfo::fetchData(), FEConfigPedInfo::fetchData(), FEConfigSlidingInfo::fetchData(), FEConfigLinInfo::fetchData(), ODRunConfigInfo::fetchData(), FEConfigMainInfo::fetchData(), RunList::fetchGlobalRunsByLocation(), FEConfigTimingInfo::fetchLastData(), FEConfigCokeInfo::fetchLastData(), FEConfigSpikeInfo::fetchLastData(), FEConfigLUTInfo::fetchLastData(), FEConfigLinInfo::fetchLastData(), FEConfigWeightInfo::fetchLastData(), FEConfigFgrInfo::fetchLastData(), FEConfigOddWeightInfo::fetchLastData(), FEConfigPedInfo::fetchLastData(), FEConfigSlidingInfo::fetchLastData(), MonRunList::fetchLastNRuns(), RunList::fetchLastNRuns(), MonRunList::fetchRuns(), RunList::fetchRuns(), RunList::fetchRunsByLocation(), DCSPTMTempList::fetchValuesForECID(), DCSPTMTempList::fetchValuesForECIDAndTime(), RunDCSMagnetDat::fillTheMap(), RunDCSLVDat::fillTheMap(), RunDCSHVDat::fillTheMap(), LMFCorrCoefDat::getCorrections(), LMFIOV::getParameters(), LMFRunIOV::getParameters(), LMFSeqDat::getParameters(), DCUIOV::setByID(), CaliIOV::setByID(), MODRunIOV::setByID(), FEConfigSpikeInfo::setByID(), FEConfigTimingInfo::setByID(), FEConfigCokeInfo::setByID(), MonRunIOV::setByID(), FEConfigLUTInfo::setByID(), FEConfigWeightInfo::setByID(), FEConfigSlidingInfo::setByID(), FEConfigOddWeightInfo::setByID(), FEConfigLinInfo::setByID(), RunIOV::setByID(), FEConfigPedInfo::setByID(), FEConfigFgrInfo::setByID(), ODRunConfigInfo::setByID(), FEConfigMainInfo::setByID(), RunIOV::setByRecentData(), MODRunIOV::setByRun(), MonRunIOV::setByRun(), RunIOV::setByRun(), DCUIOV::setByTm(), and CaliIOV::setByTm().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 13 of file DateHandler.h.
References PLUS_INF.
Referenced by DCUIOV::fetchID(), CaliIOV::fetchID(), MODRunIOV::fetchID(), MonRunIOV::fetchID(), RunIOV::fetchID(), RunIOV::fetchIDByRunAndTag(), RunIOV::updateEndTimeDB(), RunIOV::updateStartTimeDB(), DCUIOV::writeDB(), CaliIOV::writeDB(), MODRunIOV::writeDB(), RunIOV::writeDB(), MonRunIOV::writeDB(), LMFSeqDat::writeDBSql(), and LMFLmrSubIOV::writeDBSql().
|
inline |
|
inline |
Date DateHandler::tmToDate | ( | const Tm & | inTm | ) | const |
Translate a Tm object to a oracle Date object
Definition at line 19 of file DateHandler.cc.
References Tm::c_tm(), and Tm::isNull().
Referenced by DCUIOV::fetchID(), CaliIOV::fetchID(), MODRunIOV::fetchID(), MonRunIOV::fetchID(), RunIOV::fetchID(), LMFIOV::fetchIdSql(), LMFLmrSubIOV::fetchIdSql(), DCSPTMTempList::fetchValuesForECIDAndTime(), RunDCSHVDat::getBarrelRset(), RunDCSHVDat::getEndcapAnodeRset(), RunDCSHVDat::getEndcapDynodeRset(), LMFLmrSubIOV::getIOVIDsLaterThan(), DCUIOV::setByTm(), CaliIOV::setByTm(), RunIOV::updateEndTimeDB(), RunIOV::updateStartTimeDB(), DCUIOV::writeDB(), CaliIOV::writeDB(), MODRunIOV::writeDB(), ODCond2ConfInfo::writeDB(), RunIOV::writeDB(), MonRunIOV::writeDB(), LMFIOV::writeDBSql(), LMFRunIOV::writeDBSql(), LMFSeqDat::writeDBSql(), and LMFLmrSubIOV::writeDBSql().
|
private |
Definition at line 45 of file DateHandler.h.
|
private |
Definition at line 46 of file DateHandler.h.
Referenced by getCurrentDate(), maxDate(), and minDate().
|
private |
Definition at line 49 of file DateHandler.h.
Referenced by getNegInfTm().
|
private |
Definition at line 51 of file DateHandler.h.
Referenced by getNegInfDate().
|
private |
Definition at line 48 of file DateHandler.h.
Referenced by getPlusInfTm().
|
private |
Definition at line 50 of file DateHandler.h.
Referenced by getPlusInfDate().