ch02
ch02
Chapter 2
Data Models
4
Data Modeling and Data Models
6
Data Model Basic Building Blocks
• Entity: anything about which data are to be collected and
stored
• Attribute: a characteristic of an entity
• Relationship: describes an association among entities
– One-to-many (1:M or 1..*) relationship
– Many-to-many (M:N or M:M or *..*) relationship
– One-to-one (1:1 or 1..1) relationship
• Constraint: a restriction placed on the data.
Constraints are normally expressed in form of rules
Constraints are important because they help to ensure data
integrity
7
Business Rules
• Descriptions of policies, procedures, or principles within a
specific organization
– Apply to any organization that stores and uses data to
generate information
• Business rules derived from a description of operations help to
create/enforce actions within an organization’s environment
– Must be written and updated
– Used to define entities ,relationships, and constraints
– Must be easy to understand and widely disseminated
• Describe characteristics of data as viewed by the company
• Examples of business rules.
8
Discovering Business Rules
• Sources of business rules:
– Company managers
– Policy makers
– Department managers
– Written documentation
• Procedures
• Standards
• Operations manuals
– Direct interviews with end users
different perception.
26
The Object-Oriented (OO) Model
(cont’d.)
• Attributes describe the properties of an object
• Objects that share similar characteristics are grouped in
classes
• Classes are organized in a class hierarchy
• Inheritance: object inherits methods and attributes of
parent class
• UML is a language based on OO concepts that describe
diagrams and symbols used to graphically model a system.
• UML class diagram: is used to represent data and their
relationships within UML object-oriented system’s modeling
language