#include <PoolDatabaseSchema.h>
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 |
Definition at line 48 of file PoolDatabaseSchema.h.
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.
{ }
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.
bool ora::PoolMainTable::exists | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 42 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolDatabaseSchema::existsMainTable().
bool ora::PoolMainTable::getParameters | ( | std::map< std::string, std::string > & | destination | ) | [virtual] |
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; }
coral::ISchema& ora::PoolMainTable::m_schema [private] |
Definition at line 61 of file PoolDatabaseSchema.h.