db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oliver.m...@ppi.de
Subject RE: Identity.realClass and Identity.topLevelClass
Date Fri, 29 Aug 2003 09:53:25 GMT
Hej Thomas,

> -----Original Message-----
> From: Thomas Mahler [mailto:thma32@web.de]

> > I have had an idea how to improve the Identity class:

> > 2. lowestKnownClass - the lowest persistence-capable class
> >                    or interface (in the inheritance hierarchy)
> >                    that the identified object is known
> >                    to be an instance of.

> I agree that in your example (class C extends B extends A) it 
> will be a 
> performance improvement.
> But will it be a performance improvement for arbitrary other 
> situations 
> (say class E extends D extends C extends B extends A) ?
> There could be some reference descriptors pointing to A, some others 
> pointing to B and even others pointing to C and D.
> How can the lowestKnownClass help in this case?

There will be no performance improvement for the reference
descriptors pointing to A, but there might be an improvement
for the others, depending on how many tables can be disregarded
in the search.  

Of course, this requires that the lowestKnownClass
is initialized correctly in each case, namely with the class
declared in the reference descriptor that it represents.


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

View raw message