Object and object-relational databases 1. Object databases vs. Object-relational databases Object databases Stores complex objects – Data + functions.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Object Databases Baochuan Lu. outline Concepts for Object Databases Object Database Standards, Languages, and Design Object-Relational and Extended-Relational.
Databases CIS 422. Lifetime of Data Transient results to the evaluations of expression Variables involved in procedure activation Global variables Dynamically.
--The Object Database--1 The Object Database  Object databases integrate database technology with the object-oriented paradigm  In object databases,
ODMG Standard: Object Model1 OBJECT-ORIENTED DATABASE SYSTEMS ODMG Standard: Object Model Susan D. Urban and Suzanne W. Dietrich Department of Computer.
SLIDE 1IS 257 – Spring 2004 Object-Oriented Database Development (Hoffer Chap 15) University of California, Berkeley School of Information.
Additional ODL Concepts OO Model to Relational Model Object-Relational Design OO vs OR.
Chapter 15 (Web): Object-Oriented Database Development
Other Data Models. Text New edition (DBS the complete book): Chapter 4 Old edition (First course in DBS): –Section 2.1 –Section –Section 2.4.1,
Fundamentals, Design, and Implementation, 9/e Chapter 16 Object-Oriented Database Processing.
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.
1 Announcements Research Paper due Monday November 22.
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.
Session-01. Hibernate Framework ? Why we use Hibernate ?
EER vs. UML Terminology EER Diagram Entity Type Entity Attribute
Object-Relational DBMSs By Yao-Wen Tu CS157b12/09/2003 Prof. Sin-Min Lee.
Advanced Database CS-426 Week 2 – Logic Query Languages, Object Model.
Chapter 4 The Relational Model.
1 Theory, Practice & Methodology of Relational Database Design and Programming Copyright © Ellis Cohen Introduction to Objects & Databases These.
DBMS Lecture 9  Object Database Management Group –12 Rules for an OODBMS –Components of the ODMG standard  OODBMS Object Model Schema  OO Data Model.
Relational Data Model, R. Ramakrishnan and J. Gehrke with Dr. Eick’s additions 1 The Relational Model Chapter 3.
By: Blake Peters.  OODB- Object Oriented Database  An OODB is a database management system in which information is represented in the form of objects.
NHibernate in Action Web Seminar at UMLChina By Pierre Henri Kuaté 2008/08/27
CHAPTER 14 USING RELATIONAL DATABASES TO PROVIDE OBJECT PERSISTENCE (ONLINE) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database.
Object-Oriented Database Management Systems (ODBMS)
1 Advanced Databases – CM036 Dr. Akhtar Ali School of Informatics.
Modern Database Techniques Part 1: Object Oriented Databases 3. Different Kinds of OODB.
1 Object Databases: Introduction. 2 Why OO? v Relational Systems are limited: –Structural restrictions on data –Missing semantics (value-based relationships)
1 The module aims to: n Extend the concepts and practical implementation of the relational model. n Introduce the concepts of Object Oriented and Object-
1 CS 430 Database Theory Winter 2005 Lecture 17: Objects, XML, and DBMSs.
Information System Development Courses Figure: ISD Course Structure.
Object Persistence (Data Base) Design Chapter 13.
Database Management COP4540, SCS, FIU Database Modeling A Introduction to object definition language (ODL)
Chapter 11 Object-Oriented DBMSs Chapter 27, 28 & Appendix K in Textbook.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 14 Using Relational Databases to Provide Object Persistence (Overview) Modern Database.
Chapter 21 Object Database Standards, Languages, and Design Copyright © 2004 Pearson Education, Inc.
Oct * Brad Tutterow. VS 2008.NET 3.5LINQ Entity Framework  The ADO.NET Entity Framework is part of Microsoft’s next generation of.NET technologies.
 To develop the knowledge and skills to manage and tune database management systems  To provide experience the technologies of a variety of database.
1 CS457 Object-Oriented Databases Chapters as reference.
Databases Illuminated
CSE 6331 © Leonidas Fegaras OODB1 Object-Oriented Databases and the ODMG Standard.
OODBMS: Introduction and Logical Database Design
11-1 CHAPTER 11 Concepts for Object-Oriented Databases.
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool The problem fixed by ORM Advantage Hibernate Hibernate Basic –Hibernate sessionFactory –Hibernate Session.
© 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)
AND OBJECT-ORIENTED DATABASES OBJECT-RELATIONAL DATABASES.
The ODMG Standard for Object Databases
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool Used in data layer of applications Implements JPA.
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe Chapter 12 Outline Overview of Object Database Concepts Object-Relational Features Object Database.
Introduction to ORM Hibernate Hibernate vs JDBC. May 12, 2011 INTRODUCTION TO ORM ORM is a programming technique for converting data between relational.
By Shantanu Narang CS 157b. Relational Model  Object Model Object Oriented Databases(OOD) Object Query Language(OQL) OOD pros and cons.
CS422 Principles of Database Systems Object-Relational Mapping (ORM) Chengyu Sun California State University, Los Angeles.
CS 440 Database Management Systems Stored procedures & OR mapping 1.
Hibernate Java Persistence API. What is Persistence Persistence: The continued or prolonged existence of something. Most Applications Achieve Persistence.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
Relational vs. Object Oriented Database Management System Syazwani Nur Dayana Nur Fatin Syafiqa M3cs2305B.
Object-Oriented Databases (chapter 2/3) Object Persistence - Introduction Persistent Programming Languages Specifying Object Persistence via Naming and.
CSE202 Database Management Systems
Object-Oriented Databases and the ODMG Standard
OBJECTS & DATABASES Arnaud Sahuguet – CIS-550.
Object-Oriented Database Management System (ODBMS)
Chapter 12 Outline Overview of Object Database Concepts
ISC321 Database Systems I Chapter 10: Object and Object-Relational Databases: Concepts, Models, Languages, and Standards Spring 2015 Dr. Abdullah Almutairi.
Chapter 15: Object-Oriented Database Development
Presentation transcript:

Object and object-relational databases 1

Object databases vs. Object-relational databases Object databases Stores complex objects – Data + functions Uses classes and objects – As in object-oriented programming: Java, C#, etc. Some database management systems – Gemstone – Objectivity – Versant – ObjectStore Object-relational databases Relational DBMS with some object features Latest SQL standard (2008) includes some OO features Some database management systems – Oracle 2Object and object-relational databases

Object identity Every object in a object database must have a unique identity. – Called object identity (OID) – ID’s in relational databases must be unique within the table only. OID generated by DBMS OID must be immutable Literals (simple values) have no OID 3Object and object-relational databases

Complex type structures Atoms – Single value types, like string, int, etc. Struct aka. Tuple – Type generator: Heterogeneous members (different types) – Examples Struct Name Struct Student Collection aka. Multi-valued – Type generator: Homogeneous members (same type) – Set(T), List(T), bag(T), array(T), dictionary(T) Sub-types – You can define a sub-type of a struct by extending the struct. 4Object and object-relational databases

Collections Set(T) – Distinct members, duplicates not allowed – Java: Set Bag(T) – Duplicates members allowed – Java: Collection List(T) – Duplicates members allowed. Unlimited capacity – Ordered list It makes sense to ask for 1st element, 2nd element, etc. Order, is not necessarily sorting order – Java: List Array(T) – Like List(T), but Array(T) has a maximum size 5Object and object-relational databases

Example: Defining complex types 6Object and object-relational databases

Example: Defining complex types with operations 7Object and object-relational databases

Object-Relational databases Object-relational database – Add some object oriented features to an otherwise relational database Type constructors Object identity Operations Inheritance / sub-types – Tables creates using simple types + ”homemade” types Example Object-relational DBMS – Oracle has many OO features – Microsoft SQL Server has no OO features Object and object-relational databases 8

ODMG Object model and ODL ODMG =Object Data Management Group – Standard committee for Object oriented databases ODMG 1.0, 2.0, 3.0 Object model ODL = Object Definition Language ODL terms – Extent: Contains the persistent objects of a class – Key: One or more properties (attributes or relationships) – Factory object: similar to constructor in object- oriented programming Object and object-relational databases9

ODMG database schema Object and object-relational databases10

ODMG ODL example Object and object-relational databases11

Object Query Language (OQL) Defined by ODMG Writing queries for the ODMG object model Basic structure – Select … from … where As in ordinary SQL Example Select D.name from D in Departments where D.college = ’Engineering’ Departments is an ’extent’ D is a so-called iterator variable Object and object-relational databases12

Object-relational mapping (ORM) Alternative to object databases and object- relational databases ORM programming technique to convert data between object-oriented programming languages and relational databases. – A virtual object database Some frameworks – Hibernate for Java NHibernate for Microsoft.NET – ADO.NET Entity Framework for Microsoft.NET 13Object and object-relational databases