Your SlideShare is downloading. ×
0
Object Oriented DB OODB Copyright 2002  by Janson Industries
Objectives <ul><li>Introduce OODB concepts </li></ul><ul><ul><li>Encapsulation </li></ul></ul><ul><ul><li>Inheritance </li...
Encapsulation <ul><li>Data objects include: </li></ul><ul><ul><li>The data structure </li></ul></ul><ul><ul><li>The functi...
Encapsulation <ul><li>To access the data you must use the predefined methods </li></ul>DATA Edits Audits Get Set
Inheritance <ul><li>Non-OODBMSs relate fields into records and records in different files are related to form a DB </li></...
Inheritance and Abstraction <ul><li>You can define an Abstract data object called DATE (doesn’t hold data) </li></ul><ul><...
Inheritance <ul><li>Define DATE with the edits </li></ul>DATE Day Edit Month  Edit Get Set
Inheritance & Polymorphism <ul><li>All the date fields inherit DATE’s edits </li></ul>DATE Date of Birth Date of Hire Expi...
Composition <ul><li>OODBMS method for traditionally relating data  </li></ul><ul><li>A data object may be composed of othe...
Composition <ul><li>Data elements defined once </li></ul><ul><li>Object has access to all object functions of which it is ...
OO and RDBMS <ul><li>RDBMS adopting some OO traits </li></ul><ul><ul><li>Trigger programs </li></ul></ul><ul><ul><li>Refer...
Web Based Data <ul><li>Internet data: </li></ul><ul><ul><li>Less structured than data stored in a DBMS </li></ul></ul><ul>...
XML (Extensible Markup Lang.) <ul><li>Easily read by applications (and humans): easy data exchange </li></ul><ul><li>HTML-...
XML <StudentList> <Title Value = “List of Students”/> <Contents> <Person>   <Name> Joe Smith </Name>   <Id> 123456789 </Id...
XML Syntax <ul><li>Tag syntax is defined in the stylesheet (I.e. the semantic layer) </li></ul><ul><li>Stylesheet is passe...
XML Syntax <ul><li>The rules are enforced by the reader of the document </li></ul><ul><li>If the DTD says a unique value m...
XML Definition <ul><li>Schemas are a big improvement  </li></ul><ul><li>Both DTD and Schema can be sent with the document ...
XML Usage <ul><li>The idea is that different industries will create unique tags suited to their data </li></ul><ul><li>The...
Points to Remember <ul><li>OODBMS is not standardized (it’s a moving target) </li></ul><ul><li>Many OO concepts being impl...
Upcoming SlideShare
Loading in...5
×

oodb.ppt

956

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
956
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
31
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • The student should also be able to do the following: Locate components and devices. Invoke the data management and application development tools.
  • Transcript of "oodb.ppt"

    1. 1. Object Oriented DB OODB Copyright 2002 by Janson Industries
    2. 2. Objectives <ul><li>Introduce OODB concepts </li></ul><ul><ul><li>Encapsulation </li></ul></ul><ul><ul><li>Inheritance </li></ul></ul><ul><ul><li>Abstraction </li></ul></ul><ul><ul><li>Polymorphism </li></ul></ul><ul><ul><li>Composition </li></ul></ul><ul><li>Explain how RDBMs implement some of these features </li></ul>
    3. 3. Encapsulation <ul><li>Data objects include: </li></ul><ul><ul><li>The data structure </li></ul></ul><ul><ul><li>The functions to manipulate the object </li></ul></ul><ul><li>Separate and hide the internal aspects of data from the external aspects </li></ul><ul><li>Can change internal aspect of data with out affecting external aspects: </li></ul><ul><li>data independence </li></ul>
    4. 4. Encapsulation <ul><li>To access the data you must use the predefined methods </li></ul>DATA Edits Audits Get Set
    5. 5. Inheritance <ul><li>Non-OODBMSs relate fields into records and records in different files are related to form a DB </li></ul><ul><li>Data can be related in other, more complex ways </li></ul><ul><li>For instance, every date field (date of birth, date of hire, expiration date, etc.) has some of the same edits </li></ul><ul><ul><li>1 <= Month <= 12 </li></ul></ul><ul><ul><li>1 <= Day <= 31 </li></ul></ul>
    6. 6. Inheritance and Abstraction <ul><li>You can define an Abstract data object called DATE (doesn’t hold data) </li></ul><ul><li>All other date fields can be defined as subclasses of the superclass DATE </li></ul><ul><li>Subclasses inherit the superclass’ characteristics (edits) </li></ul><ul><li>A data object can inherit from many other objects - polymorphism </li></ul>
    7. 7. Inheritance <ul><li>Define DATE with the edits </li></ul>DATE Day Edit Month Edit Get Set
    8. 8. Inheritance & Polymorphism <ul><li>All the date fields inherit DATE’s edits </li></ul>DATE Date of Birth Date of Hire Expire Date BOLD
    9. 9. Composition <ul><li>OODBMS method for traditionally relating data </li></ul><ul><li>A data object may be composed of other data objects </li></ul>First Middle Name Last Employee Street City Address Date of Hire
    10. 10. Composition <ul><li>Data elements defined once </li></ul><ul><li>Object has access to all object functions of which it is comprised </li></ul><ul><li>Facilitates reuse of data definitions </li></ul><ul><li>Can quickly build complex data objects </li></ul>
    11. 11. OO and RDBMS <ul><li>RDBMS adopting some OO traits </li></ul><ul><ul><li>Trigger programs </li></ul></ul><ul><ul><li>Referential constraints </li></ul></ul><ul><ul><li>Non-primitive data types (e.g. BLOBs) </li></ul></ul><ul><li>DB2/400 supports: </li></ul><ul><ul><li>Record level triggers </li></ul></ul><ul><ul><li>Insert, delete & several update constraints </li></ul></ul><ul><ul><li>User defined data types </li></ul></ul>
    12. 12. Web Based Data <ul><li>Internet data: </li></ul><ul><ul><li>Less structured than data stored in a DBMS </li></ul></ul><ul><ul><li>“semi-structured” (e.g. with HTML) </li></ul></ul><ul><ul><li>“object-like” because data must be “self describing” </li></ul></ul><ul><ul><li>Accessed by many different applications </li></ul></ul><ul><li>XML is a standard for defining data on the Web </li></ul>
    13. 13. XML (Extensible Markup Lang.) <ul><li>Easily read by applications (and humans): easy data exchange </li></ul><ul><li>HTML-like (I.e. uses tags) </li></ul><ul><li>HTML tags predefined to present text </li></ul><ul><ul><li><table> </table> </li></ul></ul><ul><ul><li><p> - paragraph </li></ul></ul><ul><ul><li><br> - break – skips to next line </li></ul></ul><ul><li>XML tags represent data </li></ul><ul><ul><li>Not predefined </li></ul></ul><ul><ul><li>No defined syntax </li></ul></ul>
    14. 14. XML <StudentList> <Title Value = “List of Students”/> <Contents> <Person> <Name> Joe Smith </Name> <Id> 123456789 </Id> <Address> <Street> 123 Oak St.</Street> <City> Enid </City> <State> OK </State> <Zip> 12345 </Zip> </Address> </Person> <Person> : : </Person> <Contents> </StudentList> The Value clause is an example of an attribute Info between the open and close of a tag is the content Elements within elements are called children (ie. Street is a child of Address)
    15. 15. XML Syntax <ul><li>Tag syntax is defined in the stylesheet (I.e. the semantic layer) </li></ul><ul><li>Stylesheet is passed with the information (self-describing) </li></ul><ul><li>DTD (document type definition) defines the rules of the tags </li></ul><ul><ul><li>Lists valid tags </li></ul></ul><ul><ul><li>Specify whether tag is required </li></ul></ul><ul><ul><li>Specify if value for tag must be unique </li></ul></ul><ul><ul><li>Specify attributes </li></ul></ul>
    16. 16. XML Syntax <ul><li>The rules are enforced by the reader of the document </li></ul><ul><li>If the DTD says a unique value must be entered, the creator of the data must enforce the rule </li></ul><ul><li>XML schemas can define: </li></ul><ul><ul><li>Complex data types (int, time, etc.) </li></ul></ul><ul><ul><li>Keys </li></ul></ul><ul><ul><li>Referential constraints </li></ul></ul><ul><li>However, schema can be ignored by the XML processor! (DBMS force data to follow the “schema”.) </li></ul>
    17. 17. XML Definition <ul><li>Schemas are a big improvement </li></ul><ul><li>Both DTD and Schema can be sent with the document or stored at a web location </li></ul><ul><li>The document then refers to the web address of the defining schema and/or DTD </li></ul><ul><li>However, since DTDs and Schemas can be ignored, the best you can say is that XML is semi-structured </li></ul>
    18. 18. XML Usage <ul><li>The idea is that different industries will create unique tags suited to their data </li></ul><ul><li>There are XML query languages: XPath, XSLT, XQQuery </li></ul><ul><li>The information in a XML document can be mapped to a relational database and visa versa </li></ul>
    19. 19. Points to Remember <ul><li>OODBMS is not standardized (it’s a moving target) </li></ul><ul><li>Many OO concepts being implemented in RDBMSs and web based data storage </li></ul><ul><li>XML is a standard for defining web based information </li></ul><ul><li>XML not as robust as DBMS DDL </li></ul>
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×