ADMS Chapter One
ADMS Chapter One
ADVANCED DATABASE
MANAGEMENT SYSTEM
Instructor : Yohannes K
Chapter 1
Object-oriented Database
A user of one program may not aware the important of the other
data
Duplication of Data
Relational Database
Provides a conceptually simple model for data as relations (typically
considered “tables”) with all data visible.
Introduction – Types of Database
Object Oriented Database Model
Goal:
Store object-oriented programming objects in a database
without having to transform them into relational format
OODB were not commercially successful due to
high cost of relational to object-oriented transformation and a sound
underlying theory, but they still exist
as mentioned creating a standard.
ER Data Model
Object name
The name is used to refer different objects in the program.
Object identifier
This is the system generated identifier which is assigned,
when a new object is created.
Structure of object
Structure defines, how the object is constructed using
constructor.
In object oriented database the state of complex object can be
Transient object
In OOPL, objects which are present only at the time of
Persistent objects
Example
i1, i2, i3, . . . to stand for unique system generated object identifiers. Consider the following
objects:
o4 = (i4, atom, 5)
Example 1 (cont.)
The first six objects listed in this example
represent atomic values.
Naming
The naming mechanism involves giving an object a unique
persistent name within a particular database.
Subtype: when the designer or user must create a new type that is similar but
not identical to an already defined type
Subtype: inherits all the functions of the predefined type (also known as the
super type)
1.7 Type Hierarchies and Inheritance
Type (class) Hierarchy
Example (1):
PERSON: Name, Address, Birthdate, Age, SSN
Manager salesStaff
salesManager