Object-Oriented Databases

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
Introduction to Databases
Solutions to Review Questions. 4.1 Define object, class and instance. The UML Glossary gives these definitions: Object: an instance of a class. Class:
Entity Relationship (E-R) Modeling
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
Object Oriented System Development with VB .NET
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
File Systems and Databases
Chapter 14 (Web): Object-Oriented Data Modeling
1 9 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 9 Database Management Approaches.
File Systems and Databases Hachim Haddouti
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 2 Data Models Database Systems, 8th Edition 1.
The University of Akron Dept of Business Technology Computer Information Systems Database Management Approaches 2440: 180 Database Concepts Instructor:
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.
Chapter 14: Object-Oriented Data Modeling
Chapter 14: Object-Oriented Data Modeling
2 1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
3 Chapter 3 Entity Relationship (E-R) Modeling Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Chapter 13 (Online): Object-Oriented Databases
Concepts of Database Management, Fifth Edition
Chapter 24 Introduction to Object DBMSs Prepared by Kai Huang CS157B Prof Sin-Min Lee.
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
Introduction to the Other Databases
DBMS Lecture 9  Object Database Management Group –12 Rules for an OODBMS –Components of the ODMG standard  OODBMS Object Model Schema  OO Data Model.
11 1 Object oriented DB (not in book) Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel Learning objectives: What.
Geog 495 GIS Database Design Midterm review. Outlines 1.Database Concepts 2.Relational Database 3.Object-oriented Database 4.Entity-Relationship Diagram.
Database Design - Lecture 2
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
Database Management System Prepared by Dr. Ahmed El-Ragal Reviewed & Presented By Mr. Mahmoud Rafeek Alfarra College Of Science & Technology Khan younis.
Unified Modeling Language, Version 2.0
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.
1 Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
CHAPTER 13 (ONLINE): OBJECT-ORIENTED DATA MODELING © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
11 Object-Oriented DBMS Figure Table 11.4 The Thirteen OODBMS Rules.
1 © Prentice Hall, 2002 Chapter 14: Object-Oriented Data Modeling Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 15: Object-Oriented Data Modeling Modern Database Management 9 h Edition Jeffrey A.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 13 (Online): Object-Oriented Data Modeling Modern Database Management 10 th Edition.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
Object-Oriented Data Modeling
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.
CSC 131 Fall 2006 Lecture # 6 Object-Oriented Concepts.
Object Oriented Database By Ashish Kaul References from Professor Lee’s presentations and the Web.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
1 Unified Modeling Language, Version 2.0 Chapter 2.
Faeez, Franz & Syamim.   Database – collection of persistent data  Database Management System (DBMS) – software system that supports creation, population,
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.
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
Systems Analysis and Design With UML 2
Object-Oriented Database Management System (ODBMS)
File Systems and Databases
Lec 3: Object-Oriented Data Modeling
Chapter 20 Object-Oriented Analysis and Design
ITEC 3220A Using and Designing Database Systems
Presentation transcript:

Object-Oriented Databases Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel

In this chapter, you will learn: What basic concepts govern OO systems What effect OO concepts are likely to have on data modeling and design How OO features are related to the more traditional relational and E-R models What the basic features of an OO database management system (OODBMS) are About the advantages and disadvantages of OODBMSs Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Object Orientation Object Orientation OO Contribution areas Set of design and development principles Based on autonomous computer structures known as objects OO Contribution areas Programming Languages Graphical User Interfaces Databases Design Operating Systems Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Evolution of OO Concepts Concepts stem from object-oriented programming languages (OOPLs) Ada, ALGOL, LISP, SIMULA OOPLs goals Easy-to-use development environment Powerful modeling tools for development Decrease in development time Make reusable code OO Attributes Data set not passive Data and procedures bound together Objects can act on self Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OO Concepts: Objects Abstract representation of a real-world entity Unique identity Embedded properties Ability to interact with other objects and self OID Unique to object Not a primary key Attributes Called instance variables Domain Object state Object values at any given time Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OO Concepts: Objects (con’t.) Methods Code that performs operation on object’s data Has name and body Messages Invokes method Sent to object Classes Collection of similar objects Shares attributes and structure Protocol Represents object’s public aspect Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OO Concepts: Objects (con’t.) Class hierarchy Code that performs operation on object’s data Has name and body Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Object Characteristics Figure 11.7 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Class Hierarchy Superclass Subclass Class lattice Figure 11.8 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Inheritance Ability of object to inherit the data structure and behavior of classes above it Single inheritance Class has one immediate superclass Figure 11.9 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Inheritance (con’t.) Multiple Class has more than one immediate superclass Figure 11.10 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Method Overriding Method redefined at subclass level Figure 11.12 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Polymorphism Allows different objects to respond to same message in different ways Figure 11.13 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Abstract Data Types (ADT) Describes a set of similar objects Differs from conventional data types Operations are user-defined Uses encapsulation Definitions needed for creation Name Data representation Abstract data type operations and constraints Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Object Classification Simple Only single-valued attributes No attributes refer to other object Composite At least one multivalued attribute Compound At least one attribute that references other object Hybrid Repeating group of attributes At least one refers to other object Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Characteristics of OODM Supports complex objects Must be extensible Supports encapsulation Exhibit inheritance Supports object identity Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OO vs. E-R Model Components Table 11.3 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Shared Representation for all Objects of the Class Person Figure 11.14 Figure 11.15 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Referential Sharing of Objects Figure 11.19 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Class-Subclass Relationship Figure 11.21 Figure 11.20 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Interobject Relationships Attribute-Class Link Object’s attribute references another object Relationship Representation Related classes enclosed in boxes Double line on right side indicates mandatory Connectivity indicated by labeling each box 1:M M:N M:N with an Intersection Class Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

1:1 and 1:M Relationships Figure 11.24 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Employee-Dependent Relationship Figure 11.25 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Representing the M:N Relationship Figure 11.26 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Representing the M:N Relationship with Associated Attributes Figure 11.27 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Representing the M:N Relationship with Intersection Class Figure 11.28 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Object Space Representation Figure 11.29 Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

Late and Early Binding Late binding Early binding Data type of attribute not known until runtime Allows different instances of same class to contain different data types for same attribute Early binding Allows database to check data type at compilation or definition time Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OODM vs. E-R Data Models Object, Entity, and Tuple OODM object has behavior, inheritance, and encapsulation OO modeling more natural Class, Entity Set, and Table Class allows description of data and behavior Class allows abstract data types Encapsulation and Inheritance Object inherits properties of superclasses Encapsulation hides data representation and method Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OODM vs. E-R Data Models (con’t.) Object ID Not supported in relational models Relationships OODM Interclass references Class hierarchy inheritance Relational models Value-based approach Access Relational models SQL OODM Navigational Set-oriented access Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OODBMS Database management system integrates benefits of typical database systems with OODM characteristics Handles a mix of data types Follows OO rules Follows DBMS rules Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OO and Database Design Provides data identification and the procedures for data manipulation Data and procedures self-contained entity Iterative and incremental DBA does more programming Lack of standards Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OODBMS Advantages More semantic information Support for complex objects Extensibility of data types May improve performance with efficient caching Versioning Reusability Inheritance speeds development and application Potential to integrate DBMSs into single environment Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OODBMS Disadvantages Strong opposition from the established RDBMSs Lack of theoretical foundation Throwback to old pointer systems Lack of standard ad hoc query language Lack of business data design and management tools Steep learning curve Low market presence Lack of compatibility between different OODBMSs Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

OO Influences on Relational Model Extensibility of new user-defined (abstract) data types Complex objects Inheritance Procedure calls (rules or triggers) System-generated identifiers (OID surrogates) Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel

The Next Generation of DBMS Object-oriented database systems Artificial intelligence systems Expert systems Distributed database The Internet Database Systems: Design, Implementation, & Management, 5th Edition, Rob & Coronel