1 Unified Modeling Language. 2 UML  UML is designed to model software, but has been adapted as a database modeling language. – No multiway relationships.

Slides:



Advertisements
Similar presentations
3/25/2017.
Advertisements

1 Design Process - Where are we? Conceptual Design Conceptual Schema (ER Model) Logical Design Logical Schema (Relational Model) Step 1: ER-to-Relational.
Relational Database Design Via ER Modelling
Lab 3 Alternative ER Modelling Pearson Education © 2009.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Chapter 4 Notes. Entity-Relationship Model E/R Diagrams Weak Entity Sets Converting E/R Diagrams to Relations.
1 Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – EER Model –21th June.
What is UML? A modeling language standardized by the OMG (Object Management Group), and widely used in OO analysis and design A modeling language is a.
1 Unified Modeling Language Classes Associations Aggregations.
1 Other High-Level Design Languages Unified Modeling Language Object Description Language.
Database Systems: Design, Implementation, & Management, 5 th Edition, Rob & Coronel 1 Data Models: Degrees of Data Abstraction l Modified ANSI/SPARC Framework.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 9 Relational Database Design by ER- and EER-to- Relational Mapping.
Database Systems Chapter 7 ITM 354. Chapter Outline ER-to-Relational Schema Mapping Algorithm –Step 1: Mapping of Regular Entity Types –Step 2: Mapping.
Chapter 4 Entity Relationship (E-R) Modeling
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 9 Relational Database Design by ER- and EER-to- Relational Mapping.
Summary of Mapping constructs and constraints
Databases Illuminated Chapter 7 The Object-Oriented Model.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity-Relationship Model (Chapter 3)
Jennifer Widom UML UML Data Modeling. Jennifer Widom UML Modeling Data Modeling How to represent data for application  Relational model  with design.
Ch 6: ER to Relational Mapping
Dr. Bernard Chen Ph.D. University of Central Arkansas
Chapter 91 ER & EER to Relational Mapping. Chapter 92 ER to Relational Mapping Step 1: For each regular entity type E in the ER schema, create a relation.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 9 Relational Database Design by ER- and EER-to-Relational Mapping.
ER- and EER-to-Relational Mapping
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 7- 1.
UML Unified Modeling Language. What is UML? Unified Modeling Language (UML) is a standardized, general-purpose modeling language in the field of software.
Databases Illuminated Chapter 8 The Enhanced Entity-Relationship Model and the Object-Relational Model.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Conceptual Data Modeling. What Is a Conceptual Data Model? A detailed model that shows the overall structure of organizational data A detailed model.
EXAMPLE. Subclasses and Superclasses Entity type may have sub-grouping that need to be represented explicitly. –Example: Employee may grouped into.
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
Entity-Relationship Model
Entity Relationship Diagram (2)
Software School of Hunan University Database Systems Design Part III : Mapping ER Diagram to Relational Schema.
DatabaseIM ISU1 Chapter 7 ER- and EER-to-Relational Mapping Fundamentals of Database Systems.
ER/EER to Relational Mapping Chapter 9. STEP 1 ENTITY TYPE E (non weak) -> NEW RELATION T RELATION T: – includes all simple attributes (non composite,
CS 157B Database Systems Dr. T Y Lin. Updates 1.Red color denotes updated data (ppt) 2.Class participation will be part of “extra” credits to to “quiz.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Chapter 4 Extended Entity-Relationship (EER)Model Incorporates Set-subset Relationships Incorporates Generalization Hierarchies Constraints: Coverage Constraints:
The Entity-Relationship Model CIS 4301 Lecture Notes 1/12/2006.
Basic ER modeling was adequate for simpler databases, but in the 1980’s more demanding databases required more extensive modeling requirements. Some such.
Introduction to Database Systems
Relational Database Design by ER- and EER-to-Relational Mapping
Relational Database Design by ER- and EER-to-Relational Mapping
Chapter 7 Relational Database Design by ER- and EERR-to-Relational Mapping.
High-level Database Models Prof. Yin-Fu Huang CSIE, NYUST Chapter 4.
A short revision on entity- relationship modelling.
A short review on entity- relationship modelling.
1 Database Design: DBS CB, 2 nd Edition Logical Database Model: Entity Relationship Model & Object Description Language & Unified Modeling Language Ch.
Databases (CS507) CHAPTER 8
1. 2 Standards group: ODMG = Object Data Management Group. ODL = Object Description Language, like CREATE TABLE part of SQL. OQL = Object Query Language,
Relational Database Design by ER- and ERR-to-Relational Mapping
Relational Database Design by ER- and EER-to- Relational Mapping
EER Model – Chapter
Entity-Relationship Model
Entity-Relationship Modelling
ER- and EER-to-Relational
INF385T: Information Modeling — Class 11 Relational Database Design from ER Models Presented November 2 Karen Wickett,
9/5/2018.
UML UML Data Modeling.
UML UML to Relations.
CPSC-310 Database Systems
Chapter 8: Mapping a Conceptual Design into a Logical Design
UML UML to Relations.
Entity-Relationship Modelling
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
Weak Entity Sets An entity set that does not have a primary key is referred to as a weak entity set. The existence of a weak entity set depends on the.
Relational Database Design by ER- and EER-to- Relational Mapping
CS4433 Database Systems E-R Model.
Mary Norwood & Oberon Ilano
Presentation transcript:

1 Unified Modeling Language

2 UML  UML is designed to model software, but has been adapted as a database modeling language. – No multiway relationships as in E/R. – Allows attributes on binary relationships, like E/R. – Has a graphical notation, like E/R.

3 Classes  Sets of objects, with attributes (state ) and methods (behavior ).  Attributes have types.  PK indicates an attribute in the primary key (optional) of the object.  Methods have declarations: arguments (if any) and return type.

4 Example: Movies Class Movies PK title PK year length genre Attributes

5 Associations  Binary relationships between classes.  Represented by named lines (no diamonds as in E/R).  Multiplicity at each end.  m..n means between m and n of these associate with one on the other end.  * = “infinity”; e.g. 1..* means “at least one.”

6 Example: Association StudiosMovies 0..1 Owns 0..*

7 Comparison With E/R Multiplicities E/R UML 0..* 0..* * 1..1

8 Association Classes  Attributes on associations are permitted.  Called an association class.  Analogous to attributes on relationships in E/R.

9 Example: Association Class BarsBeers * Sells price: float

10 Subclasses  Like E/R, but subclass points to superclass with a line ending in a triangle.  The subclasses of a class can be:  Complete (every object is in at least one subclass) or partial.  Disjoint (object in at most one subclass) or overlapping.

11 Example: Subclasses Beers name manf Ales color

12 Conversion to Relations  We can use any of the three strategies outlined for E/R to convert a class and its subclasses to relations. 1.E/R-style: each subclass’ relation stores only its own attributes, plus key. 2.OO-style: relations store attributes of subclass and all superclasses. 3.Nulls: One relation, with NULL’s as needed.

13 Aggregations  Relationships with implication that the objects on one side are “owned by” or are part of objects on the other side.  Represented by a diamond at the end of the connecting line, at the “owner” side.  Implication that in a relational schema, owned objects are part of owner tuples.

14 Example: Aggregation Beers name manf Awards title year 0..1 Won 0..*

15 Compositions  Like aggregations, but with the implication that every object is definitely owned by one object on the other side.  Represented by solid diamond at owner.  Often used for subobjects or structured attributes.

16 Example: Composition Beers name manf Awards title year 1..1 Won 0..*

17 Conversion to Relations  We could store the awards of a beer with the beer tuple.  Requires an object-relational or nested- relation model for tables, since there is no limit to the number of awards a beer can win.

18 Example: Composition Bars name phone Addrs street city zip 1..1 Won 0..1

19 Conversion to Relations  Since a bar has at most one address, it is quite feasible to add the street, city, and zip attributes of Addrs to the Bars relation.