Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 97562 invoked from network); 19 Aug 2004 19:48:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Aug 2004 19:48:17 -0000 Received: (qmail 12290 invoked by uid 500); 19 Aug 2004 19:47:36 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 12154 invoked by uid 500); 19 Aug 2004 19:47:35 -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 12030 invoked by uid 99); 19 Aug 2004 19:47:32 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.27.1) with SMTP; Thu, 19 Aug 2004 12:47:30 -0700 Received: (qmail 18329 invoked by uid 65534); 19 Aug 2004 19:47:27 -0000 Received: from adsl-62-167-141-249.adslplus.ch (EHLO [192.168.1.10]) (62.167.141.249) by mail.gmx.net (mp021) with SMTP; 19 Aug 2004 21:47:27 +0200 X-Authenticated: #15507884 Message-ID: <412503F8.8040803@gmx.ch> Date: Thu, 19 Aug 2004 21:48:08 +0200 From: Jakob Braeuchi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.2) Gecko/20040803 X-Accept-Language: de, en MIME-Version: 1.0 To: OJB Developers List Subject: Re: [OJB 1.1] MetadataManager issue References: <411A4984.40509@apache.org> In-Reply-To: <411A4984.40509@apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N hi armin, QueryByCriteria#setObjectProjectionAttribute also uses MM directly. jakob Armin Waibel schrieb: > Hi all, > > as I said in my initial 1.1 post there are some issues in code: > > ====================== > MetadataManager use > ====================== > Some classes still use MetadataManager.getInstance() and lookup object > metadata or connection metadata information. But in 1.1 you only can > lookup metadata of the current used PC when the PBKey/PCKey or a PB > instance was used. > > > - DatabaseHandlingTask > should be easy to fix when an OJB instance was used or when the > MetadataManager will be usable in standalone mode for tool support. > > > - QueryByCriteria#buildCriteria(Object anExample) > here the MM was used to lookup the ClassDescriptor of the given object. > QueryByCriteria has public constructor and can currently be reused by PB > instances of different PC, thus we can't bind a PB, PC or PCKey to this > class. But reuse of Query objects could be problematic when using > different model for the same class (one model supports all fields, the > other model only PK + name). > Should we use an Query service bind to a PB instance. In that case we > can set a PCKey/PBkey in the query object and can lookup current PC to > lookup metadata information and the PB instance can check the PCKey > before perform a getCollectionByQuery(...) or similar??? > > > - OQLParser#selectQuery > again MM was used to lookup classDescriptor of query object on parsing. > > > - jdoql.QueryTreeResolver > again used for parsing > > > - graph.ObjectWrapper > ??? > > A hard nut to crack ;-) > > regards, > Armin > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org > For additional commands, e-mail: ojb-dev-help@db.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org