#include <PayloadProxy.h>
Public Member Functions | |
BasePayloadProxy () | |
virtual void | invalidateCache ()=0 |
IOVProxy | iov () |
bool | isValid () const |
virtual void | loadMore (CondGetter const &) |
void | loadTag (const std::string &tag) |
virtual void | make ()=0 |
const Hash & | payloadId () const |
void | reload () |
const std::vector< Iov_t > & | requests () const |
ValidityInterval | setIntervalFor (Time_t target, bool loadPayload=false) |
void | setUp (Session dbSession) |
TimeType | timeType () const |
virtual | ~BasePayloadProxy () |
Protected Attributes | |
Iov_t | m_currentIov |
IOVProxy | m_iovProxy |
std::vector< Iov_t > | m_requests |
Session | m_session |
Private Member Functions | |
virtual void | loadPayload ()=0 |
Definition at line 22 of file PayloadProxy.h.
cond::persistency::BasePayloadProxy::BasePayloadProxy | ( | ) |
Definition at line 7 of file PayloadProxy.cc.
|
virtual |
Definition at line 11 of file PayloadProxy.cc.
|
pure virtual |
IOVProxy cond::persistency::BasePayloadProxy::iov | ( | ) |
bool cond::persistency::BasePayloadProxy::isValid | ( | void | ) | const |
Definition at line 44 of file PayloadProxy.cc.
References cond::Iov_t::isValid(), and m_currentIov.
Referenced by cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::make(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
inlinevirtual |
Reimplemented in cond::persistency::PayloadProxy< cond::persistency::KeyList >.
Definition at line 50 of file PayloadProxy.h.
|
privatepure virtual |
void cond::persistency::BasePayloadProxy::loadTag | ( | const std::string & | tag | ) |
Definition at line 18 of file PayloadProxy.cc.
References cond::persistency::Transaction::commit(), invalidateCache(), m_iovProxy, m_session, cond::persistency::Session::readIov(), cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().
Referenced by reload().
|
pure virtual |
|
inline |
void cond::persistency::BasePayloadProxy::reload | ( | ) |
Definition at line 25 of file PayloadProxy.cc.
References loadTag(), m_iovProxy, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, and cond::persistency::IOVProxy::tag().
|
inline |
Definition at line 55 of file PayloadProxy.h.
References m_requests.
ValidityInterval cond::persistency::BasePayloadProxy::setIntervalFor | ( | cond::Time_t | time, |
bool | loadPayload = false |
||
) |
Definition at line 30 of file PayloadProxy.cc.
References cond::Iov_t::clear(), cond::persistency::Transaction::commit(), cond::persistency::IOVProxy::end(), cond::persistency::IOVProxy::find(), cond::Iov_t::isValidFor(), loadPayload(), m_currentIov, m_iovProxy, m_session, cond::Iov_t::since, cond::persistency::Transaction::start(), cond::Iov_t::till, and cond::persistency::Session::transaction().
void cond::persistency::BasePayloadProxy::setUp | ( | Session | dbSession | ) |
Definition at line 13 of file PayloadProxy.cc.
References invalidateCache(), and m_session.
|
inline |
Definition at line 48 of file PayloadProxy.h.
References m_iovProxy, and cond::persistency::IOVProxy::timeType().
|
protected |
Definition at line 65 of file PayloadProxy.h.
Referenced by cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::invalidateCache(), isValid(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::loadPayload(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::make(), payloadId(), and setIntervalFor().
|
protected |
Definition at line 64 of file PayloadProxy.h.
Referenced by iov(), loadTag(), reload(), setIntervalFor(), and timeType().
|
protected |
Definition at line 67 of file PayloadProxy.h.
Referenced by cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::invalidateCache(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::loadPayload(), and requests().
|
protected |
Definition at line 66 of file PayloadProxy.h.
Referenced by cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::loadPayload(), loadTag(), cond::persistency::PayloadProxy< std::vector< cond::Time_t > >::make(), setIntervalFor(), and setUp().