ch21-Object Database Standards, Languages, and Design

ch21-Object Database Standards, Languages, and Design -...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Slide 21- 1 Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 21 Object Database Standards, Languages, and Design
Background image of page 2
Slide 21- 3 Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 21Outline 1 Overview of the Object Model ODMG 2 The Object Definition Language DDL 3 The Object Query Language OQL 4 Overview of C++ Binding 5 Object Database Conceptual Model 6 Summary
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Slide 21- 4 Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter Objectives Discuss the importance of standards (e.g., portability, interoperability) Introduce Object Data Management Group (ODMG): object model, object definition language (ODL), object query language (OQL) Present ODMG object binding to programming languages (e.g., C++) Present Object Database Conceptual Design
Background image of page 4
Slide 21- 5 Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe 21.1 The Object Model of ODMG Provides a standard model for object databases Supports object definition via ODL Supports object querying via OQL Supports a variety of data types and type constructors
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Slide 21- 6 Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe ODMG Objects and Literals The basic building blocks of the object model are Objects Literals An object has four characteristics 1. Identifier : unique system-wide identifier 2. Name : unique within a particular database and/or program; it is optional 3. Lifetime : persistent vs. transient 4. Structure : specifies how object is constructed by the type constructor and whether it is an atomic object
Background image of page 6
Slide 21- 7 Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe ODMG Literals A literal has a current value but not an identifier Three types of literals 1. atomic : predefined; basic data type values (e.g., short, float, boolean, char ) 2. structured : values that are constructed by type constructors (e.g., date, struct variables) 3. collection : a collection (e.g., array) of values or objects
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Slide 21- 8 Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe ODMG Interface Definition: An Example Note: interface is ODMG’s keyword for class/type interface Date:Object { enum weekday{sun,mon,tue,wed,thu,fri,sat}; enum Month{jan,feb,mar,…,dec}; unsigned short year(); unsigned short month(); unsigned short day(); boolean is_equal(in Date other_date); };
Background image of page 8
Slide 21- 9 Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Built-in Interfaces for Collection Objects A collection object inherits the basic collection interface, for example: cardinality() is_empty() insert_element() remove_element() contains_element() create_iterator()
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Slide 21- 10 Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Collection Types Collection objects are further specialized into types like a set, list, bag, array, and dictionary Each collection type may provide additional interfaces, for example, a set provides: create_union() create_difference() is_subset_of( is_superset_of() is_proper_subset_of()
Background image of page 10
Slide 21- 11 Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Object Inheritance Hierarchy
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 57

ch21-Object Database Standards, Languages, and Design -...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online