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.

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

293  {
294  static 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 python.IdGenerator::schema, 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)
Definition: Exception.cc:10
void ora::PoolMappingElementTable::drop ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 321 of file PoolDatabaseSchema.cc.

References python.IdGenerator::schema.

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

Definition at line 258 of file PoolDatabaseSchema.cc.

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

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

Definition at line 263 of file PoolDatabaseSchema.cc.

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

263  {
264  static std::string s_col("ELEMENT_TYPE");
265  return s_col;
266 }
bool ora::PoolMappingElementTable::exists ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 309 of file PoolDatabaseSchema.cc.

References python.IdGenerator::schema.

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

Definition at line 253 of file PoolDatabaseSchema.cc.

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

253  {
254  static std::string s_col("MAPPING_VERSION");
255  return s_col;
256 }
std::string ora::PoolMappingElementTable::name ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 305 of file PoolDatabaseSchema.cc.

Referenced by Vispa.Views.PropertyView.Property::valueChanged().

305  {
306  return tableName();
307 }
std::string ora::PoolMappingElementTable::scopeNameColumn ( )
static

Definition at line 268 of file PoolDatabaseSchema.cc.

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

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

Definition at line 248 of file PoolDatabaseSchema.cc.

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

248  {
249  static std::string s_table("POOL_OR_MAPPING_ELEMENTS");
250  return s_table;
251 }
std::string ora::PoolMappingElementTable::tableNameColumn ( )
static

Definition at line 288 of file PoolDatabaseSchema.cc.

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

288  {
289  static 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.

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

273  {
274  static 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.

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

278  {
279  static 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.

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

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