CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
ora::PoolClassVersionTable Class Reference

#include <PoolDatabaseSchema.h>

Inheritance diagram for ora::PoolClassVersionTable:
ora::IDatabaseTable

Public Member Functions

void create ()
 
void drop ()
 
bool exists ()
 
 PoolClassVersionTable (coral::ISchema &dbSchema)
 
virtual ~PoolClassVersionTable ()
 
- Public Member Functions inherited from ora::IDatabaseTable
virtual ~IDatabaseTable ()
 

Static Public Member Functions

static std::string classVersionColumn ()
 
static std::string containerNameColumn ()
 
static std::string mappingVersionColumn ()
 
static std::string tableName ()
 

Private Attributes

coral::ISchema & m_schema
 

Detailed Description

Definition at line 157 of file PoolDatabaseSchema.h.

Constructor & Destructor Documentation

ora::PoolClassVersionTable::PoolClassVersionTable ( coral::ISchema &  dbSchema)
explicit

Definition at line 644 of file PoolDatabaseSchema.cc.

644  :
645  m_schema( dbSchema ){
646 }
ora::PoolClassVersionTable::~PoolClassVersionTable ( )
virtual

Definition at line 648 of file PoolDatabaseSchema.cc.

648  {
649 }

Member Function Documentation

std::string ora::PoolClassVersionTable::classVersionColumn ( )
static
std::string ora::PoolClassVersionTable::containerNameColumn ( )
static
void ora::PoolClassVersionTable::create ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 655 of file PoolDatabaseSchema.cc.

References ora::throwException().

655  {
656  if( m_schema.existsTable( tableName() )){
657  throwException( "POOL database class version table already exists in this schema.",
658  "PoolClassVersionTable::create");
659  }
660  throwException( "POOL database cannot be created.","PoolClassVersionTable::create");
661 }
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:10
static std::string tableName()
void ora::PoolClassVersionTable::drop ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 663 of file PoolDatabaseSchema.cc.

663  {
664  m_schema.dropIfExistsTable( tableName() );
665 }
static std::string tableName()
bool ora::PoolClassVersionTable::exists ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 651 of file PoolDatabaseSchema.cc.

651  {
652  return m_schema.existsTable( tableName() );
653 }
static std::string tableName()
std::string ora::PoolClassVersionTable::mappingVersionColumn ( )
static
std::string ora::PoolClassVersionTable::tableName ( )
static

Member Data Documentation

coral::ISchema& ora::PoolClassVersionTable::m_schema
private

Definition at line 171 of file PoolDatabaseSchema.h.