Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 61855 invoked from network); 29 Mar 2005 19:47:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Mar 2005 19:47:01 -0000 Received: (qmail 3773 invoked by uid 500); 29 Mar 2005 19:47:00 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 3734 invoked by uid 500); 29 Mar 2005 19:47:00 -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 3721 invoked by uid 99); 29 Mar 2005 19:47:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jbraeuchi@gmx.ch designates 213.165.64.20 as permitted sender) Received: from pop.gmx.de (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 29 Mar 2005 11:46:59 -0800 Received: (qmail invoked by alias); 29 Mar 2005 19:46:55 -0000 Received: from adsl-62-167-140-53.adslplus.ch (EHLO [192.168.1.10]) [62.167.140.53] by mail.gmx.net (mp014) with SMTP; 29 Mar 2005 21:46:55 +0200 X-Authenticated: #15507884 Message-ID: <4249B018.7020005@gmx.ch> Date: Tue, 29 Mar 2005 21:44:24 +0200 From: Jakob Braeuchi User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: OJB Developers List Subject: Re: Query and QueryByCriteria References: <4244451F.9070003@gmx.ch> <42467727.6000900@gmx.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi vadim, Vadim Gritsenko schrieb: > Jakob Braeuchi wrote: > >> hi vadim, >> >> i'd prefer to have interfaces for Query, QueryByCriteria, >> QueryByExample, and ReportQuery. the current interface Query is a mix >> of the first three interfaces. > > > Does it mean you plan to trim Query interface? yes, it will onlycontain getSearchClass() and the paging information. > > >> how would your extended Query-interface look like ? > > > So far it's class, named QueryByFKCriteria, and it is simplification of > the QueryByCriteria class. It takes (Class, String[] names, String[] > values) as constructir arguments and internally creates Criteria in the > form of "name=value AND ...". imo there's already a QueryByIdentity that does something similar. jakob > > After that, if foreign-key stored procedure is declared on the class, my > queries are executing using this stored procedure. Otherwise, > SqlSelectStatement generates select as usual. > > >> immutable queries is a problem in the current version of ojb because >> some of the criteria are generated at runtime (ie. IdentityCriteria), >> see preprocess. > > > Ok > > Vadim > > >> jakob >> >> Vadim Gritsenko schrieb: >> >>> Jakob Braeuchi wrote: >>> >>>> hi vadim, >>>> >>>> query-refactoring is already on my todo-list. i prefer to convert >>>> QueryByCriteria into an interface and to have a QueryByCriteriaImpl >>>> class. >>> >>> >>> >>> You don't want to extend Query interface then, do you? >>> >>> What do you think about possibility of immutable Query objects? It >>> might be too complex to implement, though... >>> >>> Vadim >>> >>>> jakob > > > > > > --------------------------------------------------------------------- > 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