Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Matakuliah Tahun Versi : M0174/OBJECT ORIENTED DATABASE : 2005 : 1/0 Pertemuan 20 Building Object Database Application (Lanjutan bagian 3) 1 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : • Mahasiswa dapat Menjelaskan ikatan antara programming language dengan object database (C2) • Mahasiswa dapat Menjelaskan pembuatan object database application (C2) 2 Outline Materi • C++ ODL/OML applications • C++ ODL/OML some general points 3 C++ ODL/OML applications C++ ODL/OML Application Program C++ ODL Schema Object Database Declaration C++ program with OML Statements to manipulate the Object Database 4 C++ ODL/OML some general points • An object oriented programming language ODL/OML binding can exploit the similarities between the underlying object models of the programming language and object database 5 C++ ODL/OML some general points • An object oriented programming language provides an extensible type systemprogrammers can use the language to build new types to support specific application 6 C++ ODL/OML some general points • Subtype/supertype relationship can be used to specialize conventional classes such that they also apply to the object data model • Operation overloading can be used to provide additional definitions of conventional operators such that they can also apply to object data model elements 7 C++ ODL/OML some general points • Access to the object data model languages can be provided through operations which take language expression as parameters and return the result of executing those expressions 8 C++ ODL/OML some general points • Binding non object oriented programming language is more difficult, since there is less similarity between the underlying models • In such cases, a loosely coupled binding is appropriate 9 SUMMARY • Compiling and linking a C++ ODL/OML application – ODL Processor – C++ Header Containing – Object database definition – ODBMS Metadata – Object database 10 SUMMARY – C++ Compiler – ODBMS – Runtime – Procedures – Object Code – The compiled C++ – Application program 11 SUMMARY – Linker – Executable Application Program – OBBMS Runtime Procedures 12