1 / 21

UML

UML. UML Data Modeling. UML Modeling. Data Modeling How to represent data for application Relational model  with design principles XML Database design model Not implemented by system Translated into model of DBMS. UML Modeling. Higher-Level Database Design Models

indra
Download Presentation

UML

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UML UML Data Modeling

  2. UML Modeling Data Modeling How to represent data for application • Relational model  with design principles • XML • Database design model • Not implemented by system • Translated into model of DBMS

  3. UML Modeling Higher-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

  4. UML Modeling UML Data Modeling: 5 concepts • Classes • Associations • Association Classes • Subclasses • Composition & Aggregation

  5. UML Modeling UML Data Modeling: Classes Name, attributes, methods For data modeling: add “pk”, drop methods

  6. UML Modeling UML Data Modeling: 5 concepts • Classes • Associations • Association Classes • Subclasses • Composition & Aggregation

  7. UML Modeling UML Data Modeling: Associations Relationships between objects of two classes

  8. UML Modeling Multiplicity of Associations Relationships between objects of two classes Each object of class C1 is related to at least m and at most n objects of class C2

  9. UML Modeling Multiplicity of Associations: Example Students must apply somewhere and may not apply to more than 5 colleges. No college takes more than 20,000 applications.

  10. UML Modeling Multiplicity of Associations: Types of Relationships • One-to-One • Many-to-One • Many-to-Many • Complete

  11. UML Modeling UML Data Modeling: 5 concepts • Classes • Associations • Association Classes • Subclasses • Composition & Aggregation

  12. UML Modeling UML Data Modeling: Association Classes Relationships between objects of two classes, with attributes on relationships

  13. UML Modeling Eliminating Association Classes Unnecessary if 0..1 or 1..1 multiplicity

  14. UML Modeling Self-Associations Associations between a class and itself

  15. UML Modeling Self-Associations Associations between a class and itself

  16. UML Modeling UML Data Modeling: 5 concepts • Classes • Associations • Association Classes • Subclasses • Composition & Aggregation

  17. UML Modeling UML Data Modeling: Subclasses

  18. UML Modeling Subclass Terminology & Properties • Superclass= Generalization • Subclass = Specialization • Incomplete (Partial) vs. Complete • Disjoint (Exclusive) vs. Overlapping

  19. UML Modeling UML Data Modeling: 5 concepts • Classes • Associations • Association Classes • Subclasses • Composition & Aggregation

  20. UML Modeling UML Data Modeling: Composition & Aggregation Objects of one class belong to objects of another class

  21. UML Modeling Higher-Level Database Design • Unified Modeling Language (UML) Data modeling subset • Graphical • 5 concepts • Classes • Associations • Association Classes • Subclasses • Composition & Aggregation • Can be translated to relations automatically

More Related