#include <PoolDatabaseSchema.h>
Public Member Functions | |
void | create () |
void | drop () |
bool | exists () |
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 () |
Private Attributes | |
coral::ISchema & | m_schema |
Definition at line 103 of file PoolDatabaseSchema.h.
ora::PoolMappingElementTable::PoolMappingElementTable | ( | coral::ISchema & | dbSchema | ) | [explicit] |
Definition at line 277 of file PoolDatabaseSchema.cc.
: m_schema( dbSchema ){ }
ora::PoolMappingElementTable::~PoolMappingElementTable | ( | ) | [virtual] |
Definition at line 281 of file PoolDatabaseSchema.cc.
{ }
std::string ora::PoolMappingElementTable::columnNameColumn | ( | ) | [static] |
Definition at line 272 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 288 of file PoolDatabaseSchema.cc.
References ora::throwException().
{ if( m_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 296 of file PoolDatabaseSchema.cc.
std::string ora::PoolMappingElementTable::elementIdColumn | ( | ) | [static] |
Definition at line 237 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 242 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 284 of file PoolDatabaseSchema.cc.
std::string ora::PoolMappingElementTable::mappingVersionColumn | ( | ) | [static] |
Definition at line 232 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::scopeNameColumn | ( | ) | [static] |
Definition at line 247 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 227 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 267 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 252 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 257 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 262 of file PoolDatabaseSchema.cc.
Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().
{ static std::string s_col("VARIABLE_TYPE"); return s_col; }
coral::ISchema& ora::PoolMappingElementTable::m_schema [private] |
Definition at line 123 of file PoolDatabaseSchema.h.