Download presentation
Presentation is loading. Please wait.
Published byPeter Nash Modified over 9 years ago
1
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel
2
11 Object Schemas: The Graphical Representation of Objects Figure 11.14 Shared Representation For All Objects Of the Class Person
3
11 State Of A Person Object Instance Figure 11.15
4
11 Defining Three Abstract Data Types Figure 11.16
5
11 Object Representation For Instances Of The Class Person With ADTs Figure 11.17
6
11 4The object space or object schema is the equivalent of a database schema or a relational schema at a given time. Object Schemas: The Graphical Representation of Objects Figure 11.18
7
11 Figure 11.19 Referential Sharing Of Objects
8
11 4Class-Subclass Relationships Object Schemas: The Graphical Representation of Objects Figure 11.20 Class Hierarchy
9
11 Employee Object Representation Figure 11.21
10
11 4Interobject Relationships: Attribute-Class Link u A attribute-class or interobject relationship is created when an object’s attribute references another object of the same or different class. u Relationship Representation: l Representing 1:M Relationships l Representing M:N Relationships l Representing M:N Relationships with an Intersection Class Object Schemas: The Graphical Representation of Objects
11
11 Class Hierarchy For The EDLP Retail Corporation Figure 11.22
12
11 4Representing 1:M Relationships u Related classes are enclosed in boxes to make relationships more noticeable. u The double line on the box’s right side indicates that the relationship is mandatory. u Connectivity is indicated by labeling each box. Object Schemas: The Graphical Representation of Objects
13
11 Representing The 1:M Relationship Figure 11.23
14
11 Representing The 1:1 And 1:M Relationships Figure 11.24
15
11 Employee-Dependent Relationship Figure 11.25
16
11 4Representing M:N Relationships Object Schemas: The Graphical Representation of Objects Figure 11.26
17
11 4Representing M:N Relationships with an Intersection Class Object Schemas: The Graphical Representation of Objects Figure 11.27 Representing the M:N Relationship With Associated Attributes
18
11 Representing The M:N Relationship With Intersection Class Figure 11.28
19
11 Figure 11.29 Object Space Representation
20
11 4Late and Early Binding: Use and Importance u With late binding the data type of an attribute is not known until execution time or run-time. u Late binding allows two different object instances of the same class to contain values of different data types for the same attribute. u Early binding allows the database to check the data type for each of the attribute’s values at compilation or definition time. Object Schemas: The Graphical Representation of Objects
21
11 Inventory Table With Predetermined (Base) Data Types Figure 11.30
22
11 Inventory Class With Early Binding Figure 11.31
23
11 OODM Inventory Class With Late Binding Figure 11.32
24
11 4Support for Versioning u Versioning is an OODM feature that allows us to track the history of change in the state of an object. u It is a very powerful modeling feature, especially in a CAD environment. Object Schemas: The Graphical Representation of Objects
25
11 OODM and Previous Data Models 4Object, Entity, and Tuple u An OODM object has additional characteristics such as behavior, inheritance, and encapsulation. u Such characteristics make OO modeling much more natural than E-R and relational modeling.
26
11 An Invoice Representation Figure 11.33
27
11 OODM and Previous Data Models 4Class, Entity Set, and Table u Class is a more powerful concept that allows not only the description of the data structure but also the description of the behavior. u A class allows both the concept and the implementation of abstract data types. 4Encapsulation and Inheritance u An object belonging to a class inherits all the properties of its superclasses. u Encapsulation hides the data representation and the method’s implementation from other objects and the user.
28
11 OODM and Previous Data Models 4Object ID u Object ID is not supported in either the E-R model or the relational model. u The hierarchical and the CODASYL models support some form of ID. 4Relationships u Relationships in an OODM can be of two types: interclass references or class hierarchy inheritance. u E-R and relational models use a value-based relationship approach.
29
11 OODM and Previous Data Models 4Access u E-R and relational models use an ad hoc, set- oriented query language. u OODM is suited to support both navigational and set-oriented access.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.