OBJECTS Object Oriented ???????. OBJECTS Object-Oriented n OO convenient label for a collection of interconnected ideas n OO approach views computer.

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.
Chapter 10: Designing Databases
Jane Reid, BSc/IT DB, QMUL, 25/2/02 1 Object-oriented DBMS Background to ODBMS ODBMS requirements Object components ODB conceptual design –Graphical ODB.
Database Systems: Design, Implementation, and Management Tenth Edition
Introduction to Databases
Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
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.
File Systems and Databases
Chapter 14 (Web): Object-Oriented Data Modeling
Object-Oriented Databases
1 9 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 9 Database Management Approaches.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
The University of Akron Dept of Business Technology Computer Information Systems Database Management Approaches 2440: 180 Database Concepts Instructor:
July 13, 2015ADBS: OODB1 Concepts for Object-Oriented Databases Chapter 20.
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.
EER vs. UML Terminology EER Diagram Entity Type Entity Attribute
Concepts of Database Management, Fifth Edition
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
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.
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.
OBJECT-ORIENTEDNESS KCDCC. WHAT IS OBJECT-ORIENTEDNESS? KCDCC model system as a collection of interacting objects O-O Modelling O-O Programming similar.
Database System Concepts and Architecture
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
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.
Object Orientation and Its Benefits
Object_Oriented Databases, by Dr. Khalil 1 Object-Oriented DBMSs Dr. Awad Khalil Computer Science Department AUC.
E.Bertino, L.Matino Object-Oriented Database Systems 1 Chapter.1 Introduction Seoul National University Department. of Computer Engineering OOPSLA Lab.
1 Object Databases: Introduction. 2 Why OO? v Relational Systems are limited: –Structural restrictions on data –Missing semantics (value-based relationships)
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.
CHAPTER 13 (ONLINE): OBJECT-ORIENTED DATA MODELING © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
Chapter 11 Object-Oriented DBMSs Chapter 27, 28 & Appendix K in Textbook.
© 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.
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.
OODBMS: Introduction and Logical Database Design
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.
Chapter 18 Object Database Management Systems. Outline Motivation for object database management Object-oriented principles Architectures for object database.
The Object-Oriented Database System Manifesto Malcolm Atkinson, François Bancilhon, David deWitt, Klaus Dittrich, David Maier, Stanley Zdonik DOOD'89,
Faeez, Franz & Syamim.   Database – collection of persistent data  Database Management System (DBMS) – software system that supports creation, population,
E.Bertino, L.Matino Object-Oriented Database Systems Chapter 3. Query Language Seoul National University Department of Computer Engineering OOPSLA Lab.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
Database Management.
The Object-Oriented Database System Manifesto
Object-Oriented Database Management System (ODBMS)
Chapter 2 Database Environment Pearson Education © 2009.
Compiled from Connelly et al. DBMS Text
File Systems and Databases
Lec 3: Object-Oriented Data Modeling
ISC321 Database Systems I Chapter 10: Object and Object-Relational Databases: Concepts, Models, Languages, and Standards Spring 2015 Dr. Abdullah Almutairi.
Chapter 20 Object-Oriented Analysis and Design
Data Model.
ITEC 3220A Using and Designing Database Systems
Object-Oriented Databases
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

OBJECTS Object Oriented ???????

OBJECTS

Object-Oriented n OO convenient label for a collection of interconnected ideas n OO approach views computer system as a collection of interacting objects n Objects viewed as things –things interact –people interact with things n Need to know what an object does n Component approach

Object-oriented Approach n Object-oriented analysis –defining all of the types of objects that are part of a users work environment n Object-oriented design –define all the types of objects in computer system and how they interact –UML n Object-oriented programming –programmers write statements that define types of objects –C++, JAVA, Small Talk

Object-oriented Approach con’t n Object databases - ultimate management system for multimedia, documents and other info. n Object brokers (Agents) - in distributed systems, allow objects to dynamically discover each other and interact across machines and through the web n Object frameworks - provide flexible, customizable, prefabricated software subsystems.

OO?? n Object Orientation - a set of design and development principles based on the idea of conceptually autonomous structures. Each autonomous structure represents a real world user's entity with the ability to interact with itself and other objects. n Object - an abstract representation of a real world entity that has a unique identity, embedded properties, and the ability to interact with other objects and itself. n Class - collection of similar objects with shared attributes and methods.

Core Model n Class –Object belongs to only one class –is an instance of the class –provides the basis for queries n Class Hierarchy and Inheritance –single inheritance -hierarchy –multiple inheritance- rooted and connected directed acyclic graph (DAG)

Core Model n Object Identifier –unique –system-wide n Attributes –value of attribute also object –domain is a class of attribute values n Encapsulation and Message Passing

Object-oriented concepts n Abstraction, encapsulation, information hiding. n Objects and attributes. n Object identity. n Methods and messages. n Classes, subclasses, superclasses, and inheritance. n Overloading. n Polymorphism and dynamic binding.

Comparison between Rel DB Obj DB n relations which are sets of tuples n Tuple components primitive types n Persistence n Backup & Recovery n Transactions n Concurrency n Security & Integrity n Administration n classes which are sets of objects n Object components complex types n Inheritance hierarchy n Methods n Methods integral part of class and inherited n DML and host language can be the same

Weaknesses of RDBMSs n Poor Representation of "Real World" Entities –Normalization leads to relations that do not correspond to entities in "real world". n Semantic Overloading –Relational model has only one construct for representing data and data relationships: the relation. –Relational model is semantically overloaded.

Weaknesses of RDBMSs n Poor Support for Integrity and Enterprise Constraints n Homogeneous Data Structure –Relational model assumes both horizontal and vertical homogeneity. –Many RDBMSs now allow Binary Large Objects (BLOBs).

Weaknesses of RDBMSs n Limited Operations –RDBMs only have a fixed set of operations which cannot be extended. n Difficulty Handling Recursive Queries –Extremely difficult to produce recursive queries. –Extension proposed to relational algebra to handle this type of query is unary transitive (recursive) closure, operation.

Weaknesses of RDBMSs n Limited Operations –RDBMs only have a fixed set of operations which cannot be extended. n Difficulty Handling Recursive Queries –Extremely difficult to produce recursive queries. –Extension proposed to relational algebra to handle this type of query is unary transitive (recursive) closure, operation.

Weaknesses of RDBMSs n Other Problems with RDBMSs –Transactions are generally short-lived and concurrency control protocols not suited for long-lived transactions. –Schema changes are difficult. –RDBMSs are poor at navigational access.

BENEFITS OF OODBMS n More semantic informatiom n Multimedia, CAD, CAM n User defined data types n Versioning n Class Reusability n Faster development (inheritance, reusability) n Portability

DRAWBACKS TO OODBMS n Still developing n Lack of standards n Is there a sufficient theoretical foundation? n Is this a throwback to hierarchical systems n No ad hoc query language n No set of tools n Steep learning curve

CURRENT DATABASE FEATURES n Language –DDL –DML –DCL n Concurrency Control n Recovery n Utilities

13 Rules for an OODBMS from the OODBS Manifesto n System must support complex objects n Object identifier must be supported n Objects must be encapsulated n Systems must support types or classes n System must support inheritance n System must avoid premature binding n System must be computationally complete

LAST 6 RULES n System must be extensible n System must be able to remember data locations n System must be able to handle very large databases n System must support concurrent users n System must be able to recover from hardware and software n Data query must be simple

Key Tensions n Two data models needed –object model (data & programs) vs. relational model (data & constraints) –Must one model dominate? Are they built simultaneously? –relational model needs some object features n Impedance mismatch –object-at-a-time navigation vs. set-at-a-time queries –programmatic vs. declarative integrity enforcement n Concurrency discordance –single image vs. shared database mindset n Interoperability –what other applications must use database?

Commercial OODBMSs n GemStone from Gemstone Systems Inc., n Itasca from Ibex Knowledge Systems SA, n Objectivity/DB from Objectivity Inc., n ObjectStore from eXcelon Corp., n Ontos from Ontos Inc., n Poet from Poet Software Corp., n Jasmine from Computer Associates/Fujitsu, n Versant from Versant Object Technology.

NEXT GENERATION DB SYSTEMS NEED THE ABILITY TO: n represent and manipulate complex nested objects n store and retrieve long data n define and manipulate arbitrary data types n represent and manage changes over time (versions) n represent semantic modeling concepts n specify rules and extended constraints n manage long-duration cooperative transactions

Relationships n Relationships represented using reference attributes, typically implemented using OIDs. n Consider how to represent following binary relationships according to their cardinality: –1:1 –1:* –*:*.

1:1 Relationship Between Objects A and B Add reference attribute to A and, to maintain referential integrity, reference attribute to B.

1:* Relationship Between Objects A and B u Add reference attribute to B and attribute containing set of references to A.

*:* Relationship Between Objects A and B n Add attribute containing set of references to each object. n For relational database design, would decompose *:N into two 1:* relationships linked by intermediate entity. Can also represent this model in an ODBMS.

*:* Relationships

Alternative Design for *:* Relationships