Chapter 4 Object and Object-Relational Databases (Part ½: Object-Oriented Concepts) Lecturer: H.Ben Othmen Department of Computer Science, Umm Al-Qura.

Slides:



Advertisements
Similar presentations
Limitations of the relational model 1. 2 Overview application areas for which the relational model is inadequate - reasons drawbacks of relational DBMSs.
Advertisements

OO databases 1 Object Oriented databases. OO databases 2 Developing OODBMS - motivation motivation more and more application areas require systems that.
1 Chapter 25 Introduction to Object DBMSs Transparencies © Pearson Education Limited 1995, 2005.
--The Object Database--1 The Object Database  Object databases integrate database technology with the object-oriented paradigm  In object databases,
ODMG Standard: Object Model1 OBJECT-ORIENTED DATABASE SYSTEMS ODMG Standard: Object Model Susan D. Urban and Suzanne W. Dietrich Department of Computer.
7M701 1 Software Engineering Object-oriented Design Sommerville, Ian (2001) Software Engineering, 6 th edition: Chapter 12 )
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.
1 SWE Introduction to Software Engineering Lecture 23 – Architectural Design (Chapter 13)
Object-Oriented Databases
Introduction to Object DBMSs Transparencies © Pearson Education Limited 1995, 2005.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
1 Chapter 2 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data u User’s view immune to changes.
Object Oriented Databases - Overview
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11 Object and Object- Relational Databases.
Lecture Two Database Environment Based on Chapter Two of this book:
RIZWAN REHMAN, CCS, DU. Advantages of ORDBMSs  The main advantages of extending the relational data model come from reuse and sharing.  Reuse comes.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Copyright © 2004 Pearson Education, Inc. Chapter 1 Introduction.
CSC271 Database Systems Lecture # 6. Summary: Previous Lecture  Relational model terminology  Mathematical relations  Database relations  Properties.
Chapter 24 Introduction to Object DBMSs Prepared by Kai Huang CS157B Prof Sin-Min Lee.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Introduction to the Other Databases
Part 3: Introduction to Object DBMSs
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.
1 CS 430 Database Theory Winter 2005 Lecture 1: Introduction.
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
Object-Oriented Database Management Systems (ODBMS)
Introduction to Database Systems Fundamental Concepts Irvanizam Zamanhuri, M.Sc Computer Science Study Program Syiah Kuala University Website:
OBJECT-ORIENTED APPROACH TO GIS DATA MANAGEMENT Tomáš Richta, Jiří Žára Computer Graphics Group Department of Computer Science and Engineering Czech Technical.
Object Orientation and Its Benefits
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 CS 430 Database Theory Winter 2005 Lecture 17: Objects, XML, and DBMSs.
Chapter 1 Object-oriented DBMSs Chapters in Textbook.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Chapter 18 Object Database Management Systems. McGraw-Hill/Irwin © 2004 The McGraw-Hill Companies, Inc. All rights reserved. Outline Motivation for object.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Chapter 11 Object-Oriented DBMSs Chapter 27, 28 & Appendix K in Textbook.
Object_Oriented Databases, by Dr. Khalil 1 Object-Oriented Databases Dr. Awad Khalil Computer Science Department AUC.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
8/31/2012ISC329 Isabelle Bichindaritz1 Database Environment.
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.
OODBMS: Introduction and Logical Database Design
Ch- 8. Class Diagrams Class diagrams are the most common diagram found in modeling object- oriented systems. Class diagrams are important not only for.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
The ODMG Standard for Object Databases
Chapter 18 Object Database Management Systems. Outline Motivation for object database management Object-oriented principles Architectures for object database.
Modeling Security-Relevant Data Semantics Xue Ying Chen Department of Computer Science.
Chapter 20 Concepts for Object-Oriented Databases Copyright © 2004 Pearson Education, Inc.
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe Chapter 12 Outline Overview of Object Database Concepts Object-Relational Features Object Database.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
Faeez, Franz & Syamim.   Database – collection of persistent data  Database Management System (DBMS) – software system that supports creation, population,
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
OODBMS and ORDBMS. Background Object-oriented software, based on the principles of user-defined datatypes, along with inheritance and polymorphism, is.
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.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Chapter 11: Abstract Data Types Lecture # 17. Chapter 11 Topics The Concept of Abstraction Advantages of Abstract Data Types Design Issues for Abstract.
Object-oriented programming (OOP) is a programming paradigm using "objects" – data structures consisting of data fields and methods together with their.
Object-Oriented Database Management System (ODBMS)
Chapter 12 Outline Overview of Object Database Concepts
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
 DATAABSTRACTION  INSTANCES& SCHEMAS  DATA MODELS.
ISC321 Database Systems I Chapter 10: Object and Object-Relational Databases: Concepts, Models, Languages, and Standards Spring 2015 Dr. Abdullah Almutairi.
ITEC 3220A Using and Designing Database Systems
Presentation transcript:

Chapter 4 Object and Object-Relational Databases (Part ½: Object-Oriented Concepts) Lecturer: H.Ben Othmen Department of Computer Science, Umm Al-Qura University University year: 1435/1436 Advanced Database System

Outline Advanced Database Applications Weaknesses of RDBMSs Object-Oriented Concepts Abstraction, encapsulation, data independence Objects and Attributes Object Identity Methods Classes Object-Oriented DBMSs Advanced Database System

Advanced Database Applications Computer-aided design (CAD); Computer-aided manufacturing (CAM); Computer-aided software engineering (CASE); Network management systems; Office information systems (OIS) and multimedia systems; Digital publishing; Geographic information systems (GIS); Interactive and dynamic Web sites. Advanced Database System

Weaknesses of RDBMSs Poor representation of ‘real world’ entities Semantic overloading Poor support for integrity and enterprise constraints Homogeneous data structure Limited operations Difficulty handling recursive queries Impedance mismatch Other problems with RDBMSs associated with concurrency, schema changes, and poor navigational access Advanced Database System

Object-Oriented Concepts Abstraction is the process of identifying the essential aspects of an entity and ignoring the unimportant properties There are two fundamental aspects of abstraction: encapsulation and information hiding. The concept of encapsulation means that an object contains both the data structure and the set of operations that can be used to manipulate it. Advanced Database System

Object-Oriented Concepts The concept of information hiding means that we separate the external aspects of an object from its internal details, which are hidden from the outside world (information hiding provides a form of data independence). These concepts simplify the construction and maintenance of applications through modularization Advanced Database System

Object-Oriented Concepts The object structure can be changed without affecting any applications that use the object. There are two views of encapsulation: The object-oriented programming language (OOPL) view Example of Languages with object-oriented features:C++, C#, Java, PHP5….. The database adaptation of that view. Advanced Database System

Objects and Attributes A uniquely identifiable entity that contains both the attributes that describe the state of a ‘real world’ object and the actions that are associated with it.. Examples of objects using the DreamHome case study: a branch office, a member of staff, and a property. Each object can be defined and maintained independently of the others (an object is very similar to the definition of an entity). Advanced Database System

Objects and Attributes The current state of an object is described by one or more attributes (Instance variables). Attributes can be classified as simple or complex A simple attribute can be a primitive type such as integer, string, real, and so on. Example: branchNo with the literal value ‘B003’ Advanced Database System

Objects and Attributes A complex attribute can contain collections and/or references Example, the attribute SalesStaff is a collection of Staff objects A reference attribute represents a relationship between objects and contains a value, or collection of values, which are themselves objects (A reference attribute is conceptually similar to a foreign key in the relational data model or a pointer in a programming language) Example: SalesStaff is, more precisely, a collection of references to Staff objects) Advanced Database System

Objects and Attributes An object that contains one or more complex attributes is called a complex object Attributes are generally referenced using the ‘dot’ notation. Example, the street attribute of a branch object is referenced as: branchObject.street Advanced Database System

Object Identity A key part of the definition of an object is unique identity. In an object-oriented system, each object is assigned an Object Identifier (OID) when it is created that is: system-generated; unique to that object; invariant, in the sense that it cannot be altered during its lifetime. Once the object is created, this OID will not be reused for any other object, even after the object has been deleted; independent of the values of its attributes (that is, its state). Two objects could have the same state but would have different identities; invisible to the user (ideally). Advanced Database System

Methods An object encapsulates both data and functions into a self-contained package. In object technology, functions are usually called methods. Object showing attributes and methods. Example of a method. Advanced Database System

Classes Classes are blueprints for defining a set of similar objects The attributes and associated methods are defined once for the class rather than separately for each object Example: all branch objects would be described by a single Branch class The objects in a class are called instances of the class. Advanced Database System

Comparison of Object-Oriented Data Modeling and Conceptual Data Modeling Advanced Database System

Object-Oriented DBMSs OODM (Object-Oriented Data Model): A (logical) data model that captures the semantics of objects supported in object-oriented programming. OODB (Object-Oriented Database): A persistent and sharable collection of objects defined by an OODM. OODBMS (Object-Oriented DBMS): The manager of an OODB. Advanced Database System

Object Oriented Data Model Origins of object oriented data model Advanced Database System

The Object Query Language The Object Query Language (OQL) provides declarative access to the object database using an SQL-like syntax OQL can be used both for both associative and navigational access: An associative query returns a collection of objects. How these objects are located is the responsibility of the ODMS, rather than the application program. A navigational query accesses individual objects and object relationships are used to navigate from one object to another. Advanced Database System

The Object Query Language An OQL query is a function that delivers an object whose type may be inferred from the operator contributing to the query expression Advanced Database System

Bibliography Database Systems, A Practical Approach to Design, Implementation, and Management, Fourth edition by Thomas Connolly-Carolyn Begg Advanced Database System