1. Trang chủ
  2. » Công Nghệ Thông Tin

slide cơ sở dữ liệu tiếng anh chương (26) object-oriented dbmss – concepts and design transparencies

82 416 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 82
Dung lượng 2,18 MB

Nội dung

1 Chapter 26 Object-Oriented DBMSs – Concepts and Design Transparencies © Pearson Education Limited 1995, 2005 2 Chapter 26 - Objectives  Framework for an OODM.  Basics of the FDM.  Basics of persistent programming languages.  Main points of OODBMS Manifesto.  Main strategies for developing an OODBMS.  Single-level v. two-level storage models.  Pointer swizzling.  How an OODBMS accesses records.  Persistent schemes. © Pearson Education Limited 1995, 2005 3 Chapter 26 - Objectives  Advantages and disadvantages of orthogonal persistence.  Issues underlying OODBMSs.  Advantages and disadvantages of OODBMSs. © Pearson Education Limited 1995, 2005 4 Object-Oriented Data Model No one agreed object data model. One definition: Object-Oriented Data Model (OODM) – Data model that captures semantics of objects supported in object-oriented programming. Object-Oriented Database (OODB) – Persistent and sharable collection of objects defined by an ODM. Object-Oriented DBMS (OODBMS) – Manager of an ODB. © Pearson Education Limited 1995, 2005 5 Object-Oriented Data Model  Zdonik and Maier present a threshold model that an OODBMS must, at a minimum, satisfy: – It must provide database functionality. – It must support object identity. – It must provide encapsulation. – It must support objects with complex state. © Pearson Education Limited 1995, 2005 6 Object-Oriented Data Model  Khoshafian and Abnous define OODBMS as: – OO = ADTs + Inheritance + Object identity – OODBMS = OO + Database capabilities.  Parsaye et al. gives: – High-level query language with query optimization. – Support for persistence, atomic transactions: concurrency and recovery control. – Support for complex object storage, indexes, and access methods. – OODBMS = OO system + (1), (2), and (3). © Pearson Education Limited 1995, 2005 7 Commercial OODBMSs  GemStone from Gemstone Systems Inc.,  Objectivity/DB from Objectivity Inc.,  ObjectStore from Progress Software Corp.,  Ontos from Ontos Inc.,  FastObjects from Poet Software Corp.,  Jasmine from Computer Associates/Fujitsu,  Versant from Versant Corp. © Pearson Education Limited 1995, 2005 8 Origins of the Object-Oriented Data Model © Pearson Education Limited 1995, 2005 9 Functional Data Model (FDM)  Interesting because it shares certain ideas with object approach including object identity, inheritance, overloading, and navigational access.  In FDM, any data retrieval task can viewed as process of evaluating and returning result of a function with zero, one, or more arguments.  Resulting data model is conceptually simple but very expressive.  In the FDM, the main modeling primitives are entities and functional relationships. © Pearson Education Limited 1995, 2005 10 FDM - Entities  Decomposed into (abstract) entity types and printable entity types.  Entity types correspond to classes of ‘real world’ objects and declared as functions with 0 arguments that return type ENTITY.  For example: Staff() → ENTITY PropertyForRent() → ENTITY. © Pearson Education Limited 1995, 2005 [...]... INVERSE OF Manages © Pearson Education Limited 1995, 2005 13 FDM – Relationships Can also model *:* relationships: – Views(Client) —» PropertyForRent – ViewedBy(PropertyForRent) —» Client INVERSE OF Views and attributes on relationships: – viewDate(Client, PropertyForRent) → DATE © Pearson Education Limited 1995, 2005 14 FDM – Inheritance and Path Expressions Inheritance supported through entity types... OODBMS library – Approach taken by Ontos, Versant, and ObjectStore Embed OODB language constructs in a conventional host language – Approach taken by O2,which has extensions for C © Pearson Education Limited 1995, 2005 26 Alternative OODBMS Strategies for Developing an Extend existing database language with objectoriented capabilities – Approach being pursued by RDBMS and OODBMS vendors – Ontos and Versant... database systems and programming languages Such applications need to store and retrieve large amounts of shared, structured data © Pearson Education Limited 1995, 2005 28 Single-Level v Two-Level Storage Model With a traditional DBMS, programmer has to: – Decide when to read and update objects – Write code to translate between application’s object model and the data model of the DBMS – Perform additional... optional features: – Multiple inheritance, type checking and type inferencing, distribution across a network, design transactions and versions No direct mention of support for security, integrity, views or even a declarative query language © Pearson Education Limited 1995, 2005 25 Alternative Strategies for Developing an OODBMS Extend existing object-oriented programming language – GemStone extended... Storage Model Difficulties occur because conventional DBMSs have two-level storage model: storage model in memory, and database storage model on disk In contrast, OODBMS gives illusion of singlelevel storage model, with similar representation in both memory and in database stored on disk – Requires clever management of representation of objects in memory and on disk (called “pointer swizzling”) © Pearson...FDM – Printable Entity Types and Attributes Printable entity types are analogous to base types in a programming language Include: INTEGER, CHARACTER, STRING, REAL, and DATE An attribute is a functional relationship, taking the entity type as an argument and returning a printable entity type For example: staffNo(Staff) → STRING sex(Staff)... 2005 18 FDM – Advantages Support for some object-oriented concepts Support for referential integrity Irreducibility Easy extensibility Suitability for schema integration Declarative query language © Pearson Education Limited 1995, 2005 19 Persistent Programming Languages (PPLs) Language that provides users with ability to (transparently) preserve data across successive executions of a program, and even... control, and recovery © Pearson Education Limited 1995, 2005 20 Persistent Programming Languages (PPLs) PPLs eliminate impedance mismatch by extending programming language with database capabilities – In PPL, language’s type system provides data model, containing rich structuring mechanisms In some PPLs procedures are ‘first class’ objects and are treated like any other object in language – Procedures... assignable, may be result of expressions, other procedures or blocks, and may be elements of constructor types – Procedures can be used to implement ADTs © Pearson Education Limited 1995, 2005 21 Persistent Programming Languages (PPLs) PPL also maintains same data representation in memory as in persistent store – Overcomes difficulty and overhead of mapping between the two representations Addition of... Composition is a path expression (cf dot notation): Supervisor.IS-A-STAFF.Name.fname © Pearson Education Limited 1995, 2005 15 FDM – Declaration of FDM Schema 16 © Pearson Education Limited 1995, 2005 FDM – Diagrammatic Representation of Schema 17 © Pearson Education Limited 1995, 2005 FDM – Functional Query Languages Path expressions also used within a functional query For example: RETRIEVE lName(Name(ViewedBy(Manages(Staff)))) . 1 Chapter 26 Object-Oriented DBMSs – Concepts and Design Transparencies © Pearson Education Limited 1995, 2005 2 Chapter 26 - Objectives  Framework. definition: Object-Oriented Data Model (OODM) – Data model that captures semantics of objects supported in object-oriented programming. Object-Oriented Database (OODB) – Persistent and sharable. optimization. – Support for persistence, atomic transactions: concurrency and recovery control. – Support for complex object storage, indexes, and access methods. – OODBMS = OO system + (1), (2), and

Ngày đăng: 22/10/2014, 10:18

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN