DBMS Lecture 9  Object Database Management Group –12 Rules for an OODBMS –Components of the ODMG standard  OODBMS Object Model Schema  OO Data Model.

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

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
Object Databases Baochuan Lu. outline Concepts for Object Databases Object Database Standards, Languages, and Design Object-Relational and Extended-Relational.
Introduction to Databases
Databases CIS 422. Lifetime of Data Transient results to the evaluations of expression Variables involved in procedure activation Global variables Dynamically.
ODMG Standard: Object Model1 OBJECT-ORIENTED DATABASE SYSTEMS ODMG Standard: Object Model Susan D. Urban and Suzanne W. Dietrich Department of Computer.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
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.
Data Management Design
Geographic Information Systems
Object-Oriented Databases
Introduction to Databases Transparencies
Fundamentals, Design, and Implementation, 9/e Chapter 16 Object-Oriented Database Processing.
Object Oriented Databases - Overview
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11 Object and Object- Relational Databases.
Databases Illuminated Chapter 7 The Object-Oriented Model.
RIZWAN REHMAN, CCS, DU. Advantages of ORDBMSs  The main advantages of extending the relational data model come from reuse and sharing.  Reuse comes.
Advanced Database CS-426 Week 13 – Object Relational Databases.
Chapter 4 Object and Object-Relational Databases (Part ½: Object-Oriented Concepts) Lecturer: H.Ben Othmen Department of Computer Science, Umm Al-Qura.
Object-Oriented Database Design using UML and ODMG
EER vs. UML Terminology EER Diagram Entity Type Entity Attribute
Chapter One Overview of Database Objectives: -Introduction -DBMS architecture -Definitions -Data models -DB lifecycle.
Object and object-relational databases 1. Object databases vs. Object-relational databases Object databases Stores complex objects – Data + functions.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Week 1 Lecture MSCD 600 Database Architecture Samuel ConnSamuel Conn, Asst. Professor Suggestions for using the Lecture Slides.
Agenda  TMA03  M877 Block 3 Databases with Objects.
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
1 Introduction to databases concepts CCIS – IS department Level 4.
11 1 Object oriented DB (not in book) Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel Learning objectives: What.
Database Technical Session By: Prof. Adarsh Patel.
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.
Database Design - Lecture 2
Modern Database Techniques Part 1: Object Oriented Databases 3. Different Kinds of OODB.
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.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
In this session, you will learn to: Map an ER diagram to a table Objectives.
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.
Object Relational Features
The ODMG Standard for Object Databases
1 Chapter 2 Database Environment Pearson Education © 2009.
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,
RELATIONAL DATABASE MANAGEMENT SYSTEM - I Subject code : BCA-12 and PGDCA 1.
Data Models. 2 The Importance of Data Models Data models –Relatively simple representations, usually graphical, of complex real-world data structures.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Completeness Criteria for Object- Relational Database Systems by Won Kim April 2002 Sang Ho Lee School of Computing, Soongsil University
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
CSE202 Database Management Systems
Database Management.
Datab ase Systems Week 1 by Zohaib Jan.
The Object-Oriented Database System Manifesto
OBJECTS & DATABASES Arnaud Sahuguet – CIS-550.
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.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
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
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

DBMS Lecture 9  Object Database Management Group –12 Rules for an OODBMS –Components of the ODMG standard  OODBMS Object Model Schema  OO Data Model Design Notation  Oracle implementation of: –Inheritance –Aggregation

Rules that make it an OO system  Complex objects must be supported - objects whose data type is more than simply the native data types of number, string, date  Object identity – all objects must have a unique identity that is independent of the values of its attributes i.e. objects are not identified by primary key values

Rules that make it an OO system  Encapsulation must be supported i.e. access to an object is via its interface [cannot see the internal structure of an object or how its methods work]  Object classes the construct of object classes must be supported; the OODBMS schema must comprise a set of classes

Rules that make it an OO system  Inheritance of methods and attributes must be supported  Dynamic binding the DBMS must bind method names to logic at run time [allows for methods to have the same name but apply to different objects and implement in different ways]

Rules that make it an OO system  Complete DML should be a general purpose programming language  Extensible set of data types: the user must be able to build new data types from predefined types

Rules that make it an OO system  Recovery facilities must be able to recover from hardware and software failure  Query management must provide a simple way of querying the data

Rules that make it a DBMS In an OODBMS  Data persistence: data must persist after the application has terminated and the user should not need to explicitly initiate persistence.  Capable of managing very large databases  Concurrent access must be possible

Components of the ODMG [object database management group] standard 1Object Model: a data model to be supported by ODMG compliant DBMS 2Object specification language:  Object Definition Language [ODL] ODL used to define objects  Object Interchange Format [OIF] OIF used to upload and download object values to secondary storage

Components of the ODMG [object database management group] standard 3Object Query Language: a declarative language for querying the database - based on SQL3 4Language bindings ability to read and write from a database using different programming languages

Features of OODBM models  OODBM models real world entities as objects  Each object is composed of attributes and a set of methods  Each attribute can reference another object or set of objects  The attributes and the methods’ implementation are hidden, encapsulated from other objects

Features of OODM models  Each object is identified by a unique object id (OID) which is independent of the values of its attributes  Similar objects are grouped in a class that contains a description of the attributes and methods  The class describes a type of object

Features of OODM models  Classes are organized in a class hierarchy  Each object in a class inherits all properties of its superclasses in the class hierarchy

Comparing the OO and ER model Components  OO data model  Type  Object  Class  Instance variable  n/a  oid  method  class hierarchy  ER data model  entity definition  entity  entity set  attribute  primary key  n/a  ER diagram

Object Model: Objects  An object – instance of a class –has a unique identity –Property values –may have associated methods  Objects are defined against a type hierarchy: –Atomic [e.g. number, string, date] –Collection objects[ e.g. a set of students in a school]

Object Model: Types  Class definition defines the abstract behaviour and abstract state of an object type  A type has a specification –operations that can be performed –and properties that can be accessed  ODMG model includes supertyping and subtyping and the associated notion of inheritance or a generalisation – specialisation relationship

Object Model: Properties  Properties may either be an attribute of an object or a relationship between objects.  E.G. definition of attributes of a class: Module Attribute string moduleCode; Attribute string moduleName; Attribute short level; Attribute short roll;

Object Model: Properties - relationships  E.G. Lecturer teaches Module, Module is taught by Lecturer are the 2 traversal paths for the relationship teaches.  E.G. A one to many relationship between a Lecturer type and Module type: CLASS Lecturer { RELATIONSHIP SET Teaches INVERSE Module::TaughtBy; } CLASS Module { RELATIONSHIP Lecturer TaughtBy INVERSE Lecturer::Teaches; }

Object Model: Operations  the behaviour of an object is defined by a set of operations [methods] associated with an object.  E.G. An operation to increase the roll of a module instance by a set amount VOID increaseRoll (IN SHORT amount);

Object Model: schemas  Schemas : –database is defined by a schema specified in the object definition language.  schema information defined using ODL is stored in the system catalogue

Example Object Model Schema for an academic Database

OO Data Model Design Notation: Binary Relationships

OO Data model Design Notation: Inheritance

OO Data Model Design Notation: Aggregation

OO Data Model Design Notation: Reference

Implementing Inheritance in Oracle NOT INSTANTIATED

Storing Objects in tables  Either a super type table or series of sub type tables CREATE TABLE persons OF person_typ (CONSTRAINT persons_pk PRIMARY KEY (id));

Inserting data INSERT INTO persons VALUES(NEW employee1_typ(001, ‘bloggs’,’12-jun-2006’,12000,3000)); INSERT INTO persons VALUES(NEW student1_typ(001, ‘jones’,’12- jul-2006’,65));

Retrieving objects from object tables: SELECT VALUE (p) FROM persons p;

Example: Implementing Aggregation & Referencing in Oracle

Implementing Aggregation & Referencing in Oracle

workshop  Implementing an OO data model using SQL3 OO extension –Creating Object types –Creating tables for object types –Inserting data –Retrieving data