CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 ()
 
bool exists ()
 
 IOVSchema (coral::ISchema &schema)
 
IIOVTableiovTable ()
 
IPayloadTablepayloadTable ()
 
ITagMigrationTabletagMigrationTable ()
 
ITagTabletagTable ()
 
virtual ~IOVSchema ()
 
- Public Member Functions inherited from cond::persistency::IIOVSchema
virtual ~IIOVSchema ()
 

Private Attributes

IOV::Table m_iovTable
 
PAYLOAD::Table m_payloadTable
 
TAG_MIGRATION::Table m_tagMigrationTable
 
TAG::Table m_tagTable
 

Detailed Description

Definition at line 163 of file IOVSchema.h.

Constructor & Destructor Documentation

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

Definition at line 387 of file IOVSchema.cc.

387  :
388  m_tagTable( schema ),
389  m_iovTable( schema ),
392  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:176
TAG_MIGRATION::Table m_tagMigrationTable
Definition: IOVSchema.h:177
virtual cond::persistency::IOVSchema::~IOVSchema ( )
inlinevirtual

Definition at line 166 of file IOVSchema.h.

166 {}

Member Function Documentation

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

Implements cond::persistency::IIOVSchema.

Definition at line 401 of file IOVSchema.cc.

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

401  {
402  bool created = false;
403  if( !exists() ){
404  m_tagTable.create();
406  m_iovTable.create();
407  created = true;
408  }
409  return created;
410  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:176
bool cond::persistency::IOVSchema::exists ( )
virtual

Implements cond::persistency::IIOVSchema.

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

394  {
395  if( !m_tagTable.exists() ) return false;
396  if( !m_payloadTable.exists() ) return false;
397  if( !m_iovTable.exists() ) return false;
398  return true;
399  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:176
IIOVTable & cond::persistency::IOVSchema::iovTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 416 of file IOVSchema.cc.

References m_iovTable.

416  {
417  return m_iovTable;
418  }
IPayloadTable & cond::persistency::IOVSchema::payloadTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 420 of file IOVSchema.cc.

References m_payloadTable.

420  {
421  return m_payloadTable;
422  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:176
ITagMigrationTable & cond::persistency::IOVSchema::tagMigrationTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 424 of file IOVSchema.cc.

References m_tagMigrationTable.

424  {
425  return m_tagMigrationTable;
426  }
TAG_MIGRATION::Table m_tagMigrationTable
Definition: IOVSchema.h:177
ITagTable & cond::persistency::IOVSchema::tagTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 412 of file IOVSchema.cc.

References m_tagTable.

412  {
413  return m_tagTable;
414  }

Member Data Documentation

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

Definition at line 175 of file IOVSchema.h.

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

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

Definition at line 176 of file IOVSchema.h.

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

TAG_MIGRATION::Table cond::persistency::IOVSchema::m_tagMigrationTable
private

Definition at line 177 of file IOVSchema.h.

Referenced by tagMigrationTable().

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

Definition at line 174 of file IOVSchema.h.

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