Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 5140 invoked from network); 29 Aug 2003 09:55:57 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Aug 2003 09:55:57 -0000 Received: (qmail 44219 invoked by uid 500); 29 Aug 2003 09:54:51 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 44184 invoked by uid 500); 29 Aug 2003 09:54:51 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 44119 invoked from network); 29 Aug 2003 09:54:50 -0000 Received: from unknown (HELO mail.ppi.de) (194.180.18.1) by daedalus.apache.org with SMTP; 29 Aug 2003 09:54:50 -0000 Received: from max.ppinet.de (max.ppinet.de [172.31.43.64]) by mail.ppi.de (8.12.2/8.12.2) with ESMTP id h7T9rPnF008603 for ; Fri, 29 Aug 2003 11:53:25 +0200 Received: by max.ppinet.de with Internet Mail Service (5.5.2653.19) id ; Fri, 29 Aug 2003 11:53:26 +0200 Message-ID: <6D48B8403D926449BDE8440EC7EEC46D01010DDA@max.ppinet.de> From: oliver.matz@ppi.de To: ojb-dev@db.apache.org Subject: RE: Identity.realClass and Identity.topLevelClass Date: Fri, 29 Aug 2003 11:53:25 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="ISO-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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. Olli --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org