1. 2 Standards group: ODMG = Object Data Management Group. ODL = Object Description Language, like CREATE TABLE part of SQL. OQL = Object Query Language,

Slides:



Advertisements
Similar presentations
Relational Database Design Via ER Modelling
Advertisements

1 Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – EER Model –21th June.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
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.
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
1 Announcements Research Paper due Monday November 22.
Databases Illuminated Chapter 7 The Object-Oriented Model.
Jennifer Widom UML UML Data Modeling. Jennifer Widom UML Modeling Data Modeling How to represent data for application  Relational model  with design.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
UML Unified Modeling Language. What is UML? Unified Modeling Language (UML) is a standardized, general-purpose modeling language in the field of software.
Systems Analysis and Design in a Changing World, Tuesday, Feb 27
1 Announcements Research Paper due Friday November 19 For Wednesday read
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Object Definition Language
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.
SE305 Database System Technology 23/10/2014 Quiz-2.
Entity Relationship Diagram (2)
Object Oriented Analysis: Associations. 2 Object Oriented Modeling BUAD/American University Class Relationships u Classes have relationships between each.
DatabaseIM ISU1 Chapter 7 ER- and EER-to-Relational Mapping Fundamentals of Database Systems.
© D. Wong Security and User Authorization in SQL 8.7 pp. 410  Authorization ID = user name  Special authorization ID: PUBLIC  Privileges for:
Class Diagram Lecture # 1. Class diagram A Class Diagram is a diagram describing the structure of a system shows the system's classes Attributes operations.
Relational Database Design by ER- and EER-to-Relational Mapping
1 Unified Modeling Language. 2 UML  UML is designed to model software, but has been adapted as a database modeling language. – No multiway relationships.
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 Design of databases. E/R model (entity-relationship model) Relational model (tables) UML (unified modeling language) Database programming. SQL, Relational.
Data Modeling Using the Entity- Relationship (ER) Model
COP Introduction to Database Structures
ERwin.
Relational Database Design by ER- and ERR-to-Relational Mapping
Relational Database Design by ER- and EER-to- Relational Mapping
Data Modeling Using the Entity- Relationship (ER) Model
Database Management Systems
Entity- Relationship (ER) Model
Relational Database Design by ER- and EER-to- Relational Mapping
Business System Development
EER Model – Chapter
Entity-Relationship Model
Chapter 7: Entity-Relationship Model
Entity-Relationship Modelling
ER- and EER-to-Relational
9/5/2018.
Lecture3: Data Modeling Using the Entity-Relationship Model.
Chapter 12 Outline Overview of Object Database Concepts
UML UML Data Modeling.
UML UML to Relations.
CPSC-310 Database Systems
11/15/2018.
Lec 3: Object-Oriented Data Modeling
Software Engineering Lecture #11.
Module 8 – Database Design Using the E-R Model
Chapter 8: Mapping a Conceptual Design into a Logical Design
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
UML UML to Relations.
Entity-Relationship Modelling
Object Definition Language
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
Relational Database Design by ER- and EERR-to-Relational Mapping
4/11/2019.
Chapter 15: Object-Oriented Database Development
Relational Database Design by ER- and EER-to-Relational Mapping
CSC Database Management Systems
7/19/2019.
Mary Norwood & Oberon Ilano
Chapter 6b: Database Design Using the E-R Model
Presentation transcript:

1

2 Standards group: ODMG = Object Data Management Group. ODL = Object Description Language, like CREATE TABLE part of SQL. OQL = Object Query Language, tries to imitate SQL in an OO framework. UML: unified modeling language

3 UML is designed to model software, but has been adapted as a database modeling language. Midway between E/R and ODL. No multiway relationships as in E/R. But allows attributes on binary relationships, which ODL doesn’t. Has a graphical notation, unlike ODL.

4 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.

5 Example: Cars Class Car PK Name: string Mark: string setName(n) setMark(a) getName() : string getMMark() : string Class Name Attributes Methods

6 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.”

7 Example: Association GarageCar Serves 0..*

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

9 Attributes on associations are permitted. Called an association class. Analogous to attributes on relationships in E/R.

10 Example: Association Class GarageCar * Serves price: float service: string

11 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.

12 Example: Subclasses Car name: string mark: string details color: string

13 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.

14 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.

15 Example: Aggregation Car name: string mark: string Award title: string year: int 0..1 Won 0..*

16 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.

17 Example: Composition Car name: string mark: string Award title: string year: int 1..1 Won 0..*

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

19 Example: Composition Garage name: string phone: int Addr street:string city: string 1..1 Won 0..1

20 Since a car has at most one address, it is quite feasible to add the street and city attributes of Addr to the Cars relation. In object-relational databases, Addr can be one attribute of Cars, with structure.

21 Create a new model diagram 1.Click the File tab. 2.Click New, click Software and Database, and then double-click Database Model Diagram.

22 1.On the Database tab, in the Manage group, click Display Options. 2.In the Database Document Options dialog box, select the symbol set that you want to use and other table and relationship options, and then click OK NOTE: refer to Lecture 5 UML supplements…doc for more about VISIO

23 You can now design your own database. Go ahead with the implementation of this database Cars(name(20), mark(20)) Garage( name(20), addr(40), license(10)) Customers(name(40), addr(40), phone(9)) Drives(customer(40), car(10)) Serves (garage(20), car(20), service(10), price()) Frequents( customer(40), garage(20))