um l modeling
TRANSCRIPT
![Page 1: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/1.jpg)
Jennifer Widom
UMLUML Data Modeling
![Page 2: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/2.jpg)
Jennifer Widom
UML ModelingData ModelingHow to represent data for application Relational model with design principles XML Database design model
Not implemented by system Translated into model of DBMS
![Page 3: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/3.jpg)
Jennifer Widom
UML ModelingHigher-Level Database Design Models
Entity-Relationship Model (E/R) Unified Modeling Language (UML)
Data modeling subset Both are graphical Both can be translated to relations automatically
Or semi-automatically
![Page 4: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/4.jpg)
Jennifer Widom
UML ModelingUML Data Modeling: 5 concepts
(1) Classes(2) Associations(3) Association Classes(4) Subclasses(5) Composition & Aggregation
![Page 5: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/5.jpg)
Jennifer Widom
UML ModelingUML Data Modeling: ClassesName, attributes, methods For data modeling: add “pk”, drop methods
![Page 6: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/6.jpg)
Jennifer Widom
UML ModelingUML Data Modeling: 5 concepts
(1) Classes(2) Associations(3) Association Classes(4) Subclasses(5) Composition & Aggregation
![Page 7: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/7.jpg)
Jennifer Widom
UML ModelingUML Data Modeling: AssociationsRelationships between objects of two classes
![Page 8: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/8.jpg)
Jennifer Widom
UML ModelingMultiplicity of AssociationsRelationships between objects of two classes Each object of class C1 is related to at least m and at most n
objects of class C2
![Page 9: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/9.jpg)
Jennifer Widom
UML ModelingMultiplicity of Associations: Example Students must apply somewhere and may not apply to more
than 5 colleges. No college takes more than 20,000 applications.
![Page 10: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/10.jpg)
Jennifer Widom
UML ModelingMultiplicity of Associations:Types of Relationships One-to-One Many-to-One Many-to-Many Complete
![Page 11: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/11.jpg)
Jennifer Widom
UML ModelingUML Data Modeling: 5 concepts
(1) Classes(2) Associations(3) Association Classes(4) Subclasses(5) Composition & Aggregation
![Page 12: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/12.jpg)
Jennifer Widom
UML ModelingUML Data Modeling: Association ClassesRelationships between objects of two classes, with attributes on relationships
![Page 13: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/13.jpg)
Jennifer Widom
UML ModelingEliminating Association ClassesUnnecessary if 0..1 or 1..1 multiplicity
![Page 14: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/14.jpg)
Jennifer Widom
UML ModelingSelf-AssociationsAssociations between a class and itself
![Page 15: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/15.jpg)
Jennifer Widom
UML ModelingSelf-AssociationsAssociations between a class and itself
![Page 16: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/16.jpg)
Jennifer Widom
UML ModelingUML Data Modeling: 5 concepts
(1) Classes(2) Associations(3) Association Classes(4) Subclasses(5) Composition & Aggregation
![Page 17: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/17.jpg)
Jennifer Widom
UML ModelingUML Data Modeling: Subclasses
![Page 18: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/18.jpg)
Jennifer Widom
UML ModelingSubclass Terminology & Properties Superclass = Generalization Subclass = Specialization Incomplete (Partial) vs. Complete Disjoint (Exclusive) vs. Overlapping
![Page 19: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/19.jpg)
Jennifer Widom
UML ModelingUML Data Modeling: 5 concepts
(1) Classes(2) Associations(3) Association Classes(4) Subclasses(5) Composition & Aggregation
![Page 20: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/20.jpg)
Jennifer Widom
UML ModelingUML Data Modeling:Composition & AggregationObjects of one class belong to objects of another class
![Page 21: Um l Modeling](https://reader035.vdocuments.site/reader035/viewer/2022070523/577ccd1c1a28ab9e788b883f/html5/thumbnails/21.jpg)
Jennifer Widom
UML ModelingHigher-Level Database Design
Unified Modeling Language (UML)Data modeling subset
Graphical 5 concepts
(1) Classes(2) Associations(3) Association Classes(4) Subclasses(5) Composition & Aggregation
Can be translated to relations automatically