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
 
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_LOG::Table m_tagLogTable
 
TAG::Table m_tagTable
 

Detailed Description

Definition at line 211 of file IOVSchema.h.

Constructor & Destructor Documentation

◆ IOVSchema()

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

Definition at line 415 of file IOVSchema.cc.

416  : m_tagTable(schema), m_iovTable(schema), m_tagLogTable(schema), m_payloadTable(schema) {}

◆ ~IOVSchema()

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

Definition at line 214 of file IOVSchema.h.

214 {}

Member Function Documentation

◆ create()

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

Implements cond::persistency::IIOVSchema.

Definition at line 428 of file IOVSchema.cc.

428  {
429  bool created = false;
430  if (!exists()) {
431  m_tagTable.create();
433  m_iovTable.create();
435  created = true;
436  }
437  return created;
438  }

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

Referenced by o2olib.O2OTool::execute().

◆ exists()

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

Implements cond::persistency::IIOVSchema.

Definition at line 418 of file IOVSchema.cc.

418  {
419  if (!m_tagTable.exists())
420  return false;
421  if (!m_payloadTable.exists())
422  return false;
423  if (!m_iovTable.exists())
424  return false;
425  return true;
426  }

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

442 { return m_iovTable; }

References m_iovTable.

◆ payloadTable()

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

Implements cond::persistency::IIOVSchema.

Definition at line 446 of file IOVSchema.cc.

446 { return m_payloadTable; }

References m_payloadTable.

◆ tagLogTable()

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

Implements cond::persistency::IIOVSchema.

Definition at line 444 of file IOVSchema.cc.

444 { return m_tagLogTable; }

References m_tagLogTable.

◆ tagTable()

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

Implements cond::persistency::IIOVSchema.

Definition at line 440 of file IOVSchema.cc.

440 { return m_tagTable; }

References m_tagTable.

Member Data Documentation

◆ m_iovTable

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

Definition at line 224 of file IOVSchema.h.

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

◆ m_payloadTable

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

Definition at line 226 of file IOVSchema.h.

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

◆ m_tagLogTable

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

Definition at line 225 of file IOVSchema.h.

Referenced by create(), and tagLogTable().

◆ m_tagTable

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

Definition at line 223 of file IOVSchema.h.

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

cond::persistency::IOVSchema::exists
bool exists() override
Definition: IOVSchema.cc:418
cond::persistency::IOVSchema::m_tagTable
TAG::Table m_tagTable
Definition: IOVSchema.h:223
cond::persistency::IOV::Table::exists
bool exists() override
Definition: IOVSchema.cc:152
cond::persistency::TAG_LOG::Table::create
void create() override
Definition: IOVSchema.cc:321
cond::persistency::IOVSchema::m_payloadTable
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:226
cond::persistency::IOVSchema::m_tagLogTable
TAG_LOG::Table m_tagLogTable
Definition: IOVSchema.h:225
cond::persistency::PAYLOAD::Table::create
void create() override
Definition: IOVSchema.cc:347
cond::persistency::PAYLOAD::Table::exists
bool exists() override
Definition: IOVSchema.cc:345
cond::persistency::TAG::Table::exists
bool exists() override
cond::persistency::TAG::Table::create
void create() override
Definition: IOVSchema.cc:39
cond::persistency::IOVSchema::m_iovTable
IOV::Table m_iovTable
Definition: IOVSchema.h:224
cond::persistency::IOV::Table::create
void create() override
Definition: IOVSchema.cc:154