![]() |
![]() |
#include <PoolDatabaseSchema.h>
Public Member Functions | |
IDatabaseTable & | classVersionTable () |
IContainerHeaderTable & | containerHeaderTable () |
void | create () |
void | drop () |
bool | exists () |
IMainTable & | mainTable () |
IDatabaseTable & | mappingElementTable () |
IMappingSchema & | mappingSchema () |
IDatabaseTable & | mappingVersionTable () |
INamingServiceTable & | namingServiceTable () |
PoolDatabaseSchema (coral::ISchema &dbSchema) | |
ISequenceTable & | sequenceTable () |
virtual | ~PoolDatabaseSchema () |
Static Public Member Functions | |
static bool | existsMainTable (coral::ISchema &dbSchema) |
Private Attributes | |
PoolClassVersionTable | m_classVersionTable |
PoolContainerHeaderTable | m_containerHeaderTable |
PoolDbCache | m_dbCache |
PoolMainTable | m_mainTable |
PoolMappingElementTable | m_mappingElementTable |
PoolMappingSchema | m_mappingSchema |
PoolMappingVersionTable | m_mappingVersionTable |
CondMetadataTable | m_metadataTable |
coral::ISchema & | m_schema |
PoolSequenceTable | m_sequenceTable |
Definition at line 227 of file PoolDatabaseSchema.h.
ora::PoolDatabaseSchema::PoolDatabaseSchema | ( | coral::ISchema & | dbSchema | ) | [explicit] |
Definition at line 1273 of file PoolDatabaseSchema.cc.
References ora::PoolMappingSchema::init(), ora::PoolSequenceTable::init(), ora::PoolContainerHeaderTable::init(), m_containerHeaderTable, m_dbCache, m_mappingSchema, and m_sequenceTable.
: IDatabaseSchema( dbSchema ), m_schema( dbSchema ), m_dbCache(), m_mainTable( dbSchema ), m_sequenceTable( dbSchema ), m_mappingVersionTable( dbSchema ), m_mappingElementTable( dbSchema ), m_containerHeaderTable( dbSchema ), m_classVersionTable( dbSchema ), m_mappingSchema( dbSchema ), m_metadataTable( dbSchema, m_dbCache ){ m_sequenceTable.init( m_dbCache ); m_containerHeaderTable.init( m_dbCache ); m_mappingSchema.init( m_dbCache ); }
ora::PoolDatabaseSchema::~PoolDatabaseSchema | ( | ) | [virtual] |
Definition at line 1290 of file PoolDatabaseSchema.cc.
{ }
ora::IDatabaseTable & ora::PoolDatabaseSchema::classVersionTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1346 of file PoolDatabaseSchema.cc.
{ return m_classVersionTable; }
ora::IContainerHeaderTable & ora::PoolDatabaseSchema::containerHeaderTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1342 of file PoolDatabaseSchema.cc.
{ return m_containerHeaderTable; }
void ora::PoolDatabaseSchema::create | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1313 of file PoolDatabaseSchema.cc.
References ora::throwException().
{ throwException( "POOL database cannot be created.","PoolDatabaseSchema::create"); }
void ora::PoolDatabaseSchema::drop | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1317 of file PoolDatabaseSchema.cc.
{ m_classVersionTable.drop(); m_mappingElementTable.drop(); m_sequenceTable.drop(); m_containerHeaderTable.drop(); m_mappingVersionTable.drop(); m_mainTable.drop(); }
bool ora::PoolDatabaseSchema::exists | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1293 of file PoolDatabaseSchema.cc.
References ora::throwException().
{ if(!m_mainTable.exists()){ return false; } if(!m_sequenceTable.exists() || !m_mappingVersionTable.exists() || !m_mappingElementTable.exists() || !m_containerHeaderTable.exists() || !m_classVersionTable.exists()){ throwException( "POOL database is corrupted..", "PoolDatabaseSchema::exists"); } if( !m_metadataTable.exists()){ throwException( "Metadata table has not been found.", "PoolDatabaseSchema::exists"); } return true; }
bool ora::PoolDatabaseSchema::existsMainTable | ( | coral::ISchema & | dbSchema | ) | [static] |
Definition at line 1268 of file PoolDatabaseSchema.cc.
References ora::PoolMainTable::exists(), and tmp.
Referenced by ora::IDatabaseSchema::createSchemaHandle().
ora::IMainTable & ora::PoolDatabaseSchema::mainTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1326 of file PoolDatabaseSchema.cc.
{ return m_mainTable; }
ora::IDatabaseTable & ora::PoolDatabaseSchema::mappingElementTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1338 of file PoolDatabaseSchema.cc.
{ return m_mappingElementTable; }
ora::IMappingSchema & ora::PoolDatabaseSchema::mappingSchema | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1350 of file PoolDatabaseSchema.cc.
{ return m_mappingSchema; }
ora::IDatabaseTable & ora::PoolDatabaseSchema::mappingVersionTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1334 of file PoolDatabaseSchema.cc.
{ return m_mappingVersionTable; }
ora::INamingServiceTable & ora::PoolDatabaseSchema::namingServiceTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1354 of file PoolDatabaseSchema.cc.
{ return m_metadataTable; }
ora::ISequenceTable & ora::PoolDatabaseSchema::sequenceTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1330 of file PoolDatabaseSchema.cc.
{ return m_sequenceTable; }
Definition at line 255 of file PoolDatabaseSchema.h.
Definition at line 254 of file PoolDatabaseSchema.h.
Referenced by PoolDatabaseSchema().
Definition at line 249 of file PoolDatabaseSchema.h.
Referenced by PoolDatabaseSchema().
Definition at line 250 of file PoolDatabaseSchema.h.
Definition at line 253 of file PoolDatabaseSchema.h.
Definition at line 256 of file PoolDatabaseSchema.h.
Referenced by PoolDatabaseSchema().
Definition at line 252 of file PoolDatabaseSchema.h.
Definition at line 257 of file PoolDatabaseSchema.h.
coral::ISchema& ora::PoolDatabaseSchema::m_schema [private] |
Reimplemented from ora::IDatabaseSchema.
Definition at line 248 of file PoolDatabaseSchema.h.
Definition at line 251 of file PoolDatabaseSchema.h.
Referenced by PoolDatabaseSchema().