CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions

ora::PoolMappingElementTable Class Reference

#include <PoolDatabaseSchema.h>

Inheritance diagram for ora::PoolMappingElementTable:
ora::IDatabaseTable

List of all members.

Public Member Functions

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

Static Public Member Functions

static std::string columnNameColumn ()
static std::string elementIdColumn ()
static std::string elementTypeColumn ()
static std::string mappingVersionColumn ()
static std::string scopeNameColumn ()
static std::string tableName ()
static std::string tableNameColumn ()
static std::string variableNameColumn ()
static std::string variableParIndexColumn ()
static std::string variableTypeColumn ()

Detailed Description

Definition at line 103 of file PoolDatabaseSchema.h.


Constructor & Destructor Documentation

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

Definition at line 298 of file PoolDatabaseSchema.cc.

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

Definition at line 302 of file PoolDatabaseSchema.cc.

                                                    {
}

Member Function Documentation

std::string ora::PoolMappingElementTable::columnNameColumn ( ) [static]

Definition at line 293 of file PoolDatabaseSchema.cc.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

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

Implements ora::IDatabaseTable.

Definition at line 313 of file PoolDatabaseSchema.cc.

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

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

Implements ora::IDatabaseTable.

Definition at line 321 of file PoolDatabaseSchema.cc.

References python::IdGenerator::schema.

                                     {
  schema().dropIfExistsTable( tableName() );
}
std::string ora::PoolMappingElementTable::elementIdColumn ( ) [static]

Definition at line 258 of file PoolDatabaseSchema.cc.

Referenced by ora::PoolMappingSchema::storeMapping().

                                                     {
  static std::string s_col("ELEMENT_ID");
  return s_col;
}
std::string ora::PoolMappingElementTable::elementTypeColumn ( ) [static]

Definition at line 263 of file PoolDatabaseSchema.cc.

Referenced by ora::PoolMappingSchema::getMapping(), ora::PoolMappingSchema::getMappingVersionListForContainer(), and ora::PoolMappingSchema::storeMapping().

                                                       {
  static std::string s_col("ELEMENT_TYPE");
  return s_col;  
}
bool ora::PoolMappingElementTable::exists ( ) [virtual]

Implements ora::IDatabaseTable.

Definition at line 309 of file PoolDatabaseSchema.cc.

References python::IdGenerator::schema.

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

Definition at line 253 of file PoolDatabaseSchema.cc.

Referenced by ora::PoolMappingSchema::getMapping(), ora::PoolMappingSchema::getMappingVersionListForContainer(), and ora::PoolMappingSchema::storeMapping().

                                                          {
  static std::string s_col("MAPPING_VERSION");
  return s_col;  
}
std::string ora::PoolMappingElementTable::name ( ) [virtual]

Implements ora::IDatabaseTable.

Definition at line 305 of file PoolDatabaseSchema.cc.

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

Definition at line 268 of file PoolDatabaseSchema.cc.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

                                                     {
  static std::string s_col("VARIABLE_SCOPE");
  return s_col;
}
std::string ora::PoolMappingElementTable::tableName ( ) [static]

Definition at line 248 of file PoolDatabaseSchema.cc.

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

                                               {
  static std::string s_table("POOL_OR_MAPPING_ELEMENTS");
  return s_table;  
}
std::string ora::PoolMappingElementTable::tableNameColumn ( ) [static]

Definition at line 288 of file PoolDatabaseSchema.cc.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

                                                     {
  static std::string s_col("TABLE_NAME");
  return s_col;  
}
std::string ora::PoolMappingElementTable::variableNameColumn ( ) [static]

Definition at line 273 of file PoolDatabaseSchema.cc.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

                                                        {
  static std::string s_col("VARIABLE_NAME");
  return s_col;
}
std::string ora::PoolMappingElementTable::variableParIndexColumn ( ) [static]

Definition at line 278 of file PoolDatabaseSchema.cc.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

                                                            {
  static std::string s_col("VARIABLE_PAR_INDEX");
  return s_col;
}
std::string ora::PoolMappingElementTable::variableTypeColumn ( ) [static]

Definition at line 283 of file PoolDatabaseSchema.cc.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

                                                        {
  static std::string s_col("VARIABLE_TYPE");
  return s_col;
}