FEN 16-09-2007NOEA/IT - Databases/ORDB1 Object-Relational Databases The Evolutionary Approach to Closing the Gap between Relational Tables and Object Models.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Object Oriented Database Group 4 Mathieu Metz Palani Kumaresan Napa Gavinlertvatana Kristine Pei Keow Lee Prabhu Ramachandran.
Winter 2002Arthur Keller – CS 18012–1 Schedule Today: Feb. 19 (T) u Object-Relational Systems. u Read Sections 4.5, Assignment 5 due. Feb. 21.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Oracle Objects Object Oriented Database Approach.
Chapter 9: Object-Relational Databases
Geographic Information Systems
Object-Oriented Databases
1 Object Oriented & Object Relational Databases Ranga Raju Vatsavai Teaching Mentor (Prof. Shekhar) CSci 5708 : Architecture and Implementation of Database.
Object (and Object-Relational) Database Systems (part two)
Fundamentals, Design, and Implementation, 9/e Chapter 16 Object-Oriented Database Processing.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Object Oriented Databases - Overview
Attribute databases. GIS Definition Diagram Output Query Results.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11 Object and Object- Relational Databases.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 18 Object Database Management Systems.
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 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Object-Based Databases. 2 Complex Data Types and Object Orientation Structured Data Types and Inheritance in SQL Table Inheritance Array and Multiset.
©Silberschatz, Korth and SudarshanDatabase System Concepts.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Database System Concepts ©Silberschatz, Korth and Sudarshan Database System Concepts Chapter 9: Object-Based Databases.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Chapter 4 The Relational Model.
Database Design for Object- Relational Systems I. Nested Structures/Methods Nick Rossiter November 2003.
Agenda  TMA03  M877 Block 3 Databases with Objects.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
DBMS Lecture 9  Object Database Management Group –12 Rules for an OODBMS –Components of the ODMG standard  OODBMS Object Model Schema  OO Data Model.
Object-Based Databases Ghazal Mostofi Sadri. Outline 1.Overview 2.Complex Data Types 3.Structured Types and Inheritance in SQL 4.Table Inheritance 5.Array.
Data Access Patterns Some of the problems with data access from OO programs: 1.Data source and OO program use different data modelling concepts 2.Decoupling.
1 Advanced Databases (CM036): Lecture # 5 ( Object-Relational and Nested-Relational Databases) Introduction to Object-Relational features of Oracle 9i.
ADVANCED DATABASE SYSTEMS DR. FATEMEH AHMADI- ABKENARI SEPTEMBER Object Databases.
©Silberschatz, Korth and Sudarshan9.1Database System Concepts Chapter 9: Object-Oriented Databases Nested Relations Complex Types and Object Orientation.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Winter 2006Keller, Ullman, Cushing12–1 Object-Relational Systems Object-oriented ideas enter the relational world. u Keep relation as the fundamental abstraction.
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.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 18 Object- Oriented Database Processing.
FEN Introduction to the database field:  The Relational Model Seminar: Introduction to relational databases.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Object relational database managmement systems (ORDBMS) Adapted by Edel Sherratt from originals by Nigel Hardy.
FEN NOEA/IT - Databases/ODB1 ODB – Object DataBases Object-Oriented – Fundamental Concepts UML and EE/R OO and Relational Databases Introduction.
Chapter 2 Object-Relational DBMSs Chapter 28 in Textbook.
Object Relational Features
11-1 CHAPTER 11 Concepts for Object-Oriented Databases.
© D. Wong Security and User Authorization in SQL 8.7 pp. 410  Authorization ID = user name  Special authorization ID: PUBLIC  Privileges for:
Object-Relational Model. Review: Data Models Hierarchical Network ER (Pure) Relational (Pure) Object-oriented (ODMG) Object-relational (since SQL:1999)
My Research: Adding More Support for Relationships to DBMSs by Dr. Bryon K. Ehlmann Computer Science Department Southern Illinois University Edwardsville.
AND OBJECT-ORIENTED DATABASES OBJECT-RELATIONAL DATABASES.
Lecture 16 Object relational databases. 2 Objectives How relational model has been extended to support advanced database applications. Features proposed.
Object storage and object interoperability
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Chapter 18 Object Database Management Systems. Outline Motivation for object database management Object-oriented principles Architectures for object database.
Jennifer Widom Relational Databases The Relational Model.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 8 Object-Relational Database.
Question 1 Which of the following requires object database technology? A. Storing employee picture on disk B. Retrieving an employee picture C. Retrieving.
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe Chapter 12 Outline Overview of Object Database Concepts Object-Relational Features Object Database.
IST 210 Object Oriented Database. IST 210 Object-Oriented Concepts  Abstract Data Types  Class definition, provides extension to complex attribute types.
Faeez, Franz & Syamim.   Database – collection of persistent data  Database Management System (DBMS) – software system that supports creation, population,
Data Resource Management Lecture 8. Traditional File Processing Data are organized, stored, and processed in independent files of data records In traditional.
Introduction to Database Programming with Python Gary Stewart
Object – Oriented Databases
Object-Relational DBMSs
Chapter 12 Outline Overview of Object Database Concepts
Relational Databases The Relational Model.
Relational Databases The Relational Model.
Object – relational database
Presentation transcript:

FEN NOEA/IT - Databases/ORDB1 Object-Relational Databases The Evolutionary Approach to Closing the Gap between Relational Tables and Object Models SQL3 – SQL:99

FEN NOEA/IT - Databases/ORDB2 Or in a picture… ORDB?

FEN NOEA/IT - Databases/ORDB3 Stonebraker’s Matrix COMPLEX QUERY Relational DBMS Object-Relational DBMS NOT COMPLEX QUERY File SystemObject-Oriented DBMS SIMPLE DATACOMPLEX DATA

FEN NOEA/IT - Databases/ORDB4 The Problem 1NF: –All data as simple values in tables This means: –No structure allowed

FEN NOEA/IT - Databases/ORDB5 Approachs Not First Normal Form Databases (NFNF == NF 2 databases): –Fields in tables may be tables –Not implemented in commercial DBMSs SQL:99: –The concept of domains is enhanced allowing attributes to be defined over user defined domains (UDT: User Defined Data Type)

FEN NOEA/IT - Databases/ORDB6 SQL/Object (part of SQL:99) Additions to SQL-92: –Type constructors (User Defined Types: UDT) : ROW type (a tuple or a record) Array type (fixed size, 1 dimensional) –REF type (like OIDs) –Encapsulation (adding operations or methods to types) –Inheritance

FEN NOEA/IT - Databases/ORDB7 Type Constructors Row type: CREATE TYPE AS [ ROW ] ( ); Ex: CREATE TYPE AddrType AS ( StreetVARCHAR(45), CityVARCHAR(25), ZipCHAR(5) );

FEN NOEA/IT - Databases/ORDB8 Type Constructors Array type: Fixed size arrays: Ex: CREATE TYPE CompanyType AS ( CompNameVARCHAR(20), LocationsVARCHAR(20) ARRAY[10] );

FEN NOEA/IT - Databases/ORDB9 Type Constructors A User Defined Type may be used to define new USDs: CREATE TYPE EmployeeType AS ( NameVARCHAR(35), Addr AddrType, AgeINT ); or as type for attributes in definition of tables: CREATE TABLE COMPANY OF CompanyType ( PRIMARY KEY(CompName) );

FEN NOEA/IT - Databases/ORDB10 OIDs and References OIDs are supported: CREATE TABLE COMPANY OF CompanyType ( REF IS CompID SYSTEM GENERATED, PRIMARY KEY(CompName) ); CREATE TABLE EMPLOYEE OF EmployeeType REF IS EmpID SYSTEM GENERATED; Primary key could be used instead

FEN NOEA/IT - Databases/ORDB11 OIDs and References References may used implementing relations (in the ER-sense of the word): CREATE TYPE EmploymentType AS ( Employee REF(EmployeeeType) SCOPE(EMPLOYEE), Company REF(CompanyType) SCOPE(COMPANY), ); CREATE TABLE EMPLOYMENT OF EmploymentType; SCOPE defines the table which may be referenced by the reference attribute

FEN NOEA/IT - Databases/ORDB12 OIDs and References Using references in path expressions: SELECTE.Employee -> Name FROMEMPLOYMENT E WHEREE.Company -> CompName = ‘NOEA’ Usually SQL uses the dot notation to build path expressions: EMPLOYEE.AddrType.Street, but for reference types ‘->’ is used Actual, this is C++ notation

FEN NOEA/IT - Databases/ORDB13 Encapsulation One of three pillars of object-orientation is encapsulation, i.e.: hiding data behind operations or methods Encapsulation is supported by SQL3: CREATE TYPE (, ); What are the two others? USDs and references may be used

FEN NOEA/IT - Databases/ORDB14 Encapsulation Ex: CREATE TYPE AddrType AS ( StreetVARCHAR(45), CityVARCHAR(25), ZipCHAR(5), ) METHOD apartmentNo() RETURNS CHAR(8); METHOD CREATE FUNCTION apartmentNo() RETURNS CHAR(8) FOR AddrType AS EXTERNAL NAME ‘/x/y/AppartmentNo.class’ LANGUAGE ‘java’ Given some algorithm to retrieve apartment number from address Methods are implemented by FUNCTIONs

FEN NOEA/IT - Databases/ORDB15 Inheritance and Polymorphism Are also supported: –All attributes are inherited –An instance of a subtype can be used wherever an instance of the supertype may be used. –Methods may be redefined in subtypes –Dynamic linking is used Here they are: The two other pillars of OO

FEN NOEA/IT - Databases/ORDB16 Further Studies See for instance: –Elmasri chapter 22.4 and –