test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions
ora::PoolMappingElementTable Class Reference

#include <PoolDatabaseSchema.h>

Inheritance diagram for ora::PoolMappingElementTable:
ora::IDatabaseTable

Public Member Functions

void create ()
 
void drop ()
 
bool exists ()
 
std::string name ()
 
 PoolMappingElementTable (coral::ISchema &dbSchema)
 
virtual ~PoolMappingElementTable ()
 
- Public Member Functions inherited from ora::IDatabaseTable
 IDatabaseTable (coral::ISchema &schema)
 
coral::ISchema & schema ()
 
virtual void setAccessPermission (const std::string &principal, bool forWrite)
 
virtual ~IDatabaseTable ()
 

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 ()
 

Detailed Description

Definition at line 103 of file PoolDatabaseSchema.h.

Constructor & Destructor Documentation

ora::PoolMappingElementTable::PoolMappingElementTable ( coral::ISchema &  dbSchema)
explicit

Definition at line 298 of file PoolDatabaseSchema.cc.

298  :
299  IDatabaseTable( dbSchema ){
300 }
IDatabaseTable(coral::ISchema &schema)
ora::PoolMappingElementTable::~PoolMappingElementTable ( )
virtual

Definition at line 302 of file PoolDatabaseSchema.cc.

302  {
303 }

Member Function Documentation

std::string ora::PoolMappingElementTable::columnNameColumn ( )
static

Definition at line 293 of file PoolDatabaseSchema.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

293  {
294  static const std::string s_col("COLUMN_NAME");
295  return s_col;
296 }
void ora::PoolMappingElementTable::create ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 313 of file PoolDatabaseSchema.cc.

References dataDML::schema, HLT_25ns10e33_v2_cff::tableName, and ora::throwException().

313  {
314  if( schema().existsTable( tableName() )){
315  throwException( "POOL database mapping element table already exists in this schema.",
316  "PoolMappingElementTable::create");
317  }
318  throwException( "POOL database cannot be created.","PoolMappingElementTable::create");
319 }
coral::ISchema & schema()
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
Definition: Exception.cc:10
void ora::PoolMappingElementTable::drop ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 321 of file PoolDatabaseSchema.cc.

References dataDML::schema, and HLT_25ns10e33_v2_cff::tableName.

321  {
322  schema().dropIfExistsTable( tableName() );
323 }
coral::ISchema & schema()
std::string ora::PoolMappingElementTable::elementIdColumn ( )
static

Definition at line 258 of file PoolDatabaseSchema.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::PoolMappingSchema::storeMapping().

258  {
259  static const std::string s_col("ELEMENT_ID");
260  return s_col;
261 }
std::string ora::PoolMappingElementTable::elementTypeColumn ( )
static
bool ora::PoolMappingElementTable::exists ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 309 of file PoolDatabaseSchema.cc.

References dataDML::schema, and HLT_25ns10e33_v2_cff::tableName.

309  {
310  return schema().existsTable( tableName() );
311 }
coral::ISchema & schema()
std::string ora::PoolMappingElementTable::mappingVersionColumn ( )
static
std::string ora::PoolMappingElementTable::name ( )
virtual
std::string ora::PoolMappingElementTable::scopeNameColumn ( )
static

Definition at line 268 of file PoolDatabaseSchema.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

268  {
269  static const std::string s_col("VARIABLE_SCOPE");
270  return s_col;
271 }
std::string ora::PoolMappingElementTable::tableName ( )
static
std::string ora::PoolMappingElementTable::tableNameColumn ( )
static

Definition at line 288 of file PoolDatabaseSchema.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

288  {
289  static const std::string s_col("TABLE_NAME");
290  return s_col;
291 }
std::string ora::PoolMappingElementTable::variableNameColumn ( )
static

Definition at line 273 of file PoolDatabaseSchema.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

273  {
274  static const std::string s_col("VARIABLE_NAME");
275  return s_col;
276 }
std::string ora::PoolMappingElementTable::variableParIndexColumn ( )
static

Definition at line 278 of file PoolDatabaseSchema.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

278  {
279  static const std::string s_col("VARIABLE_PAR_INDEX");
280  return s_col;
281 }
std::string ora::PoolMappingElementTable::variableTypeColumn ( )
static

Definition at line 283 of file PoolDatabaseSchema.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ora::PoolMappingSchema::getMapping(), and ora::PoolMappingSchema::storeMapping().

283  {
284  static const std::string s_col("VARIABLE_TYPE");
285  return s_col;
286 }