Docsity

Object-Oriented Concept - Data Base Management System - Lecture Slides, Slides of Database Management Systems (DBMS)

Partial preview of the text

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

Object-Oriented

Database Management

System (ODBMS)

overview

Definition

Object-Oriented Concept

  • Object
  • Class & Encapsulation
  • Inheritance & Polymorphism

Advantages & Disadvantage

Example

Conclusion

What is an ODBMS? (cont.)

Database that stores data elements as objects. Uses object-oriented concepts. › Object - an instance of a data type

Who uses ODBMS?

  • Typical Applications for ODBMS
    • Computer-aided design (CAD)
    • Computer-aided software engineering (CASE)
    • Multimedia databases (video, image, game, etc.)
    • Office automation system (OIS)
    • Expert database system

Object

An entity contains

  1. Attributes- atomic or structured type
  2. Relationships- reference to an object or set of such objects
  3. Methods- behavior of the object

Variables

Methods

Student SID: double Name:String Major:String Schedule:String … getSID() getName() setName() …

Relationships

Object Structure (cont.)

Advantages

ODBMS RDBMS Unique identification of objects is done behind the scenes (invisible to user)

User has to worry about two tuples have the same primary key values to avoid error conditions Data model is used to model entities and their relationships, constraints and operations can dynamically change the states of the data in the system

ER diagram is used model the static parts of system and separate model for the operations and behaviors of entities in the application

Query language is unnecessary for accessing data (still possible to use queries)

Query language is necessary for accessing data

Manage complex data more efficiently (large class can hold many medium classes which themselves hold many smaller classes) Object model the real world better than the relational tuples

Manage complex data inefficiently (has lots of smaller tables and join them via foreign keys, which is still a problem since query database on “Has-a” relationship between entities)

Disadvantages

  • Still under-construction
    • Lack of standards
    • Lack of development tools
    • Lack of support for views
    • Lack of support for security
  • More complicated than RDBMS  takes longer to learn
  • Inefficient when managing simple data and relations

Java & ODMB

 Example of accessing data in ODMB using ODMG & OQL

  1. OJB.getInstance() returns a org.odmg.Implementation instance
  2. Create a new Database Instance
  3. Opens an ODMB Database (read- only or write-only mode)
  4. Create a query instance
  5. Specify the query statement
  6. Execute the query
  7. A list of results is returned

Conclusion

 ODBMS can store, manage and maintain multimedia & business object, that can be done required less code, reuse code, easy to maintain.  ODBMS manage the complex of interrelationships between objects more efficiently than RDBMS  Although there are many advantages of ODBMS but there are also problems: What is wrong with ODBMS? › Vendors don’t support ODBMS standard › Only 1 vendor is currently supporting OQL › Difficult to perform ad hoc queries › Relationships among objects use object identifiers and must be explicitly designed