dbTalk Databases Forums  

Changing object class definition in OODB?

comp.databases.object comp.databases.object


Discuss Changing object class definition in OODB? in the comp.databases.object forum.



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

Default Changing object class definition in OODB? - 06-23-2005 , 10:18 AM






Hmm,

I am real newbie on this field... I am just wandering, in RDBMS there
was possibility to update table definition (add field) and ther was no
problems.

What in OODBs ???? If I change class definition, what will happen
with database objects ????

Thanx in advance.
Best regards,
Neki.



Reply With Quote
  #2  
Old   
Alfredo Novoa
 
Posts: n/a

Default Re: Changing object class definition in OODB? - 06-23-2005 , 10:40 AM






On Thu, 23 Jun 2005 17:18:20 +0200, "Neki" <neki (AT) hotmail (DOT) com> wrote:

Quote:
I am real newbie on this field...
This is a problematic field.

Quote:
I am just wandering, in RDBMS there
was possibility to update table definition (add field) and ther was no
problems.

What in OODBs ???? If I change class definition, what will happen
with database objects ????
They are not equivalent changes. The equivalent to a class definition
change in an RDBMS is a domain definition change, and not a table
definition change.


Regards




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

Default Re: Changing object class definition in OODB? - 06-28-2005 , 01:15 PM



Quote:
I am real newbie on this field... I am just wandering, in RDBMS
there was possibility to update table definition (add field)
and ther was no problems.
What in OODBs ???? If I change class definition,
what will happen with database objects ????
In xrdb, what happens is mostly upto the user/application. Copy and
paste the script shown below into app's input box and press submit
button. To view the data, expand tree node labeled person. Db handles
normalization, PKs and FKs to a large extent. The app, which fits on a
floppy, can be downloaded from www.xrdb.com

// Create person john who is 30.
(CREATE type inst *age)
(CREATE type inst *person & dir item it)
(CREATE person inst *john)
(CREATE john age +30)

// Create person mary who is female.
// mary need not have any attributes.
(CREATE person inst *mary)

// Add gender attribute to mary.
(CREATE type inst *gender)
(CREATE mary gender +female)

// Add gender attribute to john.
(CREATE john gender +male)

// Create a default for person instance
// who is male and 25.
(CREATE verb inst *defInst)
(CREATE person defInst *defPerson)
(CREATE defPerson gender male)
(CREATE defPerson age +25)

// Create person bob and only use def gender.
(CREATE person inst *bob)
(CREATE bob gender (defPerson gender *))

// Add default weight attribute to default person.
// Note: this doesn't affect john, mary or bob
// but application is free to do so.
(CREATE type inst *weight)
(CREATE defPerson weight +180)

// Find persons instances whose gender is the default.
// Finds john and bob.
(SELECT person inst * & * gender (defPerson gender *))



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.