You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Keith Rogers <ke...@mouchelparkman.com> on 2004/10/09 23:37:28 UTC

Inheritance

Hi all,

I've got inheritance working for a few classes, but want to know if
there is any way of telling what the actual class of an object is...

For example, with an "article" object that is extended by "BookArticle"
and "CDArticle" - I want to get a list of all articles, but also to be
able to tell when I iterate through the results what kind of article
each one is... 

Ideally, I could go through the list and check for each article whether
it is a book or a cd, and cast as neccessary so that I can then access
the specific fields of the object relating to book/cd - Is this possible
using the current release of OJB?

Keith


The information in this e-mail is confidential and intended to be solely for the use of the addressee(s) and may contain copyright and/or legally privileged information.  If you are not the addressee (or responsible for delivery of the message to the addressee) please e-mail us at Postmaster@mouchelparkman.com and delete the message from your computer; copying, distribution, use or disclosure of its contents is strictly prohibited.
As Internet communications are capable of data corruption no responsibility is accepted for changes made to this message after it was sent. For this reason it may be inappropriate to rely on advice contained in any e-mail without obtaining written confirmation of it.
In addition, no liability or responsibility is accepted for viruses and it is your responsibility to scan attachments (if any).
Please note that for business purposes, outgoing and incoming emails from and to the company may be monitored and recorded.

Mouchel Parkman Services Ltd, Registered in England at West Hall, Parvis Road, West Byfleet, Surrey UK KT14 6EZ Registered No : 1686040


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org