#include <OraDatabaseSchema.h>
Public Member Functions | |
IDatabaseTable & | classVersionTable () |
IContainerHeaderTable & | containerHeaderTable () |
void | create () |
void | drop () |
bool | exists () |
IMainTable & | mainTable () |
IDatabaseTable & | mappingElementTable () |
IMappingSchema & | mappingSchema () |
IDatabaseTable & | mappingVersionTable () |
INamingServiceTable & | namingServiceTable () |
OraDatabaseSchema (coral::ISchema &dbSchema) | |
ISequenceTable & | sequenceTable () |
virtual | ~OraDatabaseSchema () |
Static Public Member Functions | |
static bool | existsMainTable (coral::ISchema &dbSchema) |
Private Attributes | |
OraClassVersionTable | m_classVersionTable |
OraContainerHeaderTable | m_containerHeaderTable |
OraMainTable | m_mainTable |
OraMappingElementTable | m_mappingElementTable |
OraMappingSchema | m_mappingSchema |
OraMappingVersionTable | m_mappingVersionTable |
OraNamingServiceTable | m_namingServiceTable |
coral::ISchema & | m_schema |
OraSequenceTable | m_sequenceTable |
Definition at line 184 of file OraDatabaseSchema.h.
ora::OraDatabaseSchema::OraDatabaseSchema | ( | coral::ISchema & | dbSchema | ) | [explicit] |
Definition at line 1194 of file OraDatabaseSchema.cc.
: IDatabaseSchema( dbSchema ), m_schema( dbSchema ), m_mainTable( dbSchema ), m_sequenceTable( dbSchema ), m_mappingVersionTable( dbSchema ), m_mappingElementTable( dbSchema ), m_containerHeaderTable( dbSchema ), m_classVersionTable( dbSchema ), m_mappingSchema( dbSchema ), m_namingServiceTable( dbSchema ){ }
ora::OraDatabaseSchema::~OraDatabaseSchema | ( | ) | [virtual] |
Definition at line 1207 of file OraDatabaseSchema.cc.
{ }
ora::IDatabaseTable & ora::OraDatabaseSchema::classVersionTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1266 of file OraDatabaseSchema.cc.
{ return m_classVersionTable; }
ora::IContainerHeaderTable & ora::OraDatabaseSchema::containerHeaderTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1262 of file OraDatabaseSchema.cc.
{ return m_containerHeaderTable; }
void ora::OraDatabaseSchema::create | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1226 of file OraDatabaseSchema.cc.
{ m_mainTable.create(); m_sequenceTable.create(); m_mappingVersionTable.create(); m_mappingElementTable.create(); m_containerHeaderTable.create(); m_classVersionTable.create(); m_namingServiceTable.create(); }
void ora::OraDatabaseSchema::drop | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1236 of file OraDatabaseSchema.cc.
{ m_namingServiceTable.drop(); m_classVersionTable.drop(); m_containerHeaderTable.drop(); m_mappingElementTable.drop(); m_mappingVersionTable.drop(); m_sequenceTable.drop(); m_mainTable.drop(); }
bool ora::OraDatabaseSchema::exists | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1210 of file OraDatabaseSchema.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() || !m_namingServiceTable.exists()){ throwException( "ORA database is corrupted..", "OraDatabaseSchema::exists"); } return true; }
bool ora::OraDatabaseSchema::existsMainTable | ( | coral::ISchema & | dbSchema | ) | [static] |
Definition at line 998 of file OraDatabaseSchema.cc.
References ora::OraMainTable::exists(), and tmp.
Referenced by ora::IDatabaseSchema::createSchemaHandle().
ora::IMainTable & ora::OraDatabaseSchema::mainTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1246 of file OraDatabaseSchema.cc.
{ return m_mainTable; }
ora::IDatabaseTable & ora::OraDatabaseSchema::mappingElementTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1258 of file OraDatabaseSchema.cc.
{ return m_mappingElementTable; }
ora::IMappingSchema & ora::OraDatabaseSchema::mappingSchema | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1270 of file OraDatabaseSchema.cc.
{ return m_mappingSchema; }
ora::IDatabaseTable & ora::OraDatabaseSchema::mappingVersionTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1254 of file OraDatabaseSchema.cc.
{ return m_mappingVersionTable; }
ora::INamingServiceTable & ora::OraDatabaseSchema::namingServiceTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1274 of file OraDatabaseSchema.cc.
{ return m_namingServiceTable; }
ora::ISequenceTable & ora::OraDatabaseSchema::sequenceTable | ( | ) | [virtual] |
Implements ora::IDatabaseSchema.
Definition at line 1250 of file OraDatabaseSchema.cc.
{ return m_sequenceTable; }
Definition at line 212 of file OraDatabaseSchema.h.
Definition at line 211 of file OraDatabaseSchema.h.
Definition at line 207 of file OraDatabaseSchema.h.
Definition at line 210 of file OraDatabaseSchema.h.
Definition at line 213 of file OraDatabaseSchema.h.
Definition at line 209 of file OraDatabaseSchema.h.
Definition at line 214 of file OraDatabaseSchema.h.
coral::ISchema& ora::OraDatabaseSchema::m_schema [private] |
Reimplemented from ora::IDatabaseSchema.
Definition at line 206 of file OraDatabaseSchema.h.
Definition at line 208 of file OraDatabaseSchema.h.