Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice...
-
Upload
marsha-greene -
Category
Documents
-
view
240 -
download
0
Transcript of Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice...
![Page 1: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/1.jpg)
Chapter 17Object-Oriented
Database Processing
David M. Kroenke
Database Processing
© 2000 Prentice Hall
![Page 2: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/2.jpg)
Chapter 17
© 2000 Prentice Hall
Object-Oriented Programming
• 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
![Page 3: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/3.jpg)
Chapter 17
© 2000 Prentice Hall
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
![Page 4: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/4.jpg)
Chapter 17
© 2000 Prentice Hall
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
![Page 5: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/5.jpg)
Chapter 17
© 2000 Prentice Hall
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
![Page 6: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/6.jpg)
Sample Objects, Methods, and Attributes
Page 486Figure 17-2 © 2000 Prentice Hall
![Page 7: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/7.jpg)
Sample Object Data Structures
Page 489Figure 17-4 © 2000 Prentice Hall
![Page 8: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/8.jpg)
Chapter 17
© 2000 Prentice Hall
Swizzling
“The process of transforming permanent identifiers into in-memory addresses”
Page 489
![Page 9: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/9.jpg)
Tasks for Object Persistence
Page 489Figure 17-5 © 2000 Prentice Hall
![Page 10: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/10.jpg)
Application Development Work for Object Persistence
Page 492Figure 17-8 © 2000 Prentice Hall
![Page 11: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/11.jpg)
ODBMS Advantages and Disadvantages
Page 493Figure 17-9 © 2000 Prentice Hall
![Page 12: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/12.jpg)
Chapter 17
© 2000 Prentice Hall
ODBMS Standards
• SQL3 “an extension to SQL92 that includes support for OODBMS”
• Abstract data type “ADT; user-defined structure that is equivalent to an OOP object”
Page 495
![Page 13: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/13.jpg)
Chapter 17
© 2000 Prentice Hall
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
![Page 14: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/14.jpg)
Key Elements of the ODMG Object Model
Page 501Figure 17-15 © 2000 Prentice Hall
![Page 15: Chapter 17 Object-Oriented Database Processing David M. Kroenke Database Processing © 2000 Prentice Hall.](https://reader033.fdocuments.net/reader033/viewer/2022050805/56649eff5503460f94c144a8/html5/thumbnails/15.jpg)
ODMG Relationship Operations
Page 502Figure 17-16 © 2000 Prentice Hall