dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

How does it work when a class has been changed ? - Object Database Technologies

This is a discussion on How does it work when a class has been changed ? - Object Database Technologies ; 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...


Home > Database Forum > Other Databases > Object Database Technologies > How does it work when a class has been changed ?

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 11-02-2007, 02:11 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default How does it work when a class has been changed ?

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 11-02-2007, 10:49 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: How does it work when a class has been changed ?

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" wrote in message
news:1194027105.434913.6020@o80g2000hse.googlegrou ps.com...
> 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 11-20-2007, 07:08 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: How does it work when a class has been changed ?

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 wrote:
> 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
  #4  
Old 11-29-2009, 11:41 AM
Database Newbie
 
Join Date: Nov 2009
Posts: 1
jezzicaz789 is on a distinguished road
Default Re: How does it work when a class has been changed ?

Quote:
Originally Posted by Database Administrator View Post
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" wrote in message
news:1194027105.434913.6020@o80g2000hse.googlegrou ps.com...
> 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
>

Thanks you for the post.I am a new member of forum. Would a newcomer be warmly welcome here? Good day you guys!!!
__________________
Watch Movies Online Free
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 03:14 PM.