1 #ifndef CondCore_CondDB_IOVSchema_h
2 #define CondCore_CondDB_IOVSchema_h
7 #include <boost/date_time/posix_time/posix_time.hpp>
11 namespace persistency {
27 explicit Table(coral::ISchema& schema);
29 bool exists()
override;
38 int& protectionCode)
override;
41 boost::posix_time::ptime& insertionTime,
42 boost::posix_time::ptime& modificationTime)
override;
50 const boost::posix_time::ptime& insertionTime)
override;
55 const boost::posix_time::ptime& updateTime)
override;
58 const boost::posix_time::ptime& updateTime)
override;
61 const boost::posix_time::ptime& updateTime)
override;
69 bool m_isProtectable =
false;
85 explicit Table(coral::ISchema& schema);
87 bool exists()
override;
99 const boost::posix_time::ptime& insertionTime);
103 const boost::posix_time::ptime& insertionTime)
override;
118 static constexpr
size_t size = 0;
122 std::string sgroupSize = std::to_string(groupSize);
123 return "CAST(" + SINCE::fullyQualifiedName() +
"/" + sgroupSize +
" AS INT )*" + sgroupSize;
129 static constexpr
size_t size = 0;
136 static constexpr
size_t size = 0;
143 static constexpr
size_t size = 0;
150 explicit Table(coral::ISchema& schema);
152 bool exists()
override;
156 unsigned long long groupSize,
157 std::vector<cond::Time_t>& groups)
override;
162 std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override;
172 std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override;
176 const boost::posix_time::ptime& insertTime)
override;
179 const std::vector<std::tuple<cond::Time_t, cond::Hash, boost::posix_time::ptime> >& iovs)
override;
197 explicit Table(coral::ISchema& schema);
199 bool exists()
override;
204 int accessType)
override;
208 int accessType)
override;
211 int credentialType)
override;
212 void removeEntriesForCredential(
const std::string& credential,
int credentialType)
override;
230 explicit Table(coral::ISchema& schema);
232 bool exists()
override;
235 const boost::posix_time::ptime& eventTime,
249 explicit IOVSchema(coral::ISchema& schema);