Chapter 41 Enhanced Entity-Relationship and Object Modeling.

Slides:



Advertisements
Similar presentations
Prof. Sin-Min Lee Department of Computer Science
Advertisements

© Shamkant B. Navathe CC. © Shamkant B. Navathe CC Chapter 4 - Part I Enhanced Entity-Relationship and UML Modeling Copyright © 2004 Ramez Elmasri and.
1 Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – EER Model –21th June.
Enhanced Entity-Relationship and Object Modeling (Ch 4) Jan R McFadyen1 Class/subclass relationships Inheritance Specialization Generalization.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Copyright © 2004 Pearson Education, Inc.. Chapter 4 Enhanced Entity- Relationship and UML Modeling.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entity- Relationship (EER) Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Conceptual Data Modeling Using Entities and Relationships.
Enhanced Entity-Relationship and UML Modeling
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
Enhanced ER-diagram Prof. Sin-Min Lee Department of Computer Science.
1 Enhanced Entity Relationship Modelling EER Model Concepts Includes all basic ER modeling concepts Additional concepts: subclasses/superclasses specialization/generalization.
The Enhanced Entity- Relationship (EER) Model
Entity-Relationship (E-R) Model
December 4, 2002 Data Modeling – James Cohen Enhanced Entity Relationship (EER) Model Presented by James Cohen.
Chapter 4 The Enhanced Entity-Relationship (EER) Model
© Shamkant B. Navathe CC METU Department of Computer Eng Ceng 302 Introduction to DBMS Enhanced Entity-Relationship (EER) Model by Pinar Senkul resources:
EXTENDED-ER (EER) MODEL CONCEPTS. Enhanced-ER (EER) Model Concepts  Basic ER diagram + more concepts =EER model  Additional concepts:  Subclasses/superclasses.
Specialization and generalization
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1 EER stands for Enhanced ER or Extended ER EER Model Concepts Includes all modeling concepts.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entity- Relationship (EER) Model.
Enhanced Entity Relationship Modeling © 2002 by Dietrich and Urban1 ADVANCED DATABASE CONCEPTS Enhanced Entity Relationship Modeling Susan D. Urban and.
Enhanced Entity-Relationship and UML Modeling. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
Enhanced Entity-Relationship Model (EER) 1. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
Entities and Attributes
Databases Illuminated Chapter 8 The Enhanced Entity-Relationship Model and the Object-Relational Model.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 The Enhanced Entry-Relationship (EER) Model.
Chapter 4: The Enhanced ER Model and Business Rules
© Shamkant B. Navathe CC. © Shamkant B. Navathe CC Chapter 4 - Part I Enhanced Entity-Relationship and UML Modeling Copyright © 2004 Ramez Elmasri and.
THE ENHANCED ER (EER) MODEL CHAPTER 8 (6/E) CHAPTER 4 (5/E)
Database Systems: Enhanced Entity-Relationship Modeling Dr. Taysir Hassan Abdel Hamid.
Enhanced Entity-Relationship (EER) Modeling. Slide 4- 2 Chapter Outline EER stands for Enhanced ER or Extended ER EER Model Concepts Includes all modeling.
1 CSBP430 – Database Systems Chapter 4: Enhanced Entity– Relationship and Object Modeling Elarbi Badidi College of Information Technology United Arab Emirates.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4- 1.
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Ramez Elmasri and Shamkant Navathe Enhanced-ER (EER) Model Concepts.
Chapter 4 Extended Entity-Relationship (EER)Model Incorporates Set-subset Relationships Incorporates Generalization Hierarchies Constraints: Coverage Constraints:
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 4 Enhanced Entity-Relationship (EER) Modeling.
Slide 4-1 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Revised by IB & SAM, Fasilkom UI, 2005 Exercise 1. a property or description.
© Shamkant B. Navathe CC Enhanced Entity-Relationship Copyright © 2004 Ramez Elmasri and Shamkant Navathe.
Topic 4 - Part I Enhanced Entity-Relationship and UML Modeling
Copyright © 2016 Ramez Elmasri and Shamkant B. Navathe CHAPTER 4 Enhanced Entity-Relationship (EER) Modeling Slide 1- 1.
Extended ER Modelling. Extended E-R Features: Specialization Top-down design process; we designate subgroupings within an entity set that are distinctive.
Lecture 3 A short revision of ER and EER modelling See R. Elmasri, S.B. Navathe. Fundamentals of Database Systems (third edition) Addison-wesley. Chapter.
Enhanced Entity-Relationship and UML Modeling. 2.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 4- 1.
Chapter 4_part2: The Enhanced Entity-Relationship (EER) Model.
Database Systems 主講人 : 陳建源 日期 :99/10/19 研究室 : 法 Chapter 4 Enhanced Entity-Relationship and Object Modeling.
CSE202 Database Management Systems
Databases (CS507) CHAPTER 7.
Enhanced Entity-Relationship (EER) Model
The Enhanced Entity- Relationship (EER) Model
Enhanced Entity-Relationship and Object Modeling Objectives
© Shamkant B. Navathe CC.
Conceptual Design & ERD Modelling
Enhanced Entity-Relationship (EER) Modeling
The Enhanced Entity- Relationship (EER) Model
Enhanced Entity-Relationship (EER) Modeling
Session 2 Welcome: The sixth learning sequence
Enhanced Entity-Relationship (EER) Modeling
© Shamkant B. Navathe CC.
© Shamkant B. Navathe CC.
Sampath Jayarathna Cal Poly Pomona
ENHANCED ENTITY-RELATIONSHIP (EER) MODEL
Sampath Jayarathna Cal Poly Pomona
© Shamkant B. Navathe CC.
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modeling
Presentation transcript:

Chapter 41 Enhanced Entity-Relationship and Object Modeling

Chapter 42 Subclasses, Superclasses & Inheritance Subclass - Often an Entity has many subgrouping which are meaningful and need to be explicitly represented. These are called subclasses. Superclass - Is the term used to describe the Entity that contains a subclass(s). A member of a subclass is the SAME member of its respective superclass with a specific role and it inherits the superclass attributes.

Chapter 43 Specialization Specialization is the process of defining a set of subclasses for an Entity type. It allows the establishment of specific attributes for each subclass. It allows us to show additional relationships between each subclass and other Entity types or other subclasses.

Chapter 44 Fig 4.1 Page 77

Chapter 45 Generalization Generalization is the reverse process of Specialization in which we identify their common features, attributes and relationships between different entities to create a superclass entity.

Chapter 46 Figure 4.3 Page 79

Chapter 47 Constraints & Characteristics of Specialization & Generalization Some subclasses are predicate-defined. This a constraint on the subclass as all members of this subclass MUST satisfy this condition. When ALL subclasses are predicate-defined then the specialization is called an attribute-defined specialization.

Chapter 48 Figure 4.4 Page 80

Chapter 49 Another way to determine membership is called user-defined. This is when membership in the subclass is determined by the user. Therefore, it can not be determined by evaluating an attribute.

Chapter 410 Specialization Constraints Disjointness - Is the constraint that members of the superclass may belong to at most one subclass of a specialization. If this constraint is not present than the members of the subclass may overlap. Completeness - Is the constraint that ALL members of the superclass MUST participate in the specialization.

Chapter 411 Fig 4.5 Page 82

Chapter 412 Possible Constraints on Specialization Disjoint, total Disjoint, partial Overlapping, total Overlapping, partial

Chapter 413 Hierarchies & Lattices A Specialization Hierarchy is defined with the constraint that all subclasses can only participate in one class/subclass relationship. (This restriction only applies to the entity itself; not the elements that make up the entity.) If a subclass can participate in more than one class/subclass relationship than it is a Specialization Lattice.

Chapter 414 Fig 4.6 Page 83

Chapter 415 Shared Subclasses/Multiple Inheritance When you have a Specialization Lattice any subclass which has two or more superclasses is a shared subclass. These shared subclasses inherit ALL the attributes of each of their respective superclasses. This leads to the concept of multiple inheritance since it inherits from all its superclasses.

Chapter 416 Fig 4.7 Page 84

Chapter 417 Utilizing Specialization & Generalization in Modeling There are two approaches to using either Specialization or Generalization to Model the MiniWorld. –Specialization uses top-down conceptual refinement process which starts at the superclass and then defines subclasses –Generalization uses bottom-up conceptual synthesis which starts with the subclasses and using common elements create superclasses.

Chapter 418 Modeling Union Type Using Catagories A category is defined as an entity that has two or more superclasses that represent distinct entity types. It is made up of a subset of the union of its superclasses. These distinct entity types do not OVERLAP so there is no shared subclass that inherits ALL the attributes of its superclasses.

Chapter 419 Figure 4.8

Chapter 420 Figure 4.9

Chapter 421 Conceptual Object Modeling Using UML Class Diagrams UML - Universal Modeling Language Under UML Entity Types are modeled as classes and an Entity in an ER diagram corresponds to an object in UML.

Chapter 422 UML Notation UML classes have three sections: –Top section which contains the class name –Middle section which includes the attributes. –Bottom section which includes the operations that can be applied to these objects. The domain of an attribute may be specified by placing a ‘:’ followed by the domain name/description.

Chapter 423 UML Notation (con’t) Composite attributes are model as a structured domain. A multivalued attribute will generally be modeled as a separate class. Relationship types are called Associations in UML and relationship instances are called links which are shown as line.

Chapter 424 UML Notation (con’t) A relationship attribute is called a link attribute and is placed in a box that is connected to the association’s line by a dashed line. Min, Max notation is used to specify relationship constraints but are placed on the opposite ends.

Chapter 425 A ternary relationship generally represents more information than 3 binary relationships

Chapter 426

Chapter 427 A Weak Entity with a Terary Identifying Relationship