CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

ora::PoolClassVersionTable Class Reference

#include <PoolDatabaseSchema.h>

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

List of all members.

Public Member Functions

void create ()
void drop ()
bool exists ()
 PoolClassVersionTable (coral::ISchema &dbSchema)
virtual ~PoolClassVersionTable ()

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.

                                                                        :
  m_schema( dbSchema ){
}
ora::PoolClassVersionTable::~PoolClassVersionTable ( ) [virtual]

Definition at line 648 of file PoolDatabaseSchema.cc.

                                                {
}

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().

                                     {
  if( m_schema.existsTable( tableName() )){
    throwException( "POOL database class version table already exists in this schema.",
                    "PoolClassVersionTable::create");
  }
  throwException( "POOL database cannot be created.","PoolClassVersionTable::create");  
}
void ora::PoolClassVersionTable::drop ( ) [virtual]

Implements ora::IDatabaseTable.

Definition at line 663 of file PoolDatabaseSchema.cc.

                                   {
  m_schema.dropIfExistsTable( tableName() );
}
bool ora::PoolClassVersionTable::exists ( ) [virtual]

Implements ora::IDatabaseTable.

Definition at line 651 of file PoolDatabaseSchema.cc.

                                     {
  return m_schema.existsTable( 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.