Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How does it work when a class has been changed ?

 
   Database Forums (Home) -> Object-Oriented RSS
Next:  SQL License  
Author Message
romerun

External


Since: Nov 02, 2007
Posts: 1



(Msg. 1) Posted: Fri Nov 02, 2007 3:57 pm
Post subject: How does it work when a class has been changed ?
Archived from groups: comp>databases>object (more info?)

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

 >> Stay informed about: How does it work when a class has been changed ? 
Back to top
Login to vote
Norm Green

External


Since: Nov 02, 2007
Posts: 1



(Msg. 2) Posted: Fri Nov 02, 2007 7:49 pm
Post subject: Re: How does it work when a class has been changed ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

> 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
>

 >> Stay informed about: How does it work when a class has been changed ? 
Back to top
Login to vote
wolfkoelling

External


Since: Nov 20, 2007
Posts: 1



(Msg. 3) Posted: Tue Nov 20, 2007 3:08 am
Post subject: Re: How does it work when a class has been changed ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
 >> Stay informed about: How does it work when a class has been changed ? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
developing a Object Oriented Database -

Aggregation in FastObjects. How to define that in opt file? - Hello, I have theses java classes: - Course <<key>> code : short name : string gratingCurricular : set<Period> - Period <<key>> numPeriod : short anything: set<someThing> * For eac...

Help : How to manage stars in database ? - All, Any help would be gratefully appreciated. I have this trouble : In database in one column I have record like that : 000000001 0*6666**66 005555555 Stars could be anything between '0' and '9' So, if I look for this id : 0166662066, it would be..

How to get return type (Resultset) information from databa.. - Hai, For Example Below are two storeprocedures one returns resultset and other not, how get this information through programmatically. 1)CREATE PROCEDURE dbo.UpdateCustomers ( @CustomerID nchar(5), @CompanyName nvarchar(40), @ContactName..

Problems with sorting datas with db4o using orderderAscend.. - Hi, I have created a class "result" with several attributes. Then I have inserted approximately 10000 object result, stored in a yap file. I can get the data and display them. I'd like to know if it is possible, using the functions of db4o, t...
   Database Forums (Home) -> Object-Oriented All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]