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 ()
 
std::string parsePoolToken (const std::string &)
 
IPayloadMigrationTablepayloadMigrationTable ()
 
IPayloadTablepayloadTable ()
 
ITagMigrationTabletagMigrationTable ()
 
ITagTabletagTable ()
 
virtual ~IOVSchema ()
 
- Public Member Functions inherited from cond::persistency::IIOVSchema
virtual ~IIOVSchema ()
 

Private Attributes

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

Detailed Description

Definition at line 186 of file IOVSchema.h.

Constructor & Destructor Documentation

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

Definition at line 466 of file IOVSchema.cc.

466  :
467  m_tagTable( schema ),
468  m_iovTable( schema ),
472  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:201
TAG_MIGRATION::Table m_tagMigrationTable
Definition: IOVSchema.h:202
PAYLOAD_MIGRATION::Table m_payloadMigrationTable
Definition: IOVSchema.h:203
virtual cond::persistency::IOVSchema::~IOVSchema ( )
inlinevirtual

Definition at line 189 of file IOVSchema.h.

189 {}

Member Function Documentation

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

Implements cond::persistency::IIOVSchema.

Definition at line 481 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.

481  {
482  bool created = false;
483  if( !exists() ){
484  m_tagTable.create();
486  m_iovTable.create();
487  created = true;
488  }
489  return created;
490  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:201
bool cond::persistency::IOVSchema::exists ( )
virtual

Implements cond::persistency::IIOVSchema.

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

474  {
475  if( !m_tagTable.exists() ) return false;
476  if( !m_payloadTable.exists() ) return false;
477  if( !m_iovTable.exists() ) return false;
478  return true;
479  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:201
IIOVTable & cond::persistency::IOVSchema::iovTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 496 of file IOVSchema.cc.

References m_iovTable.

496  {
497  return m_iovTable;
498  }
std::string cond::persistency::IOVSchema::parsePoolToken ( const std::string &  )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 512 of file IOVSchema.cc.

References cond::persistency::throwException().

512  {
513  throwException("CondDB V2 can't parse a pool token.","IOVSchema::parsePoolToken");
514  }
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:11
IPayloadMigrationTable & cond::persistency::IOVSchema::payloadMigrationTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 508 of file IOVSchema.cc.

References m_payloadMigrationTable.

508  {
510  }
PAYLOAD_MIGRATION::Table m_payloadMigrationTable
Definition: IOVSchema.h:203
IPayloadTable & cond::persistency::IOVSchema::payloadTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 500 of file IOVSchema.cc.

References m_payloadTable.

500  {
501  return m_payloadTable;
502  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:201
ITagMigrationTable & cond::persistency::IOVSchema::tagMigrationTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 504 of file IOVSchema.cc.

References m_tagMigrationTable.

504  {
505  return m_tagMigrationTable;
506  }
TAG_MIGRATION::Table m_tagMigrationTable
Definition: IOVSchema.h:202
ITagTable & cond::persistency::IOVSchema::tagTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 492 of file IOVSchema.cc.

References m_tagTable.

492  {
493  return m_tagTable;
494  }

Member Data Documentation

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

Definition at line 200 of file IOVSchema.h.

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

PAYLOAD_MIGRATION::Table cond::persistency::IOVSchema::m_payloadMigrationTable
private

Definition at line 203 of file IOVSchema.h.

Referenced by payloadMigrationTable().

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

Definition at line 201 of file IOVSchema.h.

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

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

Definition at line 202 of file IOVSchema.h.

Referenced by tagMigrationTable().

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

Definition at line 199 of file IOVSchema.h.

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