Object – relational database

Slides:



Advertisements
Similar presentations
Database System Concepts ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com ©Silberschatz, Korth and SudarshanDatabase.
Advertisements

Chapter 3 : Relational Model
©Silberschatz, Korth and Sudarshan9.1Database System Concepts Chapter 9: Object-Relational Databases Nested Relations Complex Types and Object Orientation.
Understanding Networked Applications: A First Course Chapter 15 by David G. Messerschmitt.
Chapter 9: Object-Relational Databases
13.5 Representing Data Elements Fields, Records, Blocks Variable-length Data Modifying Records.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
Object Oriented Databases - Overview
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11 Object and Object- Relational Databases.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 22: Object-Based.
Advanced Database CS-426 Week 13 – Object Relational Databases.
Carnegie Mellon Carnegie Mellon Univ. Dept. of Computer Science Database Applications C. Faloutsos OO and OR DBMSs.
Object-Based Databases. 2 Complex Data Types and Object Orientation Structured Data Types and Inheritance in SQL Table Inheritance Array and Multiset.
Object-Relational Databases By Dr.S.Sridhar, Ph.D.(JNUD), RACI(Paris, NICE), RMR(USA), RZFM(Germany) DIRECTOR ARUNAI ENGINEERING COLLEGE TIRUVANNAMALAI.
22.1Database System Concepts - 6 th Edition Chapter 22: Object-Based Databases Complex Data Types and Object Orientation Structured Data Types and Inheritance.
©Silberschatz, Korth and SudarshanDatabase System Concepts.
Database System Concepts ©Silberschatz, Korth and Sudarshan Database System Concepts Chapter 9: Object-Based Databases.
Agenda  TMA03  M877 Block 3 Databases with Objects.
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.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
V. Megalooikonomou Object-Oriented and Object-Relational DBMSs (based on notes by Silberchatz,Korth, and Sudarshan and notes by C. Faloutsos at CMU) Temple.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
1 Advanced Databases (CM036): Lecture # 5 ( Object-Relational and Nested-Relational Databases) Introduction to Object-Relational features of Oracle 9i.
Object-Based Databases Jose Reyes Jose. Overview Object-relational data model extends the relational data model by providing a richer type system including.
Database Management System Lecture 4 The Relational Database Model- Introduction, Relational Database Concepts.
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.
CSc-340 3b1 Intermediate SQL Chapter 4 [2 of 2] Phase 1 of Student Projects SQL Data Types & Schemas Authorization.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Entity-Relationship (ER) Modelling ER modelling - Identify entities - Identify relationships - Construct ER diagram - Collect attributes for entities &
Object relational database managmement systems (ORDBMS) Adapted by Edel Sherratt from originals by Nigel Hardy.
Chapter 2 Object-Relational DBMSs Chapter 28 in Textbook.
Object Relational Features
FEN NOEA/IT - Databases/ORDB1 Object-Relational Databases The Evolutionary Approach to Closing the Gap between Relational Tables and Object Models.
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Experience with XML Schema Ashok Malhotra Schema Usage  Mapping XML Schema and XML documents controlled by the Schema to object classes and instances.
In this class, we will cover: Overriding a method Overloading a method Constructors Mutator and accessor methods The import statement and using prewritten.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 8 Object-Relational Database.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Module C: Beyond Relational.
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe Chapter 12 Outline Overview of Object Database Concepts Object-Relational Features Object Database.
Chapter 9: Object-Relational Databases Nested Relations Complex Types and Object Orientation Querying with Complex Types Creation of Complex Values and.
Comparison on commercial Object­ Relational Database Systems Dong Haoxuan A N Xu Xianan A W Zhu Jiarui A U Zhu Wuzhong A X P16.
Database System Concepts, 5th Ed. ©Sang Ho Lee Chapter 9: Object-Based Databases.
Object Relational Databases
CS 257: Database System Principles Variable length data and record BY Govind Kalyankar Class Id: 107.
Mapeo Objeto Relacional
Object Relational and Extended Relational Databases
IS 130 Information systems 1
Database Systems Chapter 3 1.
Object-Oriented Databases
Chapter 12 Information Systems.
Object-Relational DBMSs
Chapter 12 Outline Overview of Object Database Concepts
DATABASE SQL= Structure Query Language مبادئ قواعد بيانات
Module 1 Part 2: Object-Based Databases
Need for Complex Data Types
Chapter 9: Object-Based Databases
Chapter 9: Object-Relational Databases
Database.
LECTURE 3: Relational Algebra
Data Model.
Structured Types (9-12-2) Structured types allow composite attributes of E-R diagrams to be represented directly. Unnamed row types can also be used in.
Chapter 22: Object-Based Databases
Chapter 9: Object-Based Databases
Chapter 9: Object-Based Databases
Chapter 29: Object-Based Databases
Chapter 9: Object-Based Databases
Chapter 9: Object-Based Databases
Chapter 29: Object-Based Databases
Presentation transcript:

Object – relational database Reading 22.1

Complex Types and SQL:1999 Extensions to SQL to support complex types include: Collection and large object types Nested relations are an example of collection types Structured types Nested record structures like composite attributes Inheritance Object orientation Including object identifiers and references

Collection Types Sets are an instance of collection types. Other instances include Arrays (are supported in SQL:1999) E.g. author-array varchar(20) array[10] Can access elements of array in usual fashion: E.g. author-array[1] Nested relations are sets of tuples SQL:1999 supports arrays of tuples

Structured and Collection Types Structured types can be declared and used in SQL create type Publisher as (name varchar(20), branch varchar(20)) create type Book as (title varchar(20), author-array varchar(20) array [10], pub-date date, publisher Publisher) Using an array to store authors lets us record the order of the authors Structured types can be used to create tables create table books of Book

Object identifiers using references CREATE TABLE People OF people_type REF IS people_id SYSTEM GENERATED REF IS <oid_attribute> (SYSTEM GENERATED | DERIVED)

Object identifiers using references E.g. define a type Department with a field name and a field head which is a reference to the type Person, with table people as scope create type Department( name varchar(20), head ref(Person) scope people)

Encapsulation of operations in SQL Methods can be part of the type definition of a structured type: create type Employee as ( name varchar(20), salary integer) method giveraise (percent integer) We create the method body separately create method giveraise (percent integer) for Employee begin set self.salary = self.salary + (self.salary * percent) / 100; end

Inheritance and Overloading of functions in SQL Suppose that we have the following type definition for people: create type Person (name varchar(20), address varchar(20)) Using inheritance to define the student and teacher types create type Student under Person (degree varchar(20), department varchar(20)) create type Teacher under Person (salary integer, department varchar(20)) Subtypes can redefine methods by using overriding method in place of method in the method declaration SQL:1999 does not support multiple inheritance

Unstructured Complex Objects in SQL Large object types clob: Character large objects book-review clob(10KB) blob: binary large objects image blob(10MB) movie blob (2GB) JDBC/ODBC provide special methods to access large objects in small pieces Similar to accessing operating system files Application retrieves a locator for the large object and then manipulates the large object from the host language