1 #ifndef CondCore_CondDB_PayloadProxy_h
2 #define CondCore_CondDB_PayloadProxy_h
9 namespace persistency {
36 virtual void make()=0;
75 template<
typename DataT>
87 throwException(
"The Payload has not been loaded.",
"PayloadProxy::operator()");
116 throwException(
"Can't load payload: no valid IOV found.",
"PayloadProxy::loadPayload" );
130 #endif // CondCore_CondDB_PayloadProxy_h
virtual void loadPayload()
const std::vector< Iov_t > & requests() const
virtual void invalidateCache()=0
virtual void invalidateCache()
boost::shared_ptr< T > fetchPayload(const cond::Hash &payloadHash)
void start(bool readOnly=true)
TimeType timeType() const
const DataT & operator()() const
Transaction & transaction()
virtual void loadPayload()=0
std::vector< Iov_t > m_requests
cond::TimeType timeType() const
unsigned long long Time_t
virtual void invalidateTransientCache()
virtual ~BasePayloadProxy()
ValidityInterval setIntervalFor(Time_t target, bool loadPayload=false)
void loadTag(const std::string &tag)
const Hash & payloadId() const
void setUp(Session dbSession)
virtual void loadMore(CondGetter const &)
boost::shared_ptr< DataT > m_data
static std::string const source
void throwException(const std::string &message, const std::string &methodName)
PayloadProxy(const char *source=0)