EER vs. UML Terminology EER Diagram Entity Type Entity Attribute

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 Oriented & Object Relational Databases
Data Modeling (CB 12) CPSC 356 Database Ellen Walker Hiram College (Includes figures from Database Systems by Connolly & Begg, © Addison Wesley 2002)
Object Databases Baochuan Lu. outline Concepts for Object Databases Object Database Standards, Languages, and Design Object-Relational and Extended-Relational.
ODMG Standard: Object Model1 OBJECT-ORIENTED DATABASE SYSTEMS ODMG Standard: Object Model Susan D. Urban and Suzanne W. Dietrich Department of Computer.
Chapter Object-Oriented Practices. Agenda Object-Oriented Concepts Terminology Object-Oriented Modeling Tips Object-Oriented Data Models and DBMSs.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entity- Relationship (EER) Model.
Chapter 14 (Web): Object-Oriented Data Modeling
Object-Oriented Databases
Chapter 4: Object-Oriented Data Modeling
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.
Databases Illuminated Chapter 7 The Object-Oriented Model.
Chapter 14: Object-Oriented Data Modeling
UML Class Diagrams: Basic Concepts. Objects –The purpose of class modeling is to describe objects. –An object is a concept, abstraction or thing that.
Enhanced Entity Relationship Modeling © 2002 by Dietrich and Urban1 ADVANCED DATABASE CONCEPTS Enhanced Entity Relationship Modeling Susan D. Urban and.
Chapter 14: Object-Oriented Data Modeling
Advanced Database CS-426 Week 2 – Logic Query Languages, Object Model.
Introduction To System Analysis and design
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Chapter 13 (Online): Object-Oriented Databases
Chapter 24 Introduction to Object DBMSs Prepared by Kai Huang CS157B Prof Sin-Min Lee.
Entities and Attributes
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.
Chapter 21 A Object Data Model - Intro Copyright © 2004 Pearson Education, Inc.
Chapter 20 Concepts for Object-Oriented Databases Copyright © 2004 Pearson Education, Inc.
Database Management System Prepared by Dr. Ahmed El-Ragal Reviewed & Presented By Mr. Mahmoud Rafeek Alfarra College Of Science & Technology Khan younis.
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
Database Management COP4540, SCS, FIU Database Modeling A Introduction to object definition language (ODL)
CHAPTER 13 (ONLINE): OBJECT-ORIENTED DATA MODELING © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
1 © Prentice Hall, 2002 Chapter 14: Object-Oriented Data Modeling Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 15: Object-Oriented Data Modeling Modern Database Management 9 h Edition Jeffrey A.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 13 (Online): Object-Oriented Data Modeling Modern Database Management 10 th Edition.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
Unified Modeling Language © 2002 by Dietrich and Urban1 ADVANCED DATABASE CONCEPTS Unified Modeling Language Susan D. Urban and Suzanne W. Dietrich Department.
Object-Oriented Data Modeling
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
UNIT_2 1 DATABASE MANAGEMENT SYSTEM[DBMS] [Unit: 2] Prepared By Lavlesh Pandit SPCE MCA, Visnagar.
ITEC 3220A Using and Designing Database Systems Instructor: Gordon Turpin Course Website: Office: CSEB3020.
OODBMS: Introduction and Logical Database Design
11-1 CHAPTER 11 Concepts for Object-Oriented Databases.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Chapter 4 Extended Entity-Relationship (EER)Model Incorporates Set-subset Relationships Incorporates Generalization Hierarchies Constraints: Coverage Constraints:
AND OBJECT-ORIENTED DATABASES OBJECT-RELATIONAL DATABASES.
Exam 1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 7 Object-Oriented Database.
The ODMG Standard for Object Databases
The Object-Oriented Database System Manifesto Malcolm Atkinson, François Bancilhon, David deWitt, Klaus Dittrich, David Maier, Stanley Zdonik DOOD'89,
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi © 2013 Pearson.
A Survey of Object-Oriented Concept Oscar Nierstrasz.
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,
ISBN Chapter 12 Support for Object-Oriented Programming.
COP Introduction to Database Structures
Object-Oriented Modeling
Enhanced Entity-Relationship and Object Modeling Objectives
The Object-Oriented Database System Manifesto
Object-Oriented Databases
Object – Oriented Databases
Chapter 12 Outline Overview of Object Database Concepts
Instructor: Elke Rundensteiner
UML Class Diagrams: Basic Concepts
Domain Class Diagram Chapter 4 Part 2 pp
Lec 3: Object-Oriented Data Modeling
ISC321 Database Systems I Chapter 10: Object and Object-Relational Databases: Concepts, Models, Languages, and Standards Spring 2015 Dr. Abdullah Almutairi.
376a. Database Design Dept. of Computer Science Vassar College
ITEC 3220A Using and Designing Database Systems
Presentation transcript:

EER vs. UML Terminology EER Diagram Entity Type Entity Attribute Domain Composite Attribute ~ [Derived Attribute] Relationship Type Relationship Instance Cardinality & Participation UML Class Diagram Class Object Attribute Domain Structured Domain Operation Association Link Multiplicities UML

EER Example Participation Department 1 Is In N Cardinality Employee N DNAME Cardinality Employee N NAME P# Assigned To M FNAME LNAME Project %TIME PNAME UML

Diagrams EER vs. UML Employee Employee … Entity Type vs. Class FNAME LNAME NAME Attributes Employee E# NAME: NameDom FNAME LNAME … Methods Structured Domain Entity Type vs. Class Attribute Composite Attribute vs. Structured Domain UML

EER vs. UML Complete Diagram Department D# DNAME … EER vs. UML Complete Diagram 1..1 Min participation (0 or some int n: n>0) 0..* D# Employee E# NAME: NameDom FNAME LNAME … Department Employee E# FNAME LNAME NAME Is In 1 DNAME N Max Cardinality N P# 0..* Assigned To AssignedTo %TIME M 0..* Project Project P# PNAME … %TIME PNAME UML

EER Derived Attributes - Include in Department the average salary of the employees in the department. Member Of Employee Department Salary AvgSal Class Method Department D# DNAME AvgSal UML

EER Multi-valued Attributes as Entity Major N Has Major 3 Student Major Student Major_Program UML Student … Major_Program Major … 0..* 0..3 UML

Weak Entities EER Weak Entity Name Employee Dependents Of Dependent SSN 1 N Dependent Name Employee SSN … UML Qualified Association UML

Aggregations Location Location Project Department No No Name No Name … Department Name No … 0..* 1..1 Location Name 1..* 0..* UML

Example: University Database Superclasses & Subclasses Generalization & Specialization Inheritance d disjoint o overlap total partial U superclass subclass EmpID Salary SSN Employee Degree Program U Person o U Grad Student Name U Student d U Superclass instance must always exist. Undergrad Student Major Dept Class UML

UML Superclass/Subclass Inheritance EER UML disjoint overlapping Employee EmpID Salary … d o Person SSN Name … GradStudent DegreeProgram … Student MajorDept … UndergradStudent Class … UML

Object-Oriented Approach Motivation Object-Oriented Databases (OODB) Add persistence to object-oriented programming languages Object Relational Databases (ORDBMS) Add user-defined methods to relational databases Allow grouping of relations into more complex “objects” UML

Relational is Good For Fixed format data Transaction processing: simple short transactions Concurrency control Recovery from crashes Query processing and Query optimization relational algebra and mathematical logic operations. UML

Problems The relational model has no notion of a single object. Context with the real world e.g., spatial context. Aggregation functions may be desired The notion of re-use cannot be exploited There may also be versions or variant configurations i.e variations of the same design. UML

Problems With the Relational Model - 1 Nonhomogeneous collection of design objects. Data Types: images, matrices, vectors; variable length. Temporal and/or spatial data. Many data types; few instances of each type. UML

Problems With the Relational Model - 2 Schemas evolve during design. Long running transactions: "checkout a design". Versions; design log. UML

Problems With the Relational Model - 3 Functions needed: Making a design permanent, Releasing design to production, Archiving design, etc. Library of design objects: minimize redundancy. UML

Object-Oriented Concepts - 1 Complex Objects: sets, bags, lists, arrays, tuples. UML

Object-Oriented Concepts - 2 Object Identity: identify by object id (oid) rather than by an attribute value, never changes. Encapsulation: Operations and Data available to user. Implementation hidden. No other operations available. UML

Object-Oriented Concepts - 3 Types and/or Classes: Type: Interface and Implementation. Types declared, checked at compile-time Class: Instances created at run-time UML

Object-Oriented Concepts - 4 Class or Type Hierarchies: Inheritance: both data and function example: student: undergraduate, graduate Overriding, overloading, and late binding: Polymorphism UML

Object-Oriented Concepts - 5 Computational Completeness: Extensibility: Means to define new types. User types not distinguished from system types. Persistence: Not present in OO programming languages. Should be implicit not explicit. UML

Object-Oriented Concepts - 6 Secondary Storage Management: Concurrency: Recovery: Ad Hoc Query Facility: UML

Review: Object State (value) Behavior (operations) Signature or interface: operation name and arguments Method or body: implementation Identified by unique Object Identifier (OID) UML

Class Group of similar objects Class hierarchies Inheritance Persistence must be specified explicitly Via entry point Via reachability UML

Type Hierarchies and Inheritance (EER – superclass/subclass relationship) PERSON: Name, Address, Birthdate, Age, SSN EMPLOYEE: subtype-of PERSON: Salary, HireDate, Seniority STUDENT: subtype-of PERSON: Major, GPA EMPLOYEE: Name, Address, Birthdate, Age, SSN, Salary, HireDate, Seniority STUDENT: Name, Address, Birthdate, Age, SSN, Major, GPA UML

Object Data Management Group (ODMG) Object Model Object Definition Language (ODL) Object Query Language (OQL) Bindings to object-oriented programming languages C++, Java, Smalltalk UML