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 {
27 int& protectionCode) = 0;
30 boost::posix_time::ptime& insertionTime,
31 boost::posix_time::ptime& modificationTime) = 0;
39 const boost::posix_time::ptime& insertionTime) = 0;
44 const boost::posix_time::ptime& updateTime) = 0;
47 const boost::posix_time::ptime& updateTime) = 0;
50 const boost::posix_time::ptime& updateTime) = 0;
68 const boost::posix_time::ptime& insertionTime) = 0;
78 unsigned long long groupSize,
79 std::vector<cond::Time_t>& groups) = 0;
84 std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) = 0;
94 std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) = 0;
98 const boost::posix_time::ptime& insertTime) = 0;
101 const std::vector<std::tuple<cond::Time_t, cond::Hash, boost::posix_time::ptime> >& iovs) = 0;
104 const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs) = 0;
111 virtual bool exists() = 0;
112 virtual void create() = 0;
123 int credentialType) = 0;
130 virtual bool exists() = 0;
131 virtual void create() = 0;
133 const boost::posix_time::ptime& eventTime,
144 virtual bool exists() = 0;
145 virtual bool create() = 0;
156 virtual bool exists() = 0;
157 virtual void create() = 0;
170 const boost::posix_time::ptime& insertionTime) = 0;
176 const boost::posix_time::ptime& insertionTime) = 0;
182 virtual bool exists() = 0;
183 virtual void create() = 0;
185 std::vector<std::tuple<std::string, std::string, std::string> >&
tags) = 0;
189 std::vector<std::tuple<std::string, std::string, std::string> >&
tags) = 0;
191 const std::vector<std::tuple<std::string, std::string, std::string> >&
tags) = 0;
197 virtual bool exists() = 0;
198 virtual void create() = 0;
206 virtual bool exists() = 0;
207 virtual void create() = 0;
213 std::vector<std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime> >& runData) = 0;
215 const boost::posix_time::ptime& lower,
216 const boost::posix_time::ptime& upper,
217 std::vector<std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime> >& runData) = 0;
219 const boost::posix_time::ptime&
start,
220 const boost::posix_time::ptime& end) = 0;
222 const std::vector<std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime> >&
runs) = 0;
229 virtual bool exists() = 0;
230 virtual bool create() = 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 IIOVTable & iovTable()=0
virtual void removeEntriesForCredential(const std::string &credential, int credentialType)=0
virtual void updateValidity(const std::string &name, cond::Time_t lastValidatedTime, const boost::posix_time::ptime &updateTime)=0
virtual cond::Time_t getLastInserted(boost::posix_time::ptime &start, boost::posix_time::ptime &end)=0
virtual void unsetProtectionCode(const std::string &name, int code)=0
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 cond::Hash insertIfNew(const std::string &objectType, const cond::Binary &payloadData, const cond::Binary &streamerInfoData, 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 bool getSize(const std::string &tag, const boost::posix_time::ptime &snapshotTime, size_t &size)=0
virtual void setProtectionCode(const std::string &name, int code)=0
virtual bool getMetadata(const std::string &name, std::string &description, boost::posix_time::ptime &insertionTime, boost::posix_time::ptime &modificationTime)=0
virtual void updateEnd(cond::Time_t runNumber, const boost::posix_time::ptime &end)=0
virtual IRunInfoTable & runInfoTable()=0
virtual bool select(const std::string &name)=0
virtual IPayloadTable & payloadTable()=0
virtual void eraseMany(const std::string &tag, const std::vector< std::tuple< cond::Time_t, cond::Hash > > &iovs)=0
virtual ITagLogTable & tagLogTable()=0
virtual bool getAccessPermission(const std::string &tagName, const std::string &credential, int credentialType, int accessType)=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
unsigned long long Time_t
virtual bool getType(const cond::Hash &payloadHash, std::string &objectType)=0
virtual bool select(const std::string >Name, std::vector< std::tuple< std::string, std::string, std::string > > &tags)=0
virtual bool select(cond::Time_t runNumber, boost::posix_time::ptime &start, boost::posix_time::ptime &end)=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 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 insertMany(const std::string &tag, const std::vector< std::tuple< cond::Time_t, cond::Hash, boost::posix_time::ptime > > &iovs)=0
virtual ~ITagAccessPermissionTable()
virtual IGTTable & gtTable()=0
virtual void setAccessPermission(const std::string &tagName, const std::string &credential, int credentialType, int accessType)=0
virtual bool select(const cond::Hash &payloadHash, std::string &objectType, cond::Binary &payloadData, cond::Binary &streamerInfoData)=0
virtual bool getLastIov(const std::string &tag, const boost::posix_time::ptime &snapshotTime, cond::Time_t &since, cond::Hash &hash)=0
virtual void erase(const std::string &tag)=0
virtual ITagAccessPermissionTable & tagAccessPermissionTable()=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 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 IGTMapTable & gtMapTable()=0
virtual ~IRunInfoSchema()
virtual void insertOne(const std::string &tag, cond::Time_t since, cond::Hash payloadHash, const boost::posix_time::ptime &insertTime)=0
virtual void insertOne(cond::Time_t runNumber, const boost::posix_time::ptime &start, const 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 std::string &name)=0
virtual void removeAccessPermission(const std::string &tagName, const std::string &credential, int credentialType)=0
virtual void insert(const std::string >Name, const std::vector< std::tuple< std::string, std::string, std::string > > &tags)=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 ITagTable & tagTable()=0
virtual void insert(const std::vector< std::tuple< cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime > > &runs)=0
virtual void eraseOne(const std::string &tag, cond::Time_t since, cond::Hash payloadId)=0