CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions

ora::PoolMappingVersionTable Class Reference

#include <PoolDatabaseSchema.h>

Inheritance diagram for ora::PoolMappingVersionTable:
ora::IDatabaseTable

List of all members.

Public Member Functions

void create ()
void drop ()
bool exists ()
std::string name ()
 PoolMappingVersionTable (coral::ISchema &dbSchema)
virtual ~PoolMappingVersionTable ()

Static Public Member Functions

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

Detailed Description

Definition at line 88 of file PoolDatabaseSchema.h.


Constructor & Destructor Documentation

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

Definition at line 221 of file PoolDatabaseSchema.cc.

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

Definition at line 225 of file PoolDatabaseSchema.cc.

                                                    {
}

Member Function Documentation

std::string ora::PoolMappingVersionTable::containerNameColumn ( ) [static]

Definition at line 216 of file PoolDatabaseSchema.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

                                                         {
  static std::string s_col("CONTAINER_ID");
  return s_col;
}
void ora::PoolMappingVersionTable::create ( ) [virtual]

Implements ora::IDatabaseTable.

Definition at line 236 of file PoolDatabaseSchema.cc.

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

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

Implements ora::IDatabaseTable.

Definition at line 244 of file PoolDatabaseSchema.cc.

References python::IdGenerator::schema.

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

Implements ora::IDatabaseTable.

Definition at line 232 of file PoolDatabaseSchema.cc.

References python::IdGenerator::schema.

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

Implements ora::IDatabaseTable.

Definition at line 228 of file PoolDatabaseSchema.cc.

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

Definition at line 206 of file PoolDatabaseSchema.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::PoolMappingSchema::getVersionList(), ora::PoolMappingSchema::removeMapping(), and ora::PoolMappingSchema::storeMapping().

                                               {
  static std::string s_table("POOL_OR_MAPPING_VERSIONS");
  return s_table;
}