Re: object oriented vs object relational

From: James <jraustin1_at_hotmail.com>
Date: 8 Jun 2002 15:56:26 -0700
Message-ID: <a6e74506.0206081456.6eca60e1_at_posting.google.com>


> > generic code to copy any data structure of arbitrary complexity
> 
> In a purely relational database:
> UPDATE some_relation SET some_attribute = some_value_of_arbitrary_complexity;

Below is an example of an arbitrary data structure where "." is a property
-> is a reference to an object
[] is object's class
() is object's quantity

Corvette [Car]
  .Mfg
->GM

  .Colors
->Silver
->Gray

  Passengers Fldr
->Mary

    John [Person]

      .Age
        ->32 yr
      .Friends
        ->John
        ->Bob

  ToolBox [StorageBox]
    .Capacity
      ->50 lb
    TopDrawer
      ->ScrewDriver(3)
      ->Plier(2)
    BottomDrawer
      ->Hammer

For more details see:
www.xdb1.com/Benchmark/6.asp
www.xdb1.com/HowTo/CopyObj.asp Received on Sun Jun 09 2002 - 00:56:26 CEST

Original text of this message