Professional Documents
Culture Documents
Department of Computer Science and Engineering Arizona State University Tempe, AZ 85287-5406
OUTLINE
Enhanced Entity-Relationship model (EER). Generalization and Specialization Categories Summary of Constraints Captured.
Classes can be formed into superclass/subclass hierarchies using generalization and specialization.
The ISA relationship. Inheritance of attributes. Constraints on subclass membership.
INHERITANCE
An instance of a subclass is an instance of its superclass (also known as the ISA relationship).
A Celebrity ISA Person.
Due to the ISA relationship, an instance of a subclass inherits attributes from it superclass.
A Celebrity inherits ssn, name, phone, gender, and address from Person. A Model inherits birthDate from Celebrity.
10
11
ATTRIBUTE-DEFINED SPECIALIZATION
12
USER-DEFINED SPECIALIZATION
13
14
15
Deleting an entity from a superclass implies automatic deletion of the entity from all subclasses. Deleting an entity from a subclass does not imply deleting the entity from its superclass. However, attributed-defined constraints must not be violated. At the superclass level, changing the value of an attribute used for attribute-defined specialization requires appropriate changes in subclass membership.
Enhanced Entity Relationship Modeling 16 2002 by Dietrich and Urban
MULTIPLE INHERITANCE
In a specialization hierarchy, every subclass has only one superclass. In a specialization lattice, a subclass can have more than one superclass.
The subclass is referred to as a shared subclass. A specialization lattice demonstrates multiple inheritance. A shared subclass must satisfy the multiple inheritance intersection constraint, where each instance of the shared subclass is an instance of all of its superclasses.
17
MULTIPLE INHERITANCE
20
CONSTRAINTS ON CATEGORIZATION
Total categorization Every instance of a superclass must be an instance of the category. Partial categorization An instance of a superclass is not required to be an instance of the category.
C=A B
Enhanced Entity Relationship Modeling 21
F (D E)
2002 by Dietrich and Urban
22
23