CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions

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 ()
std::string name ()
 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 ()

Detailed Description

Definition at line 157 of file PoolDatabaseSchema.h.


Constructor & Destructor Documentation

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

Definition at line 703 of file PoolDatabaseSchema.cc.

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

Definition at line 707 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 718 of file PoolDatabaseSchema.cc.

References python::IdGenerator::schema, and ora::throwException().

                                     {
  if( 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 726 of file PoolDatabaseSchema.cc.

References python::IdGenerator::schema.

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

Implements ora::IDatabaseTable.

Definition at line 714 of file PoolDatabaseSchema.cc.

References python::IdGenerator::schema.

                                     {
  return schema().existsTable( tableName() );
}
std::string ora::PoolClassVersionTable::mappingVersionColumn ( ) [static]
std::string ora::PoolClassVersionTable::name ( ) [virtual]

Implements ora::IDatabaseTable.

Definition at line 710 of file PoolDatabaseSchema.cc.

                                        {
  return tableName();
}
std::string ora::PoolClassVersionTable::tableName ( ) [static]