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;
155 const boost::posix_time::ptime& snapshotTime,
156 unsigned long long groupSize,
157 std::vector<cond::Time_t>& groups)
override;
161 const boost::posix_time::ptime& snapshotTime,
164 const boost::posix_time::ptime& snapshotTime,
167 bool getSize(
const std::string&
tag,
const boost::posix_time::ptime& snapshotTime,
size_t&
size)
override;
171 const boost::posix_time::ptime& snapshotTime,
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;
201 bool getAccessPermission(
const std::string& tagName,
204 int accessType)
override;
205 void setAccessPermission(
const std::string& tagName,
208 int accessType)
override;
209 void removeAccessPermission(
const std::string& tagName,
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);
static std::string tableName()
coral::ISchema & m_schema
coral::ISchema & m_schema
static constexpr unsigned int PAYLOAD_HASH_SIZE
static std::string tableName()
#define conddb_column(...)
PAYLOAD::Table m_payloadTable
coral::ISchema & m_schema
static std::string group(unsigned long long groupSize)
IPayloadTable & payloadTable() override
coral::ISchema & m_schema
TAG_AUTHORIZATION::Table m_tagAccessPermissionTable
unsigned long long Time_t
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
ITagLogTable & tagLogTable() override
static std::string fullyQualifiedName()
static std::string tableName()
static std::string tableName()
TAG_LOG::Table m_tagLogTable
static std::string fullyQualifiedName()
IOVSchema(coral::ISchema &schema)
coral::ISchema & m_schema
static std::string fullyQualifiedName()
static constexpr unsigned int PAYLOAD_HASH_SIZE
IIOVTable & iovTable() override
ITagAccessPermissionTable & tagAccessPermissionTable() override
ITagTable & tagTable() override
tuple size
Write out results.
#define conddb_table(NAME)
static std::string fullyQualifiedName()