CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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) {}
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
cond::persistency::IOVSchema::~IOVSchema ( )
inlineoverride

Definition at line 250 of file IOVSchema.h.

250 {}

Member Function Documentation

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

Implements cond::persistency::IIOVSchema.

Definition at line 565 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().

565  {
566  bool created = false;
567  if (!exists()) {
568  m_tagTable.create();
570  m_iovTable.create();
573  created = true;
574  }
575  return created;
576  }
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
bool cond::persistency::IOVSchema::exists ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 555 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().

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  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:264
IIOVTable & cond::persistency::IOVSchema::iovTable ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 580 of file IOVSchema.cc.

References m_iovTable.

580 { return m_iovTable; }
IPayloadTable & cond::persistency::IOVSchema::payloadTable ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 591 of file IOVSchema.cc.

References m_payloadTable.

591 { return m_payloadTable; }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:264
ITagAccessPermissionTable & cond::persistency::IOVSchema::tagAccessPermissionTable ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 584 of file IOVSchema.cc.

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

584  {
585  if (!m_tagTable.isProtectable()) {
586  throwException("Tag in this schema are not protectable.", "IOVSchema::tagAccessPermissionTable");
587  }
589  }
TAG_AUTHORIZATION::Table m_tagAccessPermissionTable
Definition: IOVSchema.h:263
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:12
ITagLogTable & cond::persistency::IOVSchema::tagLogTable ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 582 of file IOVSchema.cc.

References m_tagLogTable.

582 { return m_tagLogTable; }
TAG_LOG::Table m_tagLogTable
Definition: IOVSchema.h:262
ITagTable & cond::persistency::IOVSchema::tagTable ( )
overridevirtual

Implements cond::persistency::IIOVSchema.

Definition at line 578 of file IOVSchema.cc.

References m_tagTable.

578 { return m_tagTable; }

Member Data Documentation

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

Definition at line 261 of file IOVSchema.h.

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

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

Definition at line 264 of file IOVSchema.h.

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

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

Definition at line 263 of file IOVSchema.h.

Referenced by create(), and tagAccessPermissionTable().

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

Definition at line 262 of file IOVSchema.h.

Referenced by create(), and tagLogTable().

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

Definition at line 260 of file IOVSchema.h.

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