1 Announcements Research Paper due Friday November 19 For Wednesday read 8.1-8.4.

Slides:



Advertisements
Similar presentations
Chapter 2: Entity-Relationship Model
Advertisements

Chapter 2: Entity-Relationship Model
©Silberschatz, Korth and Sudarshan8.1Database System Concepts Chapter 8: Object-Oriented Databases Need for Complex Data Types The Object-Oriented Data.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 14 (Web): Object-Oriented Data Modeling
1 Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
Chapter 2: Entity-Relationship Model (Continued)
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra,
1 Announcements Research Paper due Monday November 22.
Databases Illuminated Chapter 7 The Object-Oriented Model.
Chapter 14: Object-Oriented Data Modeling
Unified Modeling Language
Chapter 41 Enhanced Entity-Relationship and Object Modeling.
Enhanced Entity-Relationship Model (EER) 1. Enhanced-ER (EER) Model Concepts Includes all modeling concepts of basic ER Additional concepts: subclasses/superclasses,
Chapter 14: Object-Oriented Data Modeling
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.
Entities and Attributes
DBMS Lecture 9  Object Database Management Group –12 Rules for an OODBMS –Components of the ODMG standard  OODBMS Object Model Schema  OO Data Model.
Databases Illuminated Chapter 8 The Enhanced Entity-Relationship Model and the Object-Relational Model.
Database Management System Prepared by Dr. Ahmed El-Ragal Reviewed & Presented By Mr. Mahmoud Rafeek Alfarra College Of Science & Technology Khan younis.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
CHAPTER 13 (ONLINE): OBJECT-ORIENTED DATA MODELING © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
1 © Prentice Hall, 2002 Chapter 14: Object-Oriented Data Modeling Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
7-1 © Prentice Hall, 2004 Chapter 7: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
©Silberschatz, Korth and Sudarshan2.1Database System Concepts UML UML: Unified Modeling Language UML has many components to graphically model different.
7-1 © Prentice Hall, 2007 Chapter 7: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 15: Object-Oriented Data Modeling Modern Database Management 9 h Edition Jeffrey A.
Unit 3 Conceptual Data Modeling. Key Concepts Conceptual data modeling process Classes and objects Attributes Identifiers, candidate keys, and primary.
7-1 © Prentice Hall, 2007 Week 5: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Databases : Data Modeling 2007, Fall Pusan National University Ki-Joune Li.
Unit 1 INTRODUCTION TO MODELING AND CLASS MODEL Ref : L7-UML.PDF.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 13 (Online): Object-Oriented Data Modeling Modern Database Management 10 th Edition.
Unified Modeling Language © 2002 by Dietrich and Urban1 ADVANCED DATABASE CONCEPTS Unified Modeling Language Susan D. Urban and Suzanne W. Dietrich Department.
CSC271 Database Systems Lecture # 25. Summary: Previous Lecture  Structural constraints  Multiplicity  Cardinality  Participation  Connection traps.
Object-Oriented Data Modeling
Databases Illuminated
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
ITEC 3220A Using and Designing Database Systems Instructor: Gordon Turpin Course Website: Office: CSEB3020.
Enhanced Entity-Relationship (EER) Modeling. Slide 4- 2 Chapter Outline EER stands for Enhanced ER or Extended ER EER Model Concepts Includes all modeling.
ICOM 5016 – Introduction to Database Systems Lecture 5 Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
Chapter 4 Extended Entity-Relationship (EER)Model Incorporates Set-subset Relationships Incorporates Generalization Hierarchies Constraints: Coverage Constraints:
Chapter 4 Basic Object-Oriented Concepts. Chapter 4 Objectives Class vs. Object Attributes of a class Object relationships Class Methods (Operations)
The ODMG Standard for Object Databases
CST203-2 Database Management Systems Lecture 4. Student entity NIDFNameLNameRegNoExamIdBirthdate.
Slide 4-1 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Revised by IB & SAM, Fasilkom UI, 2005 Exercise 1. a property or description.
© Shamkant B. Navathe CC Enhanced Entity-Relationship Copyright © 2004 Ramez Elmasri and Shamkant Navathe.
CS157A Lecture 4 ER Model 2 Prof. Sin-Min Lee Department of Computer Science San Jose State University.
Object Modeling THETOPPERSWAY.COM. Object Modelling Technique(OMT)  Building a model of an application domain and then adding implementation.
Basic ER modeling was adequate for simpler databases, but in the 1980’s more demanding databases required more extensive modeling requirements. Some such.
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.
1 ODB Design Handling Inheritance in ODL M. Akhtar Ali School of Informatics.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Module 8: Entity-Relationship.
Enhanced Entity-Relationship and UML Modeling. 2.
Chapter 2: Entity-Relationship Model
Entity Relationship (E-R) Model
Data Modeling Using the Entity- Relationship (ER) Model
Object-Oriented Modeling
Enhanced Entity-Relationship and Object Modeling Objectives
DATA REQIREMENT ANALYSIS
Entity-Relationship Model
Chapter 7: Entity-Relationship Model
Chapter 2: Entity-Relationship Model
Object Oriented Analysis and Design
Lec 3: Object-Oriented Data Modeling
Software Engineering Lecture #11.
Module 8 – Database Design Using the E-R Model
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
ITEC 3220A Using and Designing Database Systems
Database EER.
Chapter 6b: Database Design Using the E-R Model
Presentation transcript:

1 Announcements Research Paper due Friday November 19 For Wednesday read

2 The Object-Oriented Model Lecture 21

3 Why OO? Traditional relational model does not represent complex data and relationships well Need additional support for advanced applications –geographic information system, engineering design, etc. OO paradigm widely used for programming –data structures and operations of primary importance OO database provides persistent objects to correspond to temporary objects in programs Examples of OODBMS: Objectivity, GemStone, ObjectStore, Versant

4 OO Data Concepts An object has a state and a unique identifier –Similar to an entity, but has methods in addition to attributes (data elements) –Objects are encapsulated – data and methods form a unit with restricted access –Only object’s methods have access to its data –Object’s interface is visible to outside world A literal has a state but no identifier – can be atomic (values of built-in types) or structured

5 Example objects Jack Spratt Main Street, NY, NY getName() setName() Mary Jones Pine Street, Miami, FL getName() setName() Object firstPerson Object secondPerson

6 Classes A class is a set of objects having the same structure- same variables with the same datatypes, same methods, and same relationships –Roughly equivalent to an entity type –Includes data elements, operations and relationships –Datatypes can be predefined atomic types (integer, real, char, boolean), more complex types, or user-defined types Set of objects in a class is called the extent (like extension) –Class extent is roughly equivalent to an entity set –Objects in the class (instances, object instances, objects) are similar to entity instances

7 Defining a Class Defined by listing components –Data members (attributes, instance variables) –Member methods (functions or procedures that belong to the class) –Relationships that the class participates in Simplified Example: class Person { attribute string name; attribute string address; attribute string phone; void setName(string newName); // method string getName( ); //method relationship Job hasjob; //relates to Job class }

8 Writing and Using Methods Method written in OO language-Java, C++, etc. Ex: void setName(string newName) { self.name = newName; } User’s program may have a Person object Person firstPerson = new Person( ); Invoke method using Person object firstPerson.setName(‘Jack Spratt’ ); firstPerson becomes “calling object”, referred to as self in method

9 Class Hierarchies Classes organized into class hierarchies –Superclasses (base classes and subclasses) –Each subclass has an isa relationship with its superclass Subclasses inherit the data members and methods of their superclasses, and may have additional data members and methods of their own

10 Hierarchy diagram –Represent classes as rectangles –Connect subclasses to isa triangle, and connect triangle to superclass Person isa FacultyStudent UndergraduateGraduate isa

11 Unified Modeling Language (UML) Class diagrams –Rectangles for classes- 3 sections: class name attributes methods

12 UML Class Diagrams Relationships – 2 types –Association for uni- or bi-directional relationships between distinct classes (Ex Student – Faculty relationship) represented by directed line connecting rectangles, with optional name Rolenames can appear on line, but placement is opposite that in E-R (Ex. Student hasAdvisor role appears next to Faculty)

13 UML Class Diagrams Relationships – 2 types –Association Any descriptive attributes of association in box connected to association line by dotted line (Ex grade in Student - ClassSection)

14 UML Class Diagrams Aggregation –Connects parts to a whole, described by “is part of” (Ex ClassSection to Course) –Represented by line with diamond on side of aggregate –Can be given a name, or interpreted as “has” –Reflexive association or reflexive aggregation shown by line back to same class, with rolenames (Ex Course)

15 UML Diagrams Multiplicity indicators show cardinality & participation –min..max, but place opposite to placement in E-R; no ( ) –Use * for M; use 1 for 1..1

16 UML Diagrams Generalization hierarchies –Lines connect subclasses to superclass, with triangle at end, pointing to superclass –Filled triangle for overlapping subclasses –Can write constraints in curly braces on line near triangle (Ex. {overlapping, optional} near Person class rectangle)

17 UML Diagrams Generalization hierarchies –Open triangle (outline only) for disjoint subclasses Weak entity represented by rectangle with line to strong entity, with discriminator written in box below strong entity (Ex. date is discriminator for Evaluation)