1 #ifndef CondCore_CondDB_IDbSchema_h 2 #define CondCore_CondDB_IDbSchema_h 5 #include <boost/date_time/posix_time/posix_time.hpp> 9 namespace persistency {
20 boost::posix_time::ptime& insertionTime, boost::posix_time::ptime& modificationTime ) = 0;
23 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& insertionTime ) = 0;
25 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& updateTime ) = 0;
27 const boost::posix_time::ptime& updateTime ) = 0;
40 const cond::Binary& streamerInfoData,
const boost::posix_time::ptime& insertionTime ) = 0;
49 std::vector<cond::Time_t>& groups ) = 0;
51 const boost::posix_time::ptime& snapshotTime,
52 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs) = 0;
54 virtual bool getSize(
const std::string& tag,
const boost::posix_time::ptime& snapshotTime,
size_t&
size ) = 0;
56 const boost::posix_time::ptime& snapshotTime, std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ) = 0;
58 const boost::posix_time::ptime& insertTime ) = 0;
60 const std::vector<std::tuple<cond::Time_t,cond::Hash,boost::posix_time::ptime> >& iovs ) = 0;
71 int statusCode,
const boost::posix_time::ptime& insertionTime ) = 0;
72 virtual void updateValidationCode(
const std::string& sourceAccount,
const std::string& sourceTag,
int statusCode ) = 0;
82 const boost::posix_time::ptime& insertionTime ) = 0;
84 const boost::posix_time::ptime& insertionTime ) = 0;
100 virtual bool create() = 0;
110 virtual bool exists() = 0;
111 virtual void create() = 0;
117 const boost::posix_time::ptime& snapshotTime,
const boost::posix_time::ptime& insertionTime ) = 0;
119 const boost::posix_time::ptime& snapshotTime,
const boost::posix_time::ptime& insertionTime ) = 0;
125 virtual bool exists() = 0;
126 virtual void create() = 0;
127 virtual bool select(
const std::string& gtName, std::vector<std::tuple<std::string,std::string,std::string> >& tags ) = 0;
129 std::vector<std::tuple<std::string,std::string,std::string> >& tags ) = 0;
130 virtual void insert(
const std::string& gtName,
const std::vector<std::tuple<std::string,std::string,std::string> >& tags ) = 0;
136 virtual bool exists() = 0;
137 virtual void create() = 0;
145 virtual bool exists() = 0;
146 virtual void create() = 0;
150 std::vector<std::tuple<cond::Time_t,boost::posix_time::ptime,boost::posix_time::ptime> >& runData ) = 0;
151 virtual bool getInclusiveTimeRange(
const boost::posix_time::ptime& lower ,
const boost::posix_time::ptime& upper,
152 std::vector<std::tuple<cond::Time_t,boost::posix_time::ptime,boost::posix_time::ptime> >& runData ) = 0;
153 virtual void insertOne(
cond::Time_t runNumber,
const boost::posix_time::ptime& start,
const boost::posix_time::ptime& end) = 0;
154 virtual void insert(
const std::vector<std::tuple<cond::Time_t,boost::posix_time::ptime,boost::posix_time::ptime> >&
runs ) = 0;
155 virtual void updateEnd(
cond::Time_t runNumber,
const boost::posix_time::ptime& end ) = 0;
161 virtual bool exists() = 0;
162 virtual bool create() = 0;
virtual void update(const std::string &name, cond::SynchronizationType synchronizationType, cond::Time_t &endOfValidity, const std::string &description, cond::Time_t lastValidatedTime, const boost::posix_time::ptime &updateTime)=0
virtual ~ITagMigrationTable()
virtual void updateValidity(const std::string &name, cond::Time_t lastValidatedTime, const boost::posix_time::ptime &updateTime)=0
virtual bool getMetadata(const std::string &name, std::string &description, boost::posix_time::ptime &insertionTime, boost::posix_time::ptime &modificationTime)=0
unsigned long long Time_t
virtual void insert(const std::string &name, cond::TimeType timeType, const std::string &objectType, cond::SynchronizationType synchronizationType, cond::Time_t endOfValidity, const std::string &description, cond::Time_t lastValidatedTime, const boost::posix_time::ptime &insertionTime)=0
virtual void setValidationMode()=0
virtual ~IRunInfoSchema()
virtual ~IPayloadMigrationTable()
virtual bool select(const std::string &name)=0