Docsity

Object Oriented Database Management - Database Management - Lecture Slides, Slides of Database Management Systems (DBMS)

Partial preview of the text

Download Object Oriented Database Management - Database Management - Lecture Slides and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

Object Oriented Database

Management

Docsity.com

Objectives

  • List several limitations in the relational database model.
  • Describe the object-oriented database concept.
  • Model data using such complex relationships as generalization and aggregation, and such concepts as inheritance and polymorphism.

Historically Speaking

  • For much of IS history the emphasis was on the programs, with the data structures and ultimately the data stored in them being a secondary consideration.
  • The IS environment is changing from this program-centric mentality into a more data- centric one.

Object Orientation

  • An alternative approach to information systems and IS development.
  • Began during the 1980s.
  • More data-centric.

What’s Missing in the Relational

Database Concept?

  • Does not directly provide support for generalization/specialization.
  • Does not directly provide support for aggregation.

What’s Missing in the Relational

Database Concept?

  • Does not have a system in which only a limited, controlled set of program segments is allowed to update particular data.
  • Does not directly support more complex data types such as:
    • graphic images
    • photo images
    • video clips
    • audio clips
    • long text documents
    • mathematical constructs such as matrices

More advantages of Object Oriented

Database Concept

  • Each object has an object identifier that is permanent and unique among all objects of all types in the system.
  • Some OODBMSs are implemented as pointer-based systems.
    • related objects are “connected” by their storage addresses.
  • OODBMSs are the most natural data storage vehicles when object-oriented programming languages, such as C++, Smalltalk, and Java, are in use.

Unified Modeling Language

  • Introduced in 1997 by the Object Management Group (OMG)
  • Has nine standard diagrams that describe:
    • the system’s data
    • the business processes
    • the intended results
    • the components of the program code
    • the hardware and software architectures.

Generalization

  • Also known as generalization/specialization
  • Is a relationship that recognizes that some kinds of entities can be subdivided into smaller, more specialized groups.

General Hardware Company ERD

  • General Hardware company E-R diagram.
  • General Hardware is a wholesaler.

General Hardware Company

Generalization Diagram

  • The upward pointing arrows indicate generalizations.
  • There are three kinds of products
    • TOOLs
    • LIGHT FIXTUREs
    • LUMBER
  • There are two kinds of tools
    • POWER TOOLs
    • NONPOWER TOOLs

Inheritance of Attributes

  • The PRODUCT class indicates that all products have three common attributes: Product Number, Product Name, and Unit Price.
  • All of the classes below PRODUCT inherit the attributes shown in PRODUCT.

Inheritance of Attributes

  • The attributes for NONPOWER TOOLs are - (from Product) - Product Number - Product Name - Unit Price - (from TOOL) - Weight - (from NON-POWER TOOL) - Years of Warranty

Inheritance of Attributes

  • The attributes for LIGHT FIXTUREs are - (from Product) - Product Number - Product Name - Unit Price - (from LIGHT FIXTURE) - Number of Bulbs - Watts per Bulb