#include <PoolDatabaseSchema.h>
Public Member Functions | |
void | create () |
void | drop () |
bool | exists () |
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 () |
Private Attributes | |
coral::ISchema & | m_schema |
Definition at line 157 of file PoolDatabaseSchema.h.
ora::PoolClassVersionTable::PoolClassVersionTable | ( | coral::ISchema & | dbSchema | ) | [explicit] |
Definition at line 644 of file PoolDatabaseSchema.cc.
: m_schema( dbSchema ){ }
ora::PoolClassVersionTable::~PoolClassVersionTable | ( | ) | [virtual] |
Definition at line 648 of file PoolDatabaseSchema.cc.
{ }
std::string ora::PoolClassVersionTable::classVersionColumn | ( | ) | [static] |
Definition at line 628 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolMappingSchema::getClassVersionListForContainer(), ora::PoolMappingSchema::getClassVersionListForMappingVersion(), ora::PoolMappingSchema::insertClassVersion(), ora::PoolMappingSchema::selectMappingVersion(), and ora::PoolMappingSchema::setMappingVersion().
{ static std::string s_col("CLASS_VERSION"); return s_col; }
std::string ora::PoolClassVersionTable::containerNameColumn | ( | ) | [static] |
Definition at line 633 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolMappingSchema::getClassVersionListForContainer(), ora::PoolMappingSchema::getMappingVersionListForContainer(), ora::PoolMappingSchema::insertClassVersion(), ora::PoolMappingSchema::selectMappingVersion(), and ora::PoolMappingSchema::setMappingVersion().
{ static std::string s_col("CONTAINER_ID"); return s_col; }
void ora::PoolClassVersionTable::create | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 655 of file PoolDatabaseSchema.cc.
References ora::throwException().
{ if( m_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 663 of file PoolDatabaseSchema.cc.
bool ora::PoolClassVersionTable::exists | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 651 of file PoolDatabaseSchema.cc.
std::string ora::PoolClassVersionTable::mappingVersionColumn | ( | ) | [static] |
Definition at line 639 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolMappingSchema::getClassVersionListForContainer(), ora::PoolMappingSchema::getClassVersionListForMappingVersion(), ora::PoolMappingSchema::getMappingVersionListForContainer(), ora::PoolMappingSchema::insertClassVersion(), ora::PoolMappingSchema::selectMappingVersion(), and ora::PoolMappingSchema::setMappingVersion().
{ static std::string s_col("MAPPING_VERSION"); return s_col; }
std::string ora::PoolClassVersionTable::tableName | ( | ) | [static] |
Definition at line 623 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolMappingSchema::getClassVersionListForContainer(), ora::PoolMappingSchema::getClassVersionListForMappingVersion(), ora::PoolMappingSchema::getMappingVersionListForContainer(), ora::PoolMappingSchema::insertClassVersion(), ora::PoolMappingSchema::removeMapping(), ora::PoolMappingSchema::selectMappingVersion(), and ora::PoolMappingSchema::setMappingVersion().
{ static std::string s_table("POOL_OR_CLASS_VERSIONS"); return s_table; }
coral::ISchema& ora::PoolClassVersionTable::m_schema [private] |
Definition at line 171 of file PoolDatabaseSchema.h.