|
|
Go to the documentation of this file. 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 {
29 boost::posix_time::ptime& insertionTime,
30 boost::posix_time::ptime& modificationTime) = 0;
38 const boost::posix_time::ptime& insertionTime) = 0;
43 const boost::posix_time::ptime& updateTime) = 0;
46 const boost::posix_time::ptime& updateTime) = 0;
49 const boost::posix_time::ptime& updateTime) = 0;
66 const boost::posix_time::ptime& insertionTime) = 0;
76 unsigned long long groupSize,
77 std::vector<cond::Time_t>& groups) = 0;
82 std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) = 0;
92 std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) = 0;
96 const boost::posix_time::ptime& insertTime) = 0;
99 const std::vector<std::tuple<cond::Time_t, cond::Hash, boost::posix_time::ptime> >& iovs) = 0;
102 const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) = 0;
109 virtual bool exists() = 0;
110 virtual void create() = 0;
114 int& statusCode) = 0;
119 const boost::posix_time::ptime& insertionTime) = 0;
128 virtual bool exists() = 0;
129 virtual void create() = 0;
134 const boost::posix_time::ptime& insertionTime) = 0;
138 const boost::posix_time::ptime& insertionTime) = 0;
144 virtual bool exists() = 0;
145 virtual void create() = 0;
147 const boost::posix_time::ptime& eventTime,
158 virtual bool exists() = 0;
159 virtual bool create() = 0;
169 virtual bool exists() = 0;
170 virtual void create() = 0;
183 const boost::posix_time::ptime& insertionTime) = 0;
189 const boost::posix_time::ptime& insertionTime) = 0;
195 virtual bool exists() = 0;
196 virtual void create() = 0;
198 std::vector<std::tuple<std::string, std::string, std::string> >&
tags) = 0;
202 std::vector<std::tuple<std::string, std::string, std::string> >&
tags) = 0;
204 const std::vector<std::tuple<std::string, std::string, std::string> >&
tags) = 0;
210 virtual bool exists() = 0;
211 virtual void create() = 0;
219 virtual bool exists() = 0;
220 virtual void create() = 0;
226 std::vector<std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime> >& runData) = 0;
228 const boost::posix_time::ptime& lower,
229 const boost::posix_time::ptime&
upper,
230 std::vector<std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime> >& runData) = 0;
232 const boost::posix_time::ptime&
start,
233 const boost::posix_time::ptime&
end) = 0;
235 const std::vector<std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime> >&
runs) = 0;
242 virtual bool exists() = 0;
243 virtual bool create() = 0;
virtual IGTTable & gtTable()=0
virtual size_t select(const std::string &tag, cond::Time_t lowerGroup, cond::Time_t upperGroup, const boost::posix_time::ptime &snapshotTime, std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)=0
virtual bool getMetadata(const std::string &name, std::string &description, boost::posix_time::ptime &insertionTime, boost::posix_time::ptime &modificationTime)=0
virtual bool getInclusiveTimeRange(const boost::posix_time::ptime &lower, const boost::posix_time::ptime &upper, std::vector< std::tuple< cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime > > &runData)=0
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 update(const std::string &sourceAccount, const std::string &sourceToken, const std::string &payloadId, const boost::posix_time::ptime &insertionTime)=0
virtual ~ITagMigrationTable()
virtual void update(const std::string &name, cond::Time_t validity, const std::string &description, const std::string &release, const boost::posix_time::ptime &snapshotTime, const boost::posix_time::ptime &insertionTime)=0
virtual void updateMetadata(const std::string &name, const std::string &description, const boost::posix_time::ptime &updateTime)=0
virtual void insert(const std::string &name, cond::Time_t validity, const std::string &description, const std::string &release, const boost::posix_time::ptime &snapshotTime, const boost::posix_time::ptime &insertionTime)=0
virtual IIOVTable & iovTable()=0
virtual ~IPayloadMigrationTable()
virtual bool select(const std::string &sourceAccount, const std::string &sourceToken, std::string &payloadId)=0
virtual void update(const std::string &name, cond::SynchronizationType synchronizationType, cond::Time_t &endOfValidity, cond::Time_t lastValidatedTime, const boost::posix_time::ptime &updateTime)=0
virtual IGTMapTable & gtMapTable()=0
virtual IPayloadTable & payloadTable()=0
virtual cond::Hash insertIfNew(const std::string &objectType, const cond::Binary &payloadData, const cond::Binary &streamerInfoData, const boost::posix_time::ptime &insertionTime)=0
virtual bool select(const std::string &sourceAccount, const std::string &sourceTag, std::string &tagName, int &statusCode)=0
virtual void insert(const std::string &sourceAccount, const std::string &sourceTag, const std::string &tagName, int statusCode, const boost::posix_time::ptime &insertionTime)=0
virtual ~IRunInfoSchema()
virtual void insert(const std::vector< std::tuple< cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime > > &runs)=0
virtual void eraseMany(const std::string &tag, const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)=0
virtual bool getRange(const std::string &tag, cond::Time_t begin, cond::Time_t end, const boost::posix_time::ptime &snapshotTime, std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)=0
virtual bool getInclusiveRunRange(cond::Time_t lower, cond::Time_t upper, std::vector< std::tuple< cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime > > &runData)=0
virtual void updateValidity(const std::string &name, cond::Time_t lastValidatedTime, const boost::posix_time::ptime &updateTime)=0
virtual void setValidationMode()=0
virtual bool select(const std::string >Name, std::vector< std::tuple< std::string, std::string, std::string > > &tags)=0
virtual bool select(const std::string &name)=0
virtual ITagTable & tagTable()=0
virtual void eraseOne(const std::string &tag, cond::Time_t since, cond::Hash payloadId)=0
virtual void insert(const std::string &sourceAccount, const std::string &sourceToken, const std::string &payloadId, const boost::posix_time::ptime &insertionTime)=0
virtual void insertOne(const std::string &tag, cond::Time_t since, cond::Hash payloadHash, const boost::posix_time::ptime &insertTime)=0
unsigned long long Time_t
virtual IRunInfoTable & runInfoTable()=0
virtual void insert(const std::string &tag, const boost::posix_time::ptime &eventTime, const std::string &userName, const std::string &hostName, const std::string &command, const std::string &action, const std::string &userText)=0
virtual ITagLogTable & tagLogTable()=0
virtual bool getSize(const std::string &tag, const boost::posix_time::ptime &snapshotTime, size_t &size)=0
virtual void insertOne(cond::Time_t runNumber, const boost::posix_time::ptime &start, const boost::posix_time::ptime &end)=0
virtual void updateValidationCode(const std::string &sourceAccount, const std::string &sourceTag, int statusCode)=0
virtual bool getType(const cond::Hash &payloadHash, std::string &objectType)=0
virtual void erase(const std::string &tag)=0
virtual bool select(cond::Time_t runNumber, boost::posix_time::ptime &start, boost::posix_time::ptime &end)=0
virtual void insert(const std::string >Name, const std::vector< std::tuple< std::string, std::string, std::string > > &tags)=0
virtual void insertMany(const std::string &tag, const std::vector< std::tuple< cond::Time_t, cond::Hash, boost::posix_time::ptime > > &iovs)=0
virtual void updateEnd(cond::Time_t runNumber, const boost::posix_time::ptime &end)=0
virtual bool getLastIov(const std::string &tag, const boost::posix_time::ptime &snapshotTime, cond::Time_t &since, cond::Hash &hash)=0
virtual cond::Time_t getLastInserted(boost::posix_time::ptime &start, boost::posix_time::ptime &end)=0
virtual size_t getGroups(const std::string &tag, const boost::posix_time::ptime &snapshotTime, unsigned long long groupSize, std::vector< cond::Time_t > &groups)=0
virtual bool select(const cond::Hash &payloadHash, std::string &objectType, cond::Binary &payloadData, cond::Binary &streamerInfoData)=0
virtual bool select(const std::string &name)=0