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 187 of file IOVSchema.h.

Constructor & Destructor Documentation

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

Definition at line 433 of file IOVSchema.cc.

433  :
434  m_tagTable( schema ),
435  m_iovTable( schema ),
439  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:202
TAG_MIGRATION::Table m_tagMigrationTable
Definition: IOVSchema.h:203
PAYLOAD_MIGRATION::Table m_payloadMigrationTable
Definition: IOVSchema.h:204
virtual cond::persistency::IOVSchema::~IOVSchema ( )
inlinevirtual

Definition at line 190 of file IOVSchema.h.

190 {}

Member Function Documentation

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

Implements cond::persistency::IIOVSchema.

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

448  {
449  bool created = false;
450  if( !exists() ){
451  m_tagTable.create();
453  m_iovTable.create();
454  created = true;
455  }
456  return created;
457  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:202
bool cond::persistency::IOVSchema::exists ( )
virtual

Implements cond::persistency::IIOVSchema.

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

441  {
442  if( !m_tagTable.exists() ) return false;
443  if( !m_payloadTable.exists() ) return false;
444  if( !m_iovTable.exists() ) return false;
445  return true;
446  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:202
IIOVTable & cond::persistency::IOVSchema::iovTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 463 of file IOVSchema.cc.

References m_iovTable.

463  {
464  return m_iovTable;
465  }
std::string cond::persistency::IOVSchema::parsePoolToken ( const std::string &  )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 479 of file IOVSchema.cc.

References cond::persistency::throwException().

479  {
480  throwException("CondDB V2 can't parse a pool token.","IOVSchema::parsePoolToken");
481  }
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 475 of file IOVSchema.cc.

References m_payloadMigrationTable.

475  {
477  }
PAYLOAD_MIGRATION::Table m_payloadMigrationTable
Definition: IOVSchema.h:204
IPayloadTable & cond::persistency::IOVSchema::payloadTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 467 of file IOVSchema.cc.

References m_payloadTable.

467  {
468  return m_payloadTable;
469  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:202
ITagMigrationTable & cond::persistency::IOVSchema::tagMigrationTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 471 of file IOVSchema.cc.

References m_tagMigrationTable.

471  {
472  return m_tagMigrationTable;
473  }
TAG_MIGRATION::Table m_tagMigrationTable
Definition: IOVSchema.h:203
ITagTable & cond::persistency::IOVSchema::tagTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 459 of file IOVSchema.cc.

References m_tagTable.

459  {
460  return m_tagTable;
461  }

Member Data Documentation

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

Definition at line 201 of file IOVSchema.h.

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

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

Definition at line 204 of file IOVSchema.h.

Referenced by payloadMigrationTable().

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

Definition at line 202 of file IOVSchema.h.

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

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

Definition at line 203 of file IOVSchema.h.

Referenced by tagMigrationTable().

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

Definition at line 200 of file IOVSchema.h.

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