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::PoolClassVersionTable Class Reference

#include <PoolDatabaseSchema.h>

Inheritance diagram for ora::PoolClassVersionTable:
ora::IDatabaseTable

Public Member Functions

void create ()
 
void drop ()
 
bool exists ()
 
std::string name ()
 
 PoolClassVersionTable (coral::ISchema &dbSchema)
 
virtual ~PoolClassVersionTable ()
 
- 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 classVersionColumn ()
 
static std::string containerNameColumn ()
 
static std::string mappingVersionColumn ()
 
static std::string tableName ()
 

Detailed Description

Definition at line 157 of file PoolDatabaseSchema.h.

Constructor & Destructor Documentation

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

Definition at line 703 of file PoolDatabaseSchema.cc.

703  :
704  IDatabaseTable( dbSchema ){
705 }
IDatabaseTable(coral::ISchema &schema)
ora::PoolClassVersionTable::~PoolClassVersionTable ( )
virtual

Definition at line 707 of file PoolDatabaseSchema.cc.

707  {
708 }

Member Function Documentation

std::string ora::PoolClassVersionTable::classVersionColumn ( )
static
std::string ora::PoolClassVersionTable::containerNameColumn ( )
static
void ora::PoolClassVersionTable::create ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 718 of file PoolDatabaseSchema.cc.

References python.IdGenerator::schema, and ora::throwException().

718  {
719  if( schema().existsTable( tableName() )){
720  throwException( "POOL database class version table already exists in this schema.",
721  "PoolClassVersionTable::create");
722  }
723  throwException( "POOL database cannot be created.","PoolClassVersionTable::create");
724 }
coral::ISchema & schema()
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:10
static std::string tableName()
void ora::PoolClassVersionTable::drop ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 726 of file PoolDatabaseSchema.cc.

References python.IdGenerator::schema.

726  {
727  schema().dropIfExistsTable( tableName() );
728 }
coral::ISchema & schema()
static std::string tableName()
bool ora::PoolClassVersionTable::exists ( )
virtual

Implements ora::IDatabaseTable.

Definition at line 714 of file PoolDatabaseSchema.cc.

References python.IdGenerator::schema.

714  {
715  return schema().existsTable( tableName() );
716 }
coral::ISchema & schema()
static std::string tableName()
std::string ora::PoolClassVersionTable::mappingVersionColumn ( )
static
std::string ora::PoolClassVersionTable::name ( )
virtual
std::string ora::PoolClassVersionTable::tableName ( )
static