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 548 of file IOVSchema.cc.

549  : m_tagTable(schema),
550  m_iovTable(schema),
551  m_tagLogTable(schema),
553  m_payloadTable(schema) {}

◆ ~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

◆ exists()

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

Implements cond::persistency::IIOVSchema.

Definition at line 555 of file IOVSchema.cc.

555  {
556  if (!m_tagTable.exists())
557  return false;
558  if (!m_payloadTable.exists())
559  return false;
560  if (!m_iovTable.exists())
561  return false;
562  return true;
563  }

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().

◆ iovTable()

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

Implements cond::persistency::IIOVSchema.

Definition at line 580 of file IOVSchema.cc.

580 { return m_iovTable; }

References m_iovTable.

◆ payloadTable()

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

Implements cond::persistency::IIOVSchema.

Definition at line 591 of file IOVSchema.cc.

591 { return m_payloadTable; }

References m_payloadTable.

◆ tagAccessPermissionTable()

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

Implements cond::persistency::IIOVSchema.

Definition at line 584 of file IOVSchema.cc.

584  {
585  if (!m_tagTable.isProtectable()) {
586  throwException("Tag in this schema are not protectable.", "IOVSchema::tagAccessPermissionTable");
587  }
589  }

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

◆ tagLogTable()

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

Implements cond::persistency::IIOVSchema.

Definition at line 582 of file IOVSchema.cc.

582 { return m_tagLogTable; }

References m_tagLogTable.

◆ tagTable()

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

Implements cond::persistency::IIOVSchema.

Definition at line 578 of file IOVSchema.cc.

578 { return m_tagTable; }

References 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().

cond::persistency::IOVSchema::exists
bool exists() override
Definition: IOVSchema.cc:555
cond::persistency::IOVSchema::m_tagTable
TAG::Table m_tagTable
Definition: IOVSchema.h:260
cond::persistency::IOV::Table::exists
bool exists() override
Definition: IOVSchema.cc:230
cond::persistency::TAG_LOG::Table::create
void create() override
Definition: IOVSchema.cc:399
cond::persistency::IOVSchema::m_payloadTable
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:264
cond::persistency::IOVSchema::m_tagLogTable
TAG_LOG::Table m_tagLogTable
Definition: IOVSchema.h:262
cond::persistency::PAYLOAD::Table::create
void create() override
Definition: IOVSchema.cc:480
cond::persistency::PAYLOAD::Table::exists
bool exists() override
Definition: IOVSchema.cc:478
cond::persistency::TAG::Table::exists
bool exists() override
cond::persistency::TAG::Table::isProtectable
bool isProtectable()
Definition: IOVSchema.h:65
cond::persistency::TAG::Table::create
void create() override
Definition: IOVSchema.cc:48
cond::persistency::throwException
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
cond::persistency::IOVSchema::m_iovTable
IOV::Table m_iovTable
Definition: IOVSchema.h:261
cond::persistency::IOVSchema::m_tagAccessPermissionTable
TAG_AUTHORIZATION::Table m_tagAccessPermissionTable
Definition: IOVSchema.h:263
cond::persistency::TAG_AUTHORIZATION::Table::create
void create() override
Definition: IOVSchema.cc:425
cond::persistency::IOV::Table::create
void create() override
Definition: IOVSchema.cc:232