《现代数据库管理(英文版)》课件—14
合集下载
相关主题
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
composition Specify types of business rules in a class diagram
2
What Is Object-Oriented Data Modeling?
Centers around objects and classes Involves inheritance Encapsulates both data and behavior Benefits of Object-Oriented Modeling
Object-oriented modeling is typically represented using the Unified Modeling Language (UML)
5
Classes and Objects
Class: An entity that has a well-defined role in the application domain, as well as state, behavior, and identity
Object: a particular instance of a class
Objects exhibit BEHAVIOR as well as attributes Different from entities
6
State, Behavior, Identity
State: attribute types and values Behavior: how an object acts and reacts
cycle State advantages of object-oriented modeling Compare object-oriented model with E-R and EER
models Model real-world application using UML class diagram Provide UML snapshot of a system state Recognize when to use generalization, aggregation, and
programming Explicit representation of commonality among system
components System robustness Reusability of analysis, design, and programming results
8
Figure 13-2 UML class and object diagram (cont.) b) Object diagram with two instances
Object diagram shows instances that are compatible with a given class diagram
7
Figure 13-2 UML class and object diagram a) Class diagram showing two classes
Class diagram shows the static structure of an objectoriented model: object classes, internal structure, relationships
Ability to tackle challenging problems Improved communication between users, analysts,
designers, and programmers Increased consistency in analysis, design, and
Behavior is expressed through operations that can be performed on it
Identity: every object has a unique identity, even if all of its attribute values are the same
3
Figure 13-1 Phases of object-oriented systems development cycle
Progressive and iterative development process
4
OO vs. EER Data Modeling
Object Oriented
Tangible: person, place or thing Concept or Event: department, performance,
marriage, registration Artifact of the Design Process: user interface,
controller, scheduler
Class Object Association Inheritance of
attributes
Inheritance of behavior
EER
Entity type Entity instance Relationship Inheritance of
attributes
No representation of behavior
9来自百度文库
Operation
A function or service that is provided by all instances of a class
Chapter 13 (Online): Object-Oriented Data
Modeling
Modern Database Management 10th Edition
1
Objectives
Define terms Describe phases of object-oriented development life
2
What Is Object-Oriented Data Modeling?
Centers around objects and classes Involves inheritance Encapsulates both data and behavior Benefits of Object-Oriented Modeling
Object-oriented modeling is typically represented using the Unified Modeling Language (UML)
5
Classes and Objects
Class: An entity that has a well-defined role in the application domain, as well as state, behavior, and identity
Object: a particular instance of a class
Objects exhibit BEHAVIOR as well as attributes Different from entities
6
State, Behavior, Identity
State: attribute types and values Behavior: how an object acts and reacts
cycle State advantages of object-oriented modeling Compare object-oriented model with E-R and EER
models Model real-world application using UML class diagram Provide UML snapshot of a system state Recognize when to use generalization, aggregation, and
programming Explicit representation of commonality among system
components System robustness Reusability of analysis, design, and programming results
8
Figure 13-2 UML class and object diagram (cont.) b) Object diagram with two instances
Object diagram shows instances that are compatible with a given class diagram
7
Figure 13-2 UML class and object diagram a) Class diagram showing two classes
Class diagram shows the static structure of an objectoriented model: object classes, internal structure, relationships
Ability to tackle challenging problems Improved communication between users, analysts,
designers, and programmers Increased consistency in analysis, design, and
Behavior is expressed through operations that can be performed on it
Identity: every object has a unique identity, even if all of its attribute values are the same
3
Figure 13-1 Phases of object-oriented systems development cycle
Progressive and iterative development process
4
OO vs. EER Data Modeling
Object Oriented
Tangible: person, place or thing Concept or Event: department, performance,
marriage, registration Artifact of the Design Process: user interface,
controller, scheduler
Class Object Association Inheritance of
attributes
Inheritance of behavior
EER
Entity type Entity instance Relationship Inheritance of
attributes
No representation of behavior
9来自百度文库
Operation
A function or service that is provided by all instances of a class
Chapter 13 (Online): Object-Oriented Data
Modeling
Modern Database Management 10th Edition
1
Objectives
Define terms Describe phases of object-oriented development life