1 #ifndef CondCore_CondDB_IDbSchema_h 2 #define CondCore_CondDB_IDbSchema_h 5 #include <boost/date_time/posix_time/posix_time.hpp> 13 namespace persistency {
24 boost::posix_time::ptime& insertionTime, boost::posix_time::ptime& modificationTime ) = 0;
27 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& insertionTime ) = 0;
29 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& updateTime ) = 0;
31 const boost::posix_time::ptime& updateTime ) = 0;
44 const cond::Binary& streamerInfoData,
const boost::posix_time::ptime& insertionTime ) = 0;
53 std::vector<cond::Time_t>& groups ) = 0;
55 const boost::posix_time::ptime& snapshotTime,
56 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs) = 0;
58 virtual bool getSize(
const std::string& tag,
const boost::posix_time::ptime& snapshotTime,
size_t&
size ) = 0;
60 const boost::posix_time::ptime& snapshotTime, std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs ) = 0;
62 const boost::posix_time::ptime& insertTime ) = 0;
64 const std::vector<std::tuple<cond::Time_t,cond::Hash,boost::posix_time::ptime> >& iovs ) = 0;
75 int statusCode,
const boost::posix_time::ptime& insertionTime ) = 0;
76 virtual void updateValidationCode(
const std::string& sourceAccount,
const std::string& sourceTag,
int statusCode ) = 0;
86 const boost::posix_time::ptime& insertionTime ) = 0;
88 const boost::posix_time::ptime& insertionTime ) = 0;
103 virtual bool exists() = 0;
104 virtual bool create() = 0;
114 virtual bool exists() = 0;
115 virtual void create() = 0;
121 const boost::posix_time::ptime& snapshotTime,
const boost::posix_time::ptime& insertionTime ) = 0;
123 const boost::posix_time::ptime& snapshotTime,
const boost::posix_time::ptime& insertionTime ) = 0;
129 virtual bool exists() = 0;
130 virtual void create() = 0;
131 virtual bool select(
const std::string& gtName, std::vector<std::tuple<std::string,std::string,std::string> >& tags ) = 0;
133 std::vector<std::tuple<std::string,std::string,std::string> >& tags ) = 0;
134 virtual void insert(
const std::string& gtName,
const std::vector<std::tuple<std::string,std::string,std::string> >& tags ) = 0;
140 virtual bool exists() = 0;
141 virtual void create() = 0;
149 virtual bool exists() = 0;
150 virtual void create() = 0;
154 std::vector<std::tuple<cond::Time_t,boost::posix_time::ptime,boost::posix_time::ptime> >& runData ) = 0;
155 virtual bool getInclusiveTimeRange(
const boost::posix_time::ptime& lower ,
const boost::posix_time::ptime& upper,
156 std::vector<std::tuple<cond::Time_t,boost::posix_time::ptime,boost::posix_time::ptime> >& runData ) = 0;
157 virtual void insertOne(
cond::Time_t runNumber,
const boost::posix_time::ptime& start,
const boost::posix_time::ptime& end) = 0;
158 virtual void insert(
const std::vector<std::tuple<cond::Time_t,boost::posix_time::ptime,boost::posix_time::ptime> >&
runs ) = 0;
159 virtual void updateEnd(
cond::Time_t runNumber,
const boost::posix_time::ptime& end ) = 0;
165 virtual bool exists() = 0;
166 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