11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.

Slides:



Advertisements
Similar presentations
OO databases 1 Object Oriented databases. OO databases 2 Developing OODBMS - motivation motivation more and more application areas require systems that.
Advertisements

Database Systems: Design, Implementation, and Management Ninth Edition
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 2 Data Models.
Database Systems: Design, Implementation, and Management Ninth Edition
Introduction to Databases
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Object-Oriented Databases v OO systems associated with – graphical user interface (GUI) – powerful modeling techniques – advanced data management capabilities.
Chapter Object-Oriented Practices. Agenda Object-Oriented Concepts Terminology Object-Oriented Modeling Tips Object-Oriented Data Models and DBMSs.
OBJECTS Object Oriented ???????. OBJECTS Object-Oriented n OO convenient label for a collection of interconnected ideas n OO approach views computer.
Chapter 1 File Systems and Databases
The Hierarchy of Data Bit (a binary digit): a circuit that is either on or off Byte: 8 bits Character: each byte represents a character; the basic building.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
File Systems and Databases
Data Models.
Geographic Information Systems
Object-Oriented Databases
File Systems and Databases Hachim Haddouti
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 2 Data Models Database Systems, 8th Edition 1.
RIZWAN REHMAN, CCS, DU. Advantages of ORDBMSs  The main advantages of extending the relational data model come from reuse and sharing.  Reuse comes.
Chapter 4 Object and Object-Relational Databases (Part ½: Object-Oriented Concepts) Lecturer: H.Ben Othmen Department of Computer Science, Umm Al-Qura.
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
DBSQL 10-1 Copyright © Genetic Computer School 2009 Chapter 10 Object-Oriented Based DBMS.
11 1 Object oriented DB (not in book) Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel Learning objectives: What.
2 1 Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database Design - Lecture 2
Database Systems: Design, Implementation, and Management Ninth Edition
Object-Oriented Database Management Systems (ODBMS)
Object Orientation and Its Benefits
7 Object Oriented Database and UML MIS 304 Winter 2006.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
11 1 Chapter 11 Object Oriented Databases Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Chapter # 2 Data Models BIS Database Systems A.Thanop Somprasong
2 1 Data Models MIS 304 Winter Class Goals Understand why data models are important Learn about the basic data-modeling building blocks Learn.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
11 Object-Oriented DBMS Figure Table 11.4 The Thirteen OODBMS Rules.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
1 CS457 Object-Oriented Databases Chapters as reference.
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
ITEC 3220A Using and Designing Database Systems Instructor: Gordon Turpin Course Website: Office: CSEB3020.
Object Oriented Database By Ashish Kaul References from Professor Lee’s presentations and the Web.
L Department of Mathematics Computer and Information Science l1l1 1 CS 351: Database Management Christopher I. G. Lanclos Chapter 2.
ITEC 3220A Using and Designing Database Systems
Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Chapter 18 Object Database Management Systems. Outline Motivation for object database management Object-oriented principles Architectures for object database.
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
The Object-Oriented Database System Manifesto Malcolm Atkinson, François Bancilhon, David deWitt, Klaus Dittrich, David Maier, Stanley Zdonik DOOD'89,
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
DBS201: Data Modeling. Agenda Data Modeling Types of Models Entity Relationship Model.
1 © 2013 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
Learn about: Data modeling and why data models are important Basic data-modeling building blocks What business rules are and how they influence database.
1 © 2010 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U.S. only, with content that may be different from the.
Object-Oriented Database Management System (ODBMS)
Advanced Database Models
File Systems and Databases
Chapter 4 Entity Relationship (ER) Modeling
Data Model.
ITEC 3220A Using and Designing Database Systems
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Presentation transcript:

11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel

11 Object Schemas: The Graphical Representation of Objects Figure Shared Representation For All Objects Of the Class Person

11 State Of A Person Object Instance Figure 11.15

11 Defining Three Abstract Data Types Figure 11.16

11 Object Representation For Instances Of The Class Person With ADTs Figure 11.17

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

11 Figure Referential Sharing Of Objects

11 4Class-Subclass Relationships Object Schemas: The Graphical Representation of Objects Figure Class Hierarchy

11 Employee Object Representation Figure 11.21

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 Class Hierarchy For The EDLP Retail Corporation Figure 11.22

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

11 Representing The 1:M Relationship Figure 11.23

11 Representing The 1:1 And 1:M Relationships Figure 11.24

11 Employee-Dependent Relationship Figure 11.25

11 4Representing M:N Relationships Object Schemas: The Graphical Representation of Objects Figure 11.26

11 4Representing M:N Relationships with an Intersection Class Object Schemas: The Graphical Representation of Objects Figure Representing the M:N Relationship With Associated Attributes

11 Representing The M:N Relationship With Intersection Class Figure 11.28

11 Figure Object Space Representation

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

11 Inventory Table With Predetermined (Base) Data Types Figure 11.30

11 Inventory Class With Early Binding Figure 11.31

11 OODM Inventory Class With Late Binding Figure 11.32

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

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.

11 An Invoice Representation Figure 11.33

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.

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.

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.

11 Object-Oriented DBMS Figure 11.34

11 Table 11.4 The Thirteen OODBMS Rules

11 How OO Affects Database Design 4OO database design approach provides both the data identification and the procedures or data manipulation to be performed. 4OO database design forces us to think of data and procedures as a self-contained entity. 4OO design is iterative and incremental in nature. 4DBA’s role is likely to change with more programming responsibilities. 4Lack of standards affects OO database design.

11 OODBMS: Advantages and Disadvantages 4Advantages u More semantic information. u Support for complex objects. u Extensibility of data types. u Improved performance with efficient caching. u Versioning. u Faster development and easy maintenance through inheritance and reusability. u Technology-driven product for next generation DBMS. u Potential to integrate DBMSs into a single environment.

11 4Disadvantages u Strong opposition from the established players. u Lack of theoretical foundation. u Retrogressive to the old pointer systems. u Lack of standard ad hoc query language. u Lack of business data design and management tools. u Steep learning curve. u Lack of resources. OODBMS: Advantages and Disadvantages

11 How OO Concepts Have Influenced the Relational Model 4New Features for Extended Relational (Object/Relational) Model u Extensibility of new user-defined (abstract) data types u Complex objects u Inheritance u Procedure calls (rules or triggers) u System-generated identifiers (OID surrogates)

11 How OO Concepts Have Influenced the Relational Model 4Philosophy that guides the relational model’s enhancements: u Semantic and object-oriented concepts are necessary to support the new generation of applications. u These concepts can and must be added to the relational model. u The benefits of the relational model must be preserved to protect the investment in relational technology and to provide downward compatibility.

11 The Next Generation of DBMS 4The next generation of DBMS is likely to incorporate features borrowed from: u Object-oriented database systems u Artificial intelligence systems u Expert systems u Distributed database u The Internet