CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

ora::PoolMainTable Class Reference

#include <PoolDatabaseSchema.h>

Inheritance diagram for ora::PoolMainTable:
ora::IMainTable ora::IDatabaseTable

List of all members.

Public Member Functions

void create ()
void drop ()
bool exists ()
bool getParameters (std::map< std::string, std::string > &destination)
 PoolMainTable (coral::ISchema &dbSchema)
std::string schemaVersion ()
virtual ~PoolMainTable ()

Static Public Member Functions

static std::string tableName ()

Private Attributes

coral::ISchema & m_schema

Detailed Description

Definition at line 48 of file PoolDatabaseSchema.h.


Constructor & Destructor Documentation

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

Definition at line 27 of file PoolDatabaseSchema.cc.

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

Definition at line 31 of file PoolDatabaseSchema.cc.

                                {
}

Member Function Documentation

void ora::PoolMainTable::create ( ) [virtual]

Implements ora::IDatabaseTable.

Definition at line 46 of file PoolDatabaseSchema.cc.

References ora::throwException().

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

Implements ora::IDatabaseTable.

Definition at line 54 of file PoolDatabaseSchema.cc.

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

Implements ora::IDatabaseTable.

Definition at line 42 of file PoolDatabaseSchema.cc.

Referenced by ora::PoolDatabaseSchema::existsMainTable().

                             {
  return m_schema.existsTable( tableName() );
}
bool ora::PoolMainTable::getParameters ( std::map< std::string, std::string > &  destination) [virtual]

Implements ora::IMainTable.

Definition at line 34 of file PoolDatabaseSchema.cc.

                                                                  {
  return false;
}
std::string ora::PoolMainTable::schemaVersion ( ) [virtual]

Implements ora::IMainTable.

Definition at line 38 of file PoolDatabaseSchema.cc.

References ora::poolSchemaVersion().

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

Definition at line 22 of file PoolDatabaseSchema.cc.

                                     {
  static std::string s_name("POOL_RSS_DB");
  return s_name;
}

Member Data Documentation

coral::ISchema& ora::PoolMainTable::m_schema [private]

Definition at line 61 of file PoolDatabaseSchema.h.