#include <PoolDatabaseSchema.h>
Public Member Functions | |
void | create () |
void | drop () |
bool | exists () |
std::string | name () |
PoolMappingVersionTable (coral::ISchema &dbSchema) | |
virtual | ~PoolMappingVersionTable () |
Static Public Member Functions | |
static std::string | containerNameColumn () |
static std::string | mappingVersionColumn () |
static std::string | tableName () |
Definition at line 88 of file PoolDatabaseSchema.h.
ora::PoolMappingVersionTable::PoolMappingVersionTable | ( | coral::ISchema & | dbSchema | ) | [explicit] |
Definition at line 221 of file PoolDatabaseSchema.cc.
: IDatabaseTable( dbSchema ){ }
ora::PoolMappingVersionTable::~PoolMappingVersionTable | ( | ) | [virtual] |
Definition at line 225 of file PoolDatabaseSchema.cc.
{ }
std::string ora::PoolMappingVersionTable::containerNameColumn | ( | ) | [static] |
Definition at line 216 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
{ static std::string s_col("CONTAINER_ID"); return s_col; }
void ora::PoolMappingVersionTable::create | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 236 of file PoolDatabaseSchema.cc.
References python::IdGenerator::schema, and ora::throwException().
{ if( schema().existsTable( tableName() )){ throwException( "POOL database mapping version table already exists in this schema.", "PoolMappingVersionTable::create"); } throwException( "POOL database cannot be created.","PoolMappingVersionTable::create"); }
void ora::PoolMappingVersionTable::drop | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 244 of file PoolDatabaseSchema.cc.
References python::IdGenerator::schema.
bool ora::PoolMappingVersionTable::exists | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 232 of file PoolDatabaseSchema.cc.
References python::IdGenerator::schema.
std::string ora::PoolMappingVersionTable::mappingVersionColumn | ( | ) | [static] |
Definition at line 211 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ora::PoolMappingSchema::getVersionList(), ora::PoolMappingSchema::removeMapping(), and ora::PoolMappingSchema::storeMapping().
{ static std::string s_col("MAPPING_VERSION"); return s_col; }
std::string ora::PoolMappingVersionTable::name | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 228 of file PoolDatabaseSchema.cc.
{ return tableName(); }
std::string ora::PoolMappingVersionTable::tableName | ( | ) | [static] |
Definition at line 206 of file PoolDatabaseSchema.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ora::PoolMappingSchema::getVersionList(), ora::PoolMappingSchema::removeMapping(), and ora::PoolMappingSchema::storeMapping().
{ static std::string s_table("POOL_OR_MAPPING_VERSIONS"); return s_table; }