1 / 21

Object-Database

Compare. Extend. New data. ODL, OQL. Object-Database. Challenge. Identity. Inheritance. Design. Objectives. Tổng quan về mô hình dữ liệu ODMG Object Data Language – ODL Object Query Language - OQL. ODMG Data Model. Được tạo bởi ODMG năm 1991.

Download Presentation

Object-Database

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Compare Extend New data ODL, OQL Object-Database Challenge Identity Inheritance Design

  2. Objectives • Tổngquanvềmôhìnhdữliệu ODMG • Object Data Language – ODL • Object Query Language - OQL

  3. ODMG Data Model • Đượctạobởi ODMG năm 1991. • Làmôhìnhchuẩnchocác CSDL đốitượng. • Hỗtrợđịnhnghĩađốitượng qua ODL. • Hỗtrợtruyvấnđốitượng qua OQL. • Hỗtrợnhiềukiểudữliệuvàhàmdựngkiểu. • Cơsởcho OODBMS.

  4. Object vs Class Collection of object OBJECT CLASS Unique oid Same properties SửdụngObject Data Language đểxácđịnhcácthuộctínhcủalớp.

  5. Object Data Language – ODL • Hỗtrợcáckháiniệmngữnghĩacủa OODBMS. • Khôngphụthuộcvàobấtkỳngônngữlậptrìnhnào. • ODL is used to create object specification (classes and interfaces) • Khôngđượcdùngđểxửlý CSDL.

  6. Class CLASS attributes methods relationships

  7. Class • Atrributes: Kiểunguyêntử hay kiểucócấutrúc. • Methods: • Làcác function chocácđốitượngcủalớp. • Khônggiốngvới method trongmôhình ER hay môhìnhquanhệ.

  8. Class • Relationships: • Cókiểuthamchiếuđếnmộtđốitượnghoặcmộttập. • Thểhiệnmốiquanhệvớimột hay nhiềuđốitượngtrongcùng class hoặckhác class. • Cómộtquanhệnghịchtươngứng - inverse relationship.

  9. Vídụ showAt nowShowing

  10. Example

  11. Example

  12. Example

  13. Object Query Language - OQL • Làngônngữtruyvấncủa ODMG. • Làmviệcgiốngvớingônngữlậptrìnhnhư C++. • Embedded OL statement return objects that are compatible with the type system of the host language. • Cấutrúctươngtựnhư SQL vớicácđiểmđặctrưngcủađốitượng.

  14. Example

  15. Example

  16. Example

  17. Compare Extend New data ODL, OQL Object-Database Challenge Identity Inheritance Design

  18. RDBMS versus ORDBMS • RDBMS khônghỗtrợphầnmởrộngcủa ORDBMS. • RDBMS dễsửdụnghơnvìnócóíttínhnănghơn. • RDBMS ítlinhhoạthơn ORDBMS.

  19. OODBMS vs ORDBMSSimilarities • Hỗtrợcáckiểucócấutrúc, kiểuđốitượng, ADTS vàkếthừa. • Hỗtrợngônngữtruyvấnđểthaotáctrênkiểu collection: • ORDBMS: phầnmởrộngcủa SQL. • OODBMS: ODL/OQL. • ORDBMS thêmcáctínhnăngcủa OODBMS vào RDBMS. OODBMSpháttriểnngônngữtruyvấndựatrênngônngữtruyvấnquanhệ.

  20. OODBMS vs ORDBMSDifferences • OODBMSthêmngônngữlậptrìnhvào DBMS, trongkhiORDBMSthêmcáckiểudữliệuphongphúvào RDBMS. • OODBMScómụctiêulàtíchhợpliềnmạchvớingônngữlậptrình, trongkhiđâykhôngphảilàmụctiêuquantrọngcủa ORDBMS.

  21. OODBMS vs ORDBMSDifferences • OQL khôngđượchỗtrợhiệuquảtronghầuhết OODBMS, ngượclạichúnglàtrungtâmcủa ORDBMS. • OODBMS đãđượctốiưuhóađểhỗtrợchocácứngdụng HĐT vàcácngônngữ OO. ORDBMSs đượchỗtrợbởhầuhếtcác HQTCSDL hiện nay.

More Related