dbTalk Databases Forums  

How does it work when a class has been changed ?

comp.databases.object comp.databases.object


Discuss How does it work when a class has been changed ? in the comp.databases.object forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
romerun
 
Posts: n/a

Default How does it work when a class has been changed ? - 11-02-2007 , 12:11 PM






Hi,

In OODBMS, class-based OO, suppose I save an object, then later modify
its class by removing/adding fields. Does it mean I cannot load the
old object ? How OODBMS handles this ?

Thank you


Reply With Quote
  #2  
Old   
Norm Green
 
Posts: n/a

Default Re: How does it work when a class has been changed ? - 11-02-2007 , 08:49 PM






In the GemStone OODBMS, classes are first class objects. So when you
"modify" the class you are really creating a new version of the class. The
old instances are still instances of the old class until they are migrated
to the new version. And you can have instances of the old and new versions
of the class at the same time, although most people don't do this. In
practice, most people migrate all the old instances to instances of the new
version of the class.

Norm Green


"romerun" <romerun (AT) gmail (DOT) com> wrote

Quote:
Hi,

In OODBMS, class-based OO, suppose I save an object, then later modify
its class by removing/adding fields. Does it mean I cannot load the
old object ? How OODBMS handles this ?

Thank you




Reply With Quote
  #3  
Old   
wolfkoelling
 
Posts: n/a

Default Re: How does it work when a class has been changed ? - 11-20-2007 , 05:08 AM



In Intersystems Caché you can still load any existing objects but you
won't have access to any properties which have been removed from the
class definition (though the data is still there and you can get to it
via direct access to the underlying multi-dimensional db engine) while
new properties simply won't have a value.

Wolf Koelling

On Nov 2, 6:11 pm, romerun <rome... (AT) gmail (DOT) com> wrote:
Quote:
Hi,

In OODBMS, class-based OO, suppose I save an object, then later modify
its class by removing/adding fields. Does it mean I cannot load the
old object ? How OODBMS handles this ?

Thank you

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.