#include <OraDatabaseSchema.h>
Public Member Functions | |
void | create () |
void | drop () |
bool | exists () |
std::string | name () |
OraMappingVersionTable (coral::ISchema &dbSchema) | |
virtual | ~OraMappingVersionTable () |
Static Public Member Functions | |
static std::string | mappingVersionColumn () |
static std::string | tableName () |
Definition at line 52 of file OraDatabaseSchema.h.
ora::OraMappingVersionTable::OraMappingVersionTable | ( | coral::ISchema & | dbSchema | ) | [explicit] |
Definition at line 242 of file OraDatabaseSchema.cc.
: IDatabaseTable( dbSchema ){ }
ora::OraMappingVersionTable::~OraMappingVersionTable | ( | ) | [virtual] |
Definition at line 246 of file OraDatabaseSchema.cc.
{ }
void ora::OraMappingVersionTable::create | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 257 of file OraDatabaseSchema.cc.
References python::IdGenerator::schema, and ora::throwException().
{ if( schema().existsTable( tableName() )){ throwException( "ORA database mapping version table already exists in this schema.", "OraMappingVersionTable::create"); } // version table coral::TableDescription description0( "OraDb" ); description0.setName( tableName() ); description0.insertColumn( mappingVersionColumn(), coral::AttributeSpecification::typeNameForType<std::string>(), 1000, false); description0.setNotNullConstraint( mappingVersionColumn() ); description0.setPrimaryKey( mappingVersionColumn() ); schema().createTable( description0 ); }
void ora::OraMappingVersionTable::drop | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 272 of file OraDatabaseSchema.cc.
References python::IdGenerator::schema.
bool ora::OraMappingVersionTable::exists | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 253 of file OraDatabaseSchema.cc.
References python::IdGenerator::schema.
std::string ora::OraMappingVersionTable::mappingVersionColumn | ( | ) | [static] |
Definition at line 237 of file OraDatabaseSchema.cc.
Referenced by ora::OraMappingElementTable::create(), ora::OraClassVersionTable::create(), ora::OraMappingSchema::getVersionList(), ora::OraMappingSchema::removeMapping(), and ora::OraMappingSchema::storeMapping().
{ static std::string s_col("MAPPING_VERSION"); return s_col; }
std::string ora::OraMappingVersionTable::name | ( | ) | [virtual] |
Implements ora::IDatabaseTable.
Definition at line 249 of file OraDatabaseSchema.cc.
{ return tableName(); }
std::string ora::OraMappingVersionTable::tableName | ( | ) | [static] |
Definition at line 232 of file OraDatabaseSchema.cc.
Referenced by ora::OraMappingElementTable::create(), ora::OraClassVersionTable::create(), ora::OraMappingSchema::getVersionList(), ora::OraMappingSchema::removeMapping(), and ora::OraMappingSchema::storeMapping().
{ static std::string s_table("ORA_MAPPING_VERSION"); return s_table; }