dbTalk Databases Forums  

Forced migration from OO to relational

comp.databases.object comp.databases.object


Discuss Forced migration from OO to relational in the comp.databases.object forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Paul Tiseo
 
Posts: n/a

Default Re: Forced migration from OO to relational - 08-06-2003 , 01:14 PM






In article <EpbYa.81520$o%2.37140@sccrnsc02>, davem405 (AT) comcast (DOT) net
says...
Quote:
Complex relationships can be stored in object columns, but we encourage the
use of
relational facilities for modeling complex relationships. As OODBMS
proponents have
discovered, accessing complex relationships using object structures is too
difficult.
Not to burden you, but could you illustrate this statement with an
example? Thanks.

----------------------------------------
Paul Tiseo, Systems Programmer
Research Computing Facility, Mayo Clinic
tiseo128.paul23 (AT) mayo (DOT) edu
(please remove numbers to email me)


Reply With Quote
  #12  
Old   
David Morse
 
Posts: n/a

Default Re: Forced migration from OO to relational - 08-08-2003 , 11:28 AM






Hi,

FirstSQL/J provides integrated support for objects with internal O/R mapping
of Java types to database types. In FirstSQL/J, table columns can have an
object class as their datatype. The value of an object column can be an
instance of its defined class or one of its subclasses.

FirstSQL/J extends SQL to allow you to call the methods of object columns. A
simple
query example:

SELECT shape FROM shape_table WHERE shape.getHeight() < 14;

Object columns have data (fields in the object) *and* behavior (methods in
the object).
Extended object capabilities enhance the strengths of SQL.

For another example please see: http://www.firstsql.com/javaobjects.shtml

Cataloging Java classes as objects in the database is done with the CREATE
CLASS command;

CREATE CLASS object-name FROM 'java-name' [INHERITS class-list]
object-name is a string containing the fully qualified name of the Java
object being created. java-name is the name of the original base Java class
or a Java Interface being cataloged. In the optional INHERITS clause,
class-list is a comma-separated list containing the base Java class(s) (if
any) and any user-defined interfaces implemented. The base class or primary
interface is listed first. Any class or interface listed is cataloged in the
database with the database name used in the database class.

Hope this is clear enough.
Best regards,

Dave

"Paul Tiseo" <tiseo128.paul23 (AT) mayo (DOT) edu> wrote

Quote:
In article <EpbYa.81520$o%2.37140@sccrnsc02>, davem405 (AT) comcast (DOT) net
says...
Complex relationships can be stored in object columns, but we encourage
the
use of
relational facilities for modeling complex relationships. As OODBMS
proponents have
discovered, accessing complex relationships using object structures is
too
difficult.

Not to burden you, but could you illustrate this statement with an
example? Thanks.

----------------------------------------
Paul Tiseo, Systems Programmer
Research Computing Facility, Mayo Clinic
tiseo128.paul23 (AT) mayo (DOT) edu
(please remove numbers to email me)



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.