Professional Documents
Culture Documents
Chapter 9.DBMS
Chapter 9.DBMS
Chapter 9.DBMS
OBJECT-ORIENTED
DATABASE MANAGEMENT
INTRODUCTION
• ‘‘object orientation,’’ began during the 1980s
(DATACENTRIC APPROACH)
permanent and unique among all objects of all types in the system
• OODBMSs are the most natural data storage vehicles when using
Java
TERMINOLOGY
OBJECT
• an advanced data structure that includes an entity’s attributes
METHODS OR OPERATIONS OR
PROCEDURES
• Also known as “program code” that can operate on and modify the object’s
attribute values
OBJECT CLASS
• Or simply a “class”
• the objects that describe similar entities
Unified Modeling Language
(UML)
• 1997, Object Management Group (OMG)
software architectures
UML Class Diagram
Occupied by Works in
SALESPERSON CUSTOMER
PK Salesperson PK Customer
Number Number
Sells to
Employed by
diagram SALES
PK Salesperson
CUSTOMER EMPLOYEE
PK Customer
Number Number
PK Product PK Employee
Title
Sold
Sold Product
PRODUCT
PK Product
Number
Product
Name Unit Price
Inheritance of Attributes
• the attributes for POWER TOOLs are Product Number, Product Name,
Unit Price (all from PRODUCT), Weight (from TOOL), and Amperes.
• the attributes for LUMBER are Product Number, Product Name, Unit
operation.
attributes are
• the component classes can each have their own special attributes
(Figure 9.4)
Figure 9.5 shows the complete
General Hardware Co. UML Class
Diagram. The upper portion of
the diagram is largely the
same as the entity-
relationship diagram of
Figure 9.1.
CUSTOMER
Customer Number
Customer Name
Street
City
State
Country
0
.
.
SALE * CREATION
Date Percent of
Price Responsibility
Quantity
entity-relationship diagram
of Figure 2.10
BOOK PERIODICAL CD VIDEO/DVD
1..* 1..*
ARTICLE SONG
Ti Writer
tle Year
Author Written
Length
The World Music
Association Class Diagram
The upper portion of
Figure 9.7 is the class
diagram version of the
World Music Association
entity-relationship
diagram of Figure 2.11
The Lucky Rent-A-Vehicle Class
Diagram
The upper part of the Lucky class
diagram of Figure 9.8 looks very
much like the Lucky entity-
relationship diagram of
Figure 2.12.
The only difference is the change
from the CAR entity-type to the
VEHICLE class.
ENCAPSULATION
• A fascinating feature of object-oriented database management that