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 | Private Attributes
ora::PoolMappingElementTable Class Reference

#include <PoolDatabaseSchema.h>

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

Public Member Functions

void create ()
 
void drop ()
 
bool exists ()
 
 PoolMappingElementTable (coral::ISchema &dbSchema)
 
virtual ~PoolMappingElementTable ()
 
- Public Member Functions inherited from ora::IDatabaseTable
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 ()
 

Private Attributes

coral::ISchema & m_schema
 

Detailed Description

Definition at line 103 of file PoolDatabaseSchema.h.

Constructor & Destructor Documentation

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

Definition at line 277 of file PoolDatabaseSchema.cc.

277  :
278  m_schema( dbSchema ){
279 }
ora::PoolMappingElementTable::~PoolMappingElementTable ( )
virtual

Definition at line 281 of file PoolDatabaseSchema.cc.

281  {
282 }

Member Function Documentation

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

Definition at line 272 of file PoolDatabaseSchema.cc.

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

272  {
273  static std::string s_col("COLUMN_NAME");
274  return s_col;
275 }
void ora::PoolMappingElementTable::create ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 288 of file PoolDatabaseSchema.cc.

References ora::throwException().

288  {
289  if( m_schema.existsTable( tableName() )){
290  throwException( "POOL database mapping element table already exists in this schema.",
291  "PoolMappingElementTable::create");
292  }
293  throwException( "POOL database cannot be created.","PoolMappingElementTable::create");
294 }
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 296 of file PoolDatabaseSchema.cc.

296  {
297  m_schema.dropIfExistsTable( tableName() );
298 }
std::string ora::PoolMappingElementTable::elementIdColumn ( )
static

Definition at line 237 of file PoolDatabaseSchema.cc.

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

237  {
238  static std::string s_col("ELEMENT_ID");
239  return s_col;
240 }
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().

242  {
243  static std::string s_col("ELEMENT_TYPE");
244  return s_col;
245 }
bool ora::PoolMappingElementTable::exists ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 284 of file PoolDatabaseSchema.cc.

284  {
285  return m_schema.existsTable( tableName() );
286 }
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().

232  {
233  static std::string s_col("MAPPING_VERSION");
234  return s_col;
235 }
std::string ora::PoolMappingElementTable::scopeNameColumn ( )
static

Definition at line 247 of file PoolDatabaseSchema.cc.

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

247  {
248  static std::string s_col("VARIABLE_SCOPE");
249  return s_col;
250 }
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().

227  {
228  static std::string s_table("POOL_OR_MAPPING_ELEMENTS");
229  return s_table;
230 }
std::string ora::PoolMappingElementTable::tableNameColumn ( )
static

Definition at line 267 of file PoolDatabaseSchema.cc.

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

267  {
268  static std::string s_col("TABLE_NAME");
269  return s_col;
270 }
std::string ora::PoolMappingElementTable::variableNameColumn ( )
static

Definition at line 252 of file PoolDatabaseSchema.cc.

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

252  {
253  static std::string s_col("VARIABLE_NAME");
254  return s_col;
255 }
std::string ora::PoolMappingElementTable::variableParIndexColumn ( )
static

Definition at line 257 of file PoolDatabaseSchema.cc.

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

257  {
258  static std::string s_col("VARIABLE_PAR_INDEX");
259  return s_col;
260 }
std::string ora::PoolMappingElementTable::variableTypeColumn ( )
static

Definition at line 262 of file PoolDatabaseSchema.cc.

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

262  {
263  static std::string s_col("VARIABLE_TYPE");
264  return s_col;
265 }

Member Data Documentation

coral::ISchema& ora::PoolMappingElementTable::m_schema
private

Definition at line 123 of file PoolDatabaseSchema.h.