Chap20-Concepts For Object-Oriented Databases
Chap20-Concepts For Object-Oriented Databases
Concepts for
Object-Oriented Databases
Example 1(cont.)
o8 = (i8, tuple, <dname:i5, dnumber:i4, mgr:i9,
locations:i7, employees:i10, projects:i11>)
o9 = (i9, tuple, <manager:i12,
manager_start_date:i6>)
o10 = (i10, set, {i12, i13, i14})
o11 = (i11, set {i15, i16, i17})
o12 = (i12, tuple, <fname:i18, minit:i19, lname:i20,
ssn:i21, . . ., salary:i26, supervisor:i27, dept:i8>)
...
Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition Chapter 20-19
Copyright © 2004 Ramez Elmasri and Shamkant Navathe
Object Identity, Object Structure,
and Type Constructors (8)
Example 1 (cont.)
The first six objects listed in this example represent
atomic values. Object seven is a set-valued object
that represents the set of locations for department 5;
the set refers to the atomic objects with values
{‘Houston’, ‘Bellaire’, ‘Sugarland’}. Object 8 is a
tuple-valued object that represents department 5
itself, and has the attributes DNAME, DNUMBER,
MGR, LOCATIONS, and so on.
Encapsulation
One of the main characteristics of OO languages and
systems
Related to the concepts of abstract data types and
information hiding in programming languages
Example:
PERSON: Name, Address, Birthdate, Age, SSN