CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cond::persistency::IOVSchema Class Reference

#include <IOVSchema.h>

Inheritance diagram for cond::persistency::IOVSchema:
cond::persistency::IIOVSchema

Public Member Functions

bool create () override
 
bool exists () override
 
 IOVSchema (coral::ISchema &schema)
 
IIOVTableiovTable () override
 
IPayloadTablepayloadTable () override
 
ITagAccessPermissionTabletagAccessPermissionTable () override
 
ITagLogTabletagLogTable () override
 
ITagTabletagTable () override
 
 ~IOVSchema () override
 
- Public Member Functions inherited from cond::persistency::IIOVSchema
virtual ~IIOVSchema ()
 

Private Attributes

IOV::Table m_iovTable
 
PAYLOAD::Table m_payloadTable
 
TAG_AUTHORIZATION::Table m_tagAccessPermissionTable
 
TAG_LOG::Table m_tagLogTable
 
TAG::Table m_tagTable
 

Detailed Description

Definition at line 247 of file IOVSchema.h.

Constructor & Destructor Documentation

◆ IOVSchema()

cond::persistency::IOVSchema::IOVSchema ( coral::ISchema &  schema)
explicit

Definition at line 553 of file IOVSchema.cc.

554  : m_tagTable(schema),
555  m_iovTable(schema),
556  m_tagLogTable(schema),
558  m_payloadTable(schema) {}
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:264
TAG_AUTHORIZATION::Table m_tagAccessPermissionTable
Definition: IOVSchema.h:263
TAG_LOG::Table m_tagLogTable
Definition: IOVSchema.h:262

◆ ~IOVSchema()

cond::persistency::IOVSchema::~IOVSchema ( )
inlineoverride

Definition at line 250 of file IOVSchema.h.

250 {}

Member Function Documentation

◆ create()

bool cond::persistency::IOVSchema::create ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 570 of file IOVSchema.cc.

References cond::persistency::TAG::Table::create(), cond::persistency::PAYLOAD::Table::create(), cond::persistency::IOV::Table::create(), cond::persistency::TAG_AUTHORIZATION::Table::create(), cond::persistency::TAG_LOG::Table::create(), exists(), m_iovTable, m_payloadTable, m_tagAccessPermissionTable, m_tagLogTable, and m_tagTable.

Referenced by o2olib.O2OTool::execute().

570  {
571  bool created = false;
572  if (!exists()) {
573  m_tagTable.create();
575  m_iovTable.create();
578  created = true;
579  }
580  return created;
581  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:264
TAG_AUTHORIZATION::Table m_tagAccessPermissionTable
Definition: IOVSchema.h:263
TAG_LOG::Table m_tagLogTable
Definition: IOVSchema.h:262

◆ exists()

bool cond::persistency::IOVSchema::exists ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 560 of file IOVSchema.cc.

References cond::persistency::TAG::Table::exists(), cond::persistency::PAYLOAD::Table::exists(), cond::persistency::IOV::Table::exists(), m_iovTable, m_payloadTable, and m_tagTable.

Referenced by create().

560  {
561  if (!m_tagTable.exists())
562  return false;
563  if (!m_payloadTable.exists())
564  return false;
565  if (!m_iovTable.exists())
566  return false;
567  return true;
568  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:264

◆ iovTable()

IIOVTable & cond::persistency::IOVSchema::iovTable ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 585 of file IOVSchema.cc.

References m_iovTable.

585 { return m_iovTable; }

◆ payloadTable()

IPayloadTable & cond::persistency::IOVSchema::payloadTable ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 596 of file IOVSchema.cc.

References m_payloadTable.

596 { return m_payloadTable; }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:264

◆ tagAccessPermissionTable()

ITagAccessPermissionTable & cond::persistency::IOVSchema::tagAccessPermissionTable ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 589 of file IOVSchema.cc.

References cond::persistency::TAG::Table::isProtectable(), m_tagAccessPermissionTable, m_tagTable, and cond::persistency::throwException().

589  {
590  if (!m_tagTable.isProtectable()) {
591  throwException("Tag in this schema are not protectable.", "IOVSchema::tagAccessPermissionTable");
592  }
594  }
TAG_AUTHORIZATION::Table m_tagAccessPermissionTable
Definition: IOVSchema.h:263
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12

◆ tagLogTable()

ITagLogTable & cond::persistency::IOVSchema::tagLogTable ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 587 of file IOVSchema.cc.

References m_tagLogTable.

587 { return m_tagLogTable; }
TAG_LOG::Table m_tagLogTable
Definition: IOVSchema.h:262

◆ tagTable()

ITagTable & cond::persistency::IOVSchema::tagTable ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 583 of file IOVSchema.cc.

References m_tagTable.

583 { return m_tagTable; }

Member Data Documentation

◆ m_iovTable

IOV::Table cond::persistency::IOVSchema::m_iovTable
private

Definition at line 261 of file IOVSchema.h.

Referenced by create(), exists(), and iovTable().

◆ m_payloadTable

PAYLOAD::Table cond::persistency::IOVSchema::m_payloadTable
private

Definition at line 264 of file IOVSchema.h.

Referenced by create(), exists(), and payloadTable().

◆ m_tagAccessPermissionTable

TAG_AUTHORIZATION::Table cond::persistency::IOVSchema::m_tagAccessPermissionTable
private

Definition at line 263 of file IOVSchema.h.

Referenced by create(), and tagAccessPermissionTable().

◆ m_tagLogTable

TAG_LOG::Table cond::persistency::IOVSchema::m_tagLogTable
private

Definition at line 262 of file IOVSchema.h.

Referenced by create(), and tagLogTable().

◆ m_tagTable

TAG::Table cond::persistency::IOVSchema::m_tagTable
private

Definition at line 260 of file IOVSchema.h.

Referenced by create(), exists(), tagAccessPermissionTable(), and tagTable().