CH1 OO Database
CH1 OO Database
Mapping directly
onto ODL classes
Object-Oriented
database schema Optimization OODBMS
in ODL
generali
tion
Primitive types
• Integer, string, date, Boolean, float, etc.
Structure type
• Attribute can be a record with a schema
• E.g Struct {integer x, string y}
Collection type
• Attribute can be a Set, Bag, List, Array of
other types
Reference type
• Attribute can be a Pointer to another object
Keyword attribute
Attribute as a structure
Keyword relationship
Keyword set
Definition (implementation) is
not part of the class
SSN)
Advanced Database System – Ch-1: OO Database Two keys empID and SSN Slide 25
OQL: OBJECT-ORIENTED QUERY
LANGUAGE
• OQL is a query language designed to operate on
databases described in ODL.
Another notation
subquery
Set of strings
Set of structures