Database Processing Chapter 17 ObjectOriented Database Processing David
Database Processing Chapter 17 Object-Oriented Database Processing David M. Kroenke © 2000 Prentice Hall
Object-Oriented Programming Chapter 17 • OOP; a way of designing and coding programs which views programs as sets of data structures that have both data elements and program instructions Page 483 © 2000 Prentice Hall
Chapter 17 OOP Terminology • Encapsulated complete in itself • Encapsulated structure an OOP object that has both attributes (properties) and methods • Interface external appearance of an object Page 484 © 2000 Prentice Hall
Chapter 17 OOP Terminology • Implementation “the encapsulated internals of an object” • Inheritance “automatically assuming the attributes and methods of another object at a higher class” • Polymorphism “situation in which one name can be used to invoke different functions” Page 484 © 2000 Prentice Hall
Chapter 17 OOP Terminology • Object Class “the logical structure of an object (name, attributes, methods)” • Object Class Library “a group of object classes” • Objects “instances of objects” • Transient vs. Persistent “volatile vs. permanent” Page 485 © 2000 Prentice Hall
Sample Objects, Methods, and Attributes Page 486 Figure 17 -2 © 2000 Prentice Hall
Sample Object Data Structures Page 489 Figure 17 -4 © 2000 Prentice Hall
Chapter 17 Swizzling “The process of transforming permanent identifiers into in-memory addresses” Page 489 © 2000 Prentice Hall
Tasks for Object Persistence Page 489 Figure 17 -5 © 2000 Prentice Hall
Application Development Work for Object Persistence Page 492 Figure 17 -8 © 2000 Prentice Hall
ODBMS Advantages and Disadvantages Page 493 Figure 17 -9 © 2000 Prentice Hall
Chapter 17 ODBMS Standards • SQL 3 “an extension to SQL 92 that includes support for OODBMS” • Abstract data type “ADT; userdefined structure that is equivalent to an OOP object” Page 495 © 2000 Prentice Hall
Chapter 17 ODMG-93 “Object Data Management Group; a consortium of object database vendors and experts that developed a definition of interfaces for object data management products in 1993” Page 500 © 2000 Prentice Hall
Key Elements of the ODMG Object Model Page 501 Figure 17 -15 © 2000 Prentice Hall
ODMG Relationship Operations Page 502 Figure 17 -16 © 2000 Prentice Hall
- Slides: 15