CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

ora::OraDatabaseSchema Class Reference

#include <OraDatabaseSchema.h>

Inheritance diagram for ora::OraDatabaseSchema:
ora::IDatabaseSchema

List of all members.

Public Member Functions

IDatabaseTableclassVersionTable ()
IContainerHeaderTablecontainerHeaderTable ()
void create ()
void drop ()
bool exists ()
IMainTablemainTable ()
IDatabaseTablemappingElementTable ()
IMappingSchemamappingSchema ()
IDatabaseTablemappingVersionTable ()
INamingServiceTablenamingServiceTable ()
 OraDatabaseSchema (coral::ISchema &dbSchema)
ISequenceTablesequenceTable ()
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

Detailed Description

Definition at line 184 of file OraDatabaseSchema.h.


Constructor & Destructor Documentation

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.

                                        {
}

Member Function Documentation

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.

void ora::OraDatabaseSchema::create ( ) [virtual]

Implements ora::IDatabaseSchema.

Definition at line 1226 of file OraDatabaseSchema.cc.

void ora::OraDatabaseSchema::drop ( ) [virtual]
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().

                                                                  {
  OraMainTable tmp( dbSchema );
  return tmp.exists();
}
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;
}

Member Data Documentation

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.