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

Constructor & Destructor Documentation

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

Definition at line 369 of file IOVSchema.cc.

369  :
370  m_tagTable( schema ),
371  m_iovTable( schema ),
374  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:171
TAG_MIGRATION::Table m_tagMigrationTable
Definition: IOVSchema.h:172
virtual cond::persistency::IOVSchema::~IOVSchema ( )
inlinevirtual

Definition at line 161 of file IOVSchema.h.

161 {}

Member Function Documentation

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

Implements cond::persistency::IIOVSchema.

Definition at line 383 of file IOVSchema.cc.

References exists(), m_iovTable, m_payloadTable, and m_tagTable.

383  {
384  bool created = false;
385  if( !exists() ){
386  m_tagTable.create();
387  m_payloadTable.create();
388  m_iovTable.create();
389  created = true;
390  }
391  return created;
392  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:171
bool cond::persistency::IOVSchema::exists ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 376 of file IOVSchema.cc.

References m_iovTable, m_payloadTable, and m_tagTable.

Referenced by create().

376  {
377  if( !m_tagTable.exists() ) return false;
378  if( !m_payloadTable.exists() ) return false;
379  if( !m_iovTable.exists() ) return false;
380  return true;
381  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:171
IIOVTable & cond::persistency::IOVSchema::iovTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 398 of file IOVSchema.cc.

References m_iovTable.

398  {
399  return m_iovTable;
400  }
IPayloadTable & cond::persistency::IOVSchema::payloadTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 402 of file IOVSchema.cc.

References m_payloadTable.

402  {
403  return m_payloadTable;
404  }
PAYLOAD::Table m_payloadTable
Definition: IOVSchema.h:171
ITagMigrationTable & cond::persistency::IOVSchema::tagMigrationTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 406 of file IOVSchema.cc.

References m_tagMigrationTable.

406  {
407  return m_tagMigrationTable;
408  }
TAG_MIGRATION::Table m_tagMigrationTable
Definition: IOVSchema.h:172
ITagTable & cond::persistency::IOVSchema::tagTable ( )
virtual

Implements cond::persistency::IIOVSchema.

Definition at line 394 of file IOVSchema.cc.

References m_tagTable.

394  {
395  return m_tagTable;
396  }

Member Data Documentation

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

Definition at line 170 of file IOVSchema.h.

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

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

Definition at line 171 of file IOVSchema.h.

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

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

Definition at line 172 of file IOVSchema.h.

Referenced by tagMigrationTable().

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

Definition at line 169 of file IOVSchema.h.

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