Docsity

DBMS- Object Orientted Data Modeling, Study notes of Database Management Systems (DBMS)

Partial preview of the text

Download DBMS- Object Orientted Data Modeling and more Study notes Database Management Systems (DBMS) in PDF only on Docsity!

1

Object-Oriented Data Object-Oriented Data

Modeling Modeling

What is Object Oriented Data Modeling? What is Object Oriented Data Modeling?

 Centers around objects and classes

 Involves inheritance

 Encapsulates both data and behavior

 Benefits of Object-Oriented Modeling

  • (^) Ability to tackle challenging problems
  • (^) Improved communication between users, analysts, designer, and programmers
  • (^) Increased consistency in analysis and design
  • (^) Explicit representation of commonality among system components
  • (^) System robustness
  • (^) Reusability of analysis, design, and programming results

OO vs. EER Data Modeling OO vs. EER Data Modeling

Object Oriented EER

Class Entity type Object Entity instance Association Relationship Inheritance of attributes Inheritance of attributes Inheritance of behavior No representation of behavior Object-oriented modeling is frequently accomplished using the Unified Modeling Language (UML) Unified Modeling Language (UML)

Object Object

An entity that has a well-defined role in the

application domain, as well as state,

behavior, and identity

  • (^) Tangible: person, place or thing
  • (^) Concept or Event: department, performance, marriage, registration
  • (^) Artifact of the Design Process: user interface, controller, scheduler Objects Objects exhibit BEHAVIOR as well as attributes  Different from entitiesentities

UML class and object diagrams (a) Class diagram showing two classes Class diagram Class diagram shows the static structure of an object-oriented model: object classes, internal structure, relationships.

(b) Object diagram with two instances Object diagram Object diagram shows instances that are compatible with a given class diagram.

Associations Associations

AssociationAssociation :

  • (^) Relationship among object classes 

Association RoleAssociation Role :

  • (^) Role of an object in an association
  • (^) The end of an association where it connects to a class 

MultiplicityMultiplicity :

  • (^) How many objects participate in an association. Lower-bound..Upper bound (cardinality).

Association relationships of different degrees Lower-bound – upper-bound Represented as: 0..1, 0.., 1..1, 1.. Similar to minimum/maximum cardinality rules in EER

(b) Customer order example

Object diagram for customer order example

Association class and link object (a) Class diagram showing association classes Binary association class with behavior Unary association with only attributes and no behavior

(b) Object diagram showing link objects Association class instances

Derived attribute, association, and role Derived attributes an relationships shown with // in front of the name Derived relationship (from Registers-for and Scheduled-for) Constraint expression for derived attribute Derived attribute

Generalization/Specialization Generalization/Specialization

 (^) Subclass, superclass

  • (^) similar to subtype/supertype in EER  (^) Common attributes, relationships, AND operations  (^) Disjoint vs. Overlapping  (^) Complete (total specialization) vs. incomplete (partial specialization)  (^) Abstract Class: no direct instances  (^) Concrete Class: direct instances