Chapter 1 Object-oriented DBMSs Chapters 25-27 in Textbook.

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

1 Chapter 25 Introduction to Object DBMSs Transparencies © Pearson Education Limited 1995, 2005.
Introduction to Databases
Databases CIS 422. Lifetime of Data Transient results to the evaluations of expression Variables involved in procedure activation Global variables Dynamically.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Object-Oriented Database Systems (part 1) CS263 Lecture 17.
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.
File Systems and Databases
Object-Oriented Standards OMG OMDG. Overview Object Management Group (OMG) International non profit-making consortium founded in 1989 to address object.
Ch1: File Systems and Databases Hachim Haddouti
Object-Oriented Databases
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
1 9 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 9 Database Management Approaches.
File Systems and Databases Hachim Haddouti
Chapter 11 Data Management Layer Design
Introduction to Object DBMSs Transparencies © Pearson Education Limited 1995, 2005.
Oracle Database Administration
Object-oriented DBMSs
The University of Akron Dept of Business Technology Computer Information Systems Database Management Approaches 2440: 180 Database Concepts Instructor:
Object Oriented Databases - Overview
July 13, 2015ADBS: OODB1 Concepts for Object-Oriented Databases Chapter 20.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11 Object and Object- Relational Databases.
Relational Database Management System A type of database in which records are stored in relational form is called relational database management system.
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
Object and object-relational databases 1. Object databases vs. Object-relational databases Object databases Stores complex objects – Data + functions.
Chapter 3 Relational Model Chapter 4 in Textbook.
Concepts of Database Management, Fifth Edition
Chapter 24 Introduction to Object DBMSs Prepared by Kai Huang CS157B Prof Sin-Min Lee.
Introduction to the Other Databases
Part 3: Introduction to Object DBMSs
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
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-Oriented Database Management Systems (ODBMS)
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 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
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.
Object_Oriented Databases, by Dr. Khalil 1 Object-Oriented Databases Dr. Awad Khalil Computer Science Department AUC.
1 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
FEN NOEA/IT - Databases/ODB1 ODB – Object DataBases Object-Oriented – Fundamental Concepts UML and EE/R OO and Relational Databases Introduction.
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
Chapter 2 Object-Relational DBMSs Chapter 28 in Textbook.
Onject-oriented Database Prof. Sin-Min Lee Department of Computer Science.
CSCI 6315 Applied Database Systems Review for Midterm Exam I Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe Chapter 12 Outline Overview of Object Database Concepts Object-Relational Features Object Database.
Faeez, Franz & Syamim.   Database – collection of persistent data  Database Management System (DBMS) – software system that supports creation, population,
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
OODBMS and ORDBMS. Background Object-oriented software, based on the principles of user-defined datatypes, along with inheritance and polymorphism, is.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
1 Management Information Systems M Agung Ali Fikri, SE. MM.
Teacher Workshop Database Design Pearson Education © 2014.
Object-Oriented Database Management System (ODBMS)
Object-Relational DBMSs
Chapter 12 Outline Overview of Object Database Concepts
Compiled from Connelly et al. DBMS Text
Lec 3: Object-Oriented Data Modeling
ITEC 3220A Using and Designing Database Systems
Presentation transcript:

Chapter 1 Object-oriented DBMSs Chapters in Textbook

Overview OODBMS2  Relational quick review  Why OO?  What is an Object?  What is an object ID?  Classes, subclasses and inheritance  UML  OQL

Relational DBMS Quick Review OODBMS3  Data model: ER.  Data is stored in tables.  Each row is a record.  Relationships between tables (PK-FK). Takes StudentCourse SID CID name year SIDname Nora M Sara S Hala L SIDCIDyearSem CAP CAP CAP Sem CIDname CAP364DB2 CAP430Security MN

Weaknesses of RDBMS OODBMS4  Poor Representation of “Real World” Entities.  Poor Support for Integrity and Enterprise Constraints.  Homogeneous Data Structure.  Limited Operations.  Difficulty Handling Recursive Queries.  Schema changes are difficult.  RDBMSs are poor at navigational access.

Why OO? Advanced DB Applications OODBMS5  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.  Other applications with complex and interrelated objects and procedural data – Read pages in book.

What is an OODBMS anyway? OODBMS6  OODBMS (Object-oriented DB Management System) is a database with data stored in objects and collections NOT rows and tables.  OO Concepts:  Abstraction, encapsulation, information hiding.  Objects and attributes.  Object identity.  Methods and messages.  Classes, subclasses, superclasses, and inheritance.  Overloading.  Polymorphism and dynamic binding.

OODBMS 7 Traditional DBS Persistence Sharing Transactions Concurrency Control Recovery Control Security Integrity Querying Semantic Data Model Generalization Aggregation OOPS OID Encapsulation Inheritance Types & Classes Methods Complex objects Polymorphism Extensibility Special Requirements Versioning Schema Evolution OODBMS

Object OODBMS8  Uniquely identifiable entity that contains both  the attributes that describe the state of a real-world object and  the actions associated with it.  Object encapsulates both state and behavior; an entity only models state.  Persistent objects vs. transient objects.  Everything in an OODBMS is an object.

Object Identity (OID) OODBMS9  Object identifier (OID) assigned to object when it is created that is:  System-generated.  Unique to that object.  Invariant.  Independent of the values of its attributes (that is, its state).  Invisible to the user (ideally).

Encapsulation  Object OODBMS10 Attributes Method 4 Method 3 Method 2Method 1

Class and Object (Instance) OODBMS11 BRANCH BranchNo = B005 Street = 22 Deer Rd City = London Postcode = SW1 4EH BranchNo = B007 Street = 16 Argyll St City = Aberdeen Postcode = AB2 3SU BranchNo = B003 Street = 163 Main St City = Glasgow Postcode = G11 9QX Attributes branchNo street city postcode Methods print() getPostCode() numberOfStaff()

Subclasses, Superclasses and Inheritance Inheritance allows one class of objects to be defined as a special case of a more general class.  Special cases are subclasses and more general cases are superclasses.  Process of forming a superclass is generalization; forming a subclass is specialization.  Subclass inherits all properties of its superclass and can define its own unique properties.  Subclass can redefine inherited methods (override).  All instances of subclass are also instances of superclass. OODBMS12

Single Inheritance OODBMS13 PERSON STAFF SALES STAFF MANAGER

Complex Objects  A Complex object is something that can be viewed as a single thing in the real world but it actually consists of many sub-objects.  2 Types:  Unstructured.  Their structure hard to determine.  Requires a large amount of storage.  BLOB (Binary Large Objects): images & long test strings.  Structured.  Clear structure.  Sub-objects in a part-of relationship.  Will talk more about in next slide. OODBMS14

Structured Complex Objects An object that consists of sub-objects but is viewed as a single object.  Objects participate in a A-PART-OF (APO) relationship.  Contained object can be encapsulated within complex object, accessed by complex object’s methods.  Or have its own independent existence, and only an OID is stored in complex object. OODBMS15 M1 M3 M2 M4 Obj 2 Obj 1 Obj 2 M1 M3 M2 M4 Obj 1 OID 2 M1 M3 M2 M4 Obj 3 OID 2

Collections  Contains a number of unnamed, homogeneous elements; each can be instance of atomic type, another collection, or a literal type. Types of Constructors: Set: unordered collection of objects without duplicates. Bag:unordered collection of objects that allows duplicates. List:ordered collection of objects that allows duplicates. Array: ordered collection of objects without duplicates. Dictionary: unordered sequence of key-value pairs without duplicate keys. OODBMS16

Object Relationships  A relationship between 2 objects can be:  One-to-One  One-to-Many  Many-to-Many  UML (Unified Modeling Language) is used to model objects and object relationships. OODBMS17

UML Example OODBMS18 PERSON Name FName LName STAFF StaffNo position DOB salary POWNER OwnerNo address CLIENT ClientNo telNO prefType MaxRent MANAGERSALESTAFF BRANCH PROPERTY PropertyNo rooms rent BranchNo address Manages WorksAt Offers Views Owns M 1 M 1 MM N ManagedBy Has OwnedBy IsOfferedBy ViewedBy

Object Query Language -- OQL  A Query language for OODBMS.  OQL can be used for both associative and navigational access:  Associative query returns collection of objects (like SQL).  Navigational query accesses individual objects and object relationships used to navigate from one object to another. OODBMS19

OQL vs. SQL: A Simple Example OODBMS20 select c.fname, c.lname from Depts d, d.employs e, e.hasChildren c where d.name = “Sales” select c.fname, c.lname from Depts d, Employee e, Children c where d.name = “Sales” and d.deptID = e.deptID and c.parentID = e.empID OQLSQL Query: List the names of the children of employees working in the sales department.

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