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 | Private Attributes
ora::OraDatabaseSchema Class Reference

#include <OraDatabaseSchema.h>

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

Public Member Functions

IDatabaseTableclassVersionTable ()
 
IContainerHeaderTablecontainerHeaderTable ()
 
void create ()
 
void drop ()
 
bool exists ()
 
IMainTablemainTable ()
 
IDatabaseTablemappingElementTable ()
 
IMappingSchemamappingSchema ()
 
IDatabaseTablemappingVersionTable ()
 
INamingServiceTablenamingServiceTable ()
 
 OraDatabaseSchema (coral::ISchema &dbSchema)
 
ISequenceTablesequenceTable ()
 
virtual ~OraDatabaseSchema ()
 
- Public Member Functions inherited from ora::IDatabaseSchema
 IDatabaseSchema (coral::ISchema &schema)
 
coral::ISchema & storageSchema ()
 
virtual ~IDatabaseSchema ()
 

Static Public Member Functions

static bool existsMainTable (coral::ISchema &dbSchema)
 
- Static Public Member Functions inherited from ora::IDatabaseSchema
static IDatabaseSchemacreateSchemaHandle (coral::ISchema &schema)
 

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.

1194  :
1195  IDatabaseSchema( dbSchema ),
1196  m_schema( dbSchema ),
1197  m_mainTable( dbSchema ),
1198  m_sequenceTable( dbSchema ),
1199  m_mappingVersionTable( dbSchema ),
1200  m_mappingElementTable( dbSchema ),
1201  m_containerHeaderTable( dbSchema ),
1202  m_classVersionTable( dbSchema ),
1203  m_mappingSchema( dbSchema ),
1204  m_namingServiceTable( dbSchema ){
1205 }
OraMappingElementTable m_mappingElementTable
OraContainerHeaderTable m_containerHeaderTable
OraMappingSchema m_mappingSchema
OraMappingVersionTable m_mappingVersionTable
IDatabaseSchema(coral::ISchema &schema)
OraSequenceTable m_sequenceTable
coral::ISchema & m_schema
OraNamingServiceTable m_namingServiceTable
OraClassVersionTable m_classVersionTable
ora::OraDatabaseSchema::~OraDatabaseSchema ( )
virtual

Definition at line 1207 of file OraDatabaseSchema.cc.

1207  {
1208 }

Member Function Documentation

ora::IDatabaseTable & ora::OraDatabaseSchema::classVersionTable ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1266 of file OraDatabaseSchema.cc.

1266  {
1267  return m_classVersionTable;
1268 }
OraClassVersionTable m_classVersionTable
ora::IContainerHeaderTable & ora::OraDatabaseSchema::containerHeaderTable ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1262 of file OraDatabaseSchema.cc.

1262  {
1263  return m_containerHeaderTable;
1264 }
OraContainerHeaderTable m_containerHeaderTable
void ora::OraDatabaseSchema::create ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1226 of file OraDatabaseSchema.cc.

1226  {
1227  m_mainTable.create();
1234 }
OraMappingElementTable m_mappingElementTable
OraContainerHeaderTable m_containerHeaderTable
OraMappingVersionTable m_mappingVersionTable
OraSequenceTable m_sequenceTable
OraNamingServiceTable m_namingServiceTable
OraClassVersionTable m_classVersionTable
void ora::OraDatabaseSchema::drop ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1236 of file OraDatabaseSchema.cc.

1236  {
1243  m_mainTable.drop();
1244 }
OraMappingElementTable m_mappingElementTable
OraContainerHeaderTable m_containerHeaderTable
OraMappingVersionTable m_mappingVersionTable
OraSequenceTable m_sequenceTable
OraNamingServiceTable m_namingServiceTable
OraClassVersionTable m_classVersionTable
bool ora::OraDatabaseSchema::exists ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1210 of file OraDatabaseSchema.cc.

References ora::throwException().

1210  {
1211  if(!m_mainTable.exists()){
1212  return false;
1213  }
1214  if(!m_sequenceTable.exists() ||
1220  throwException( "ORA database is corrupted..",
1221  "OraDatabaseSchema::exists");
1222  }
1223  return true;
1224 }
OraMappingElementTable m_mappingElementTable
OraContainerHeaderTable m_containerHeaderTable
OraMappingVersionTable m_mappingVersionTable
OraSequenceTable m_sequenceTable
OraNamingServiceTable m_namingServiceTable
void throwException(const std::string &message, const std::string &methodName)
Definition: Exception.cc:10
OraClassVersionTable m_classVersionTable
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().

998  {
999  OraMainTable tmp( dbSchema );
1000  return tmp.exists();
1001 }
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
ora::IMainTable & ora::OraDatabaseSchema::mainTable ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1246 of file OraDatabaseSchema.cc.

1246  {
1247  return m_mainTable;
1248 }
ora::IDatabaseTable & ora::OraDatabaseSchema::mappingElementTable ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1258 of file OraDatabaseSchema.cc.

1258  {
1259  return m_mappingElementTable;
1260 }
OraMappingElementTable m_mappingElementTable
ora::IMappingSchema & ora::OraDatabaseSchema::mappingSchema ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1270 of file OraDatabaseSchema.cc.

1270  {
1271  return m_mappingSchema;
1272 }
OraMappingSchema m_mappingSchema
ora::IDatabaseTable & ora::OraDatabaseSchema::mappingVersionTable ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1254 of file OraDatabaseSchema.cc.

1254  {
1255  return m_mappingVersionTable;
1256 }
OraMappingVersionTable m_mappingVersionTable
ora::INamingServiceTable & ora::OraDatabaseSchema::namingServiceTable ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1274 of file OraDatabaseSchema.cc.

1274  {
1275  return m_namingServiceTable;
1276 }
OraNamingServiceTable m_namingServiceTable
ora::ISequenceTable & ora::OraDatabaseSchema::sequenceTable ( )
virtual

Implements ora::IDatabaseSchema.

Definition at line 1250 of file OraDatabaseSchema.cc.

1250  {
1251  return m_sequenceTable;
1252 }
OraSequenceTable m_sequenceTable

Member Data Documentation

OraClassVersionTable ora::OraDatabaseSchema::m_classVersionTable
private

Definition at line 212 of file OraDatabaseSchema.h.

OraContainerHeaderTable ora::OraDatabaseSchema::m_containerHeaderTable
private

Definition at line 211 of file OraDatabaseSchema.h.

OraMainTable ora::OraDatabaseSchema::m_mainTable
private

Definition at line 207 of file OraDatabaseSchema.h.

OraMappingElementTable ora::OraDatabaseSchema::m_mappingElementTable
private

Definition at line 210 of file OraDatabaseSchema.h.

OraMappingSchema ora::OraDatabaseSchema::m_mappingSchema
private

Definition at line 213 of file OraDatabaseSchema.h.

OraMappingVersionTable ora::OraDatabaseSchema::m_mappingVersionTable
private

Definition at line 209 of file OraDatabaseSchema.h.

OraNamingServiceTable ora::OraDatabaseSchema::m_namingServiceTable
private

Definition at line 214 of file OraDatabaseSchema.h.

coral::ISchema& ora::OraDatabaseSchema::m_schema
private

Definition at line 206 of file OraDatabaseSchema.h.

OraSequenceTable ora::OraDatabaseSchema::m_sequenceTable
private

Definition at line 208 of file OraDatabaseSchema.h.