EER Enhanced Entity Relationship Model - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

EER Enhanced Entity Relationship Model

Description:

There are limitations to the ER model. ER model enhanced (EER) to include: ... Aggregation relationship between object and component parts (has-a relationship) ... – PowerPoint PPT presentation

Number of Views:360
Avg rating:3.0/5.0
Slides: 17
Provided by: Vrb
Category:

less

Transcript and Presenter's Notes

Title: EER Enhanced Entity Relationship Model


1
  • EER Enhanced Entity Relationship Model
  • Chapter 4.1-4.3

2
Why EER?
  • There are limitations to the ER model
  • ER model enhanced (EER) to include 
  • superclass/subclass relationships
  • type inheritance
  • specialization and generalization
  • constraints

3
Subclasses
  • Subclass of an entity type
  • relationship is-a
  • derive subclass from superclass
  • manager is a(n) employee
  •    subset symbol in connecting line Fig
    4.1
  • member of a subclass must also be a member of
    some superclass

4
Type inheritance
  • inherit all attributes of superclass
  • useful for modeling, convenience

5
Specialization
  • Specialization
  • salaried and hourly specialization of
    employee
  • specific attributes attached to subclass
  • subclasses can also participate in specific
    relationship types
  • circle connecting all specialized subclasses 
  • still use subset symbol to connect subclass to
    circle Fig 4.4

6
Generalization
  • Generalization of entity types into a single
    superclass
  • vehicle is generalization of car, truck
  • Fig 4.3

7
Specialization Constraints
  • Predicate defined (condition-defined) subclasses
  • manager True
  •  has a defining predicate for the subclass
  • Attribute defined Fig 4.4
  • if all subclasses have membership based on same
    attribute
  • User defined - if no condition

8
Constraints contd
  • Disjointedness constraint
  • subclasses disjoint
  • member of at most 1 subclass
  • use d in circle to indicate
  • Otherwise,
  • Overlapping constraint
  • sets of entities may overlap
  • member of more than 1 subclass
  • use o in circle to indicate

9
Constraints contd
  • Completeness constraint
  • total specialization 
  • every entity in superclass must be member of some
    subclass of specialization
  • indicate with double line from superclass to
    circle 
  •  partial specialization
  • entity does not have to belong to any subclass
  • indicate with single line Fig 4.1 
  • Disjoint, total Overlapping, total
  • Disjoint, partial Overlapping, partial
  •  

10
  Constraints contd
  • insertion and deletion rules
  • If delete from superclass, delete from subclass
  • If insert into superclass, inserted into all
    predicate or attribute define subclasses it
    satisfies
  • If insert into total specialization, must be
    inserted into at least one subclass

11
Specialization/Generalization Lattice
  • a class can be a subclass in more then one
    class/subclass relationship
  • an entity may exist in several leaf nodes
  • multiple inheritance Fig 4.6
  • Engineer is one distinct entity at the instance
    level, not 2 distinct entities  
  • Can have disjoint total, disjoint partial,
    overlapping total, overlapping partial Fig 4.7

12
(No Transcript)
13
UML notation
  • Aggregation relationship between object and
    component parts (has-a relationship)
  • Diamond indicates whole vs. part
  • Subclasses
  • specialization/generalization
  • blank triangle is disjoint, filled triangle is
    overlapping (Fig 4.10)

14
UML Notation
  • Section 4.6 discusses UML conceptual schema
  • Objects are classes
  • box contains name, attributes method names
  • Can specify domain of attribute by using
  • Composite attribute modeled as structured domain
  • Multivalued attribute modeled as separate class
  • Weak entity qualified association
  • placed in box attached to owner class

15
UML Contd
  • Relationship types are associations (lines)
  • Relationship instances are links
  • (min, max) notation used - opposite to EER
  • indicates no limit
  • Box/dashed line for relationship (link)
    attributes (Fig 4.11)
  • Aggregation relationship between object and
    component parts (has-a relationship)
  • Diamond indicates whole vs. part

16
UML Contd
  • Subclasses
  • specialization/generalization
  • blank triangle is disjoint, filled triangle is
    overlapping (Fig 4.12)
Write a Comment
User Comments (0)
About PowerShow.com