Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 56650 invoked from network); 29 Mar 2005 19:33:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Mar 2005 19:33:15 -0000 Received: (qmail 77895 invoked by uid 500); 29 Mar 2005 19:33:14 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 77870 invoked by uid 500); 29 Mar 2005 19:33:14 -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 77856 invoked by uid 99); 29 Mar 2005 19:33:14 -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-SPF: pass (hermes.apache.org: domain of gcjod-ojb-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 29 Mar 2005 11:33:13 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DGMQm-0005b1-B4 for ojb-dev@db.apache.org; Tue, 29 Mar 2005 21:31:16 +0200 Received: from ip68-100-13-69.dc.dc.cox.net ([68.100.13.69]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2005 21:31:16 +0200 Received: from vadim by ip68-100-13-69.dc.dc.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2005 21:31:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ojb-dev@db.apache.org From: Vadim Gritsenko Subject: Re: Query and QueryByCriteria Date: Tue, 29 Mar 2005 14:31:49 -0500 Lines: 54 Message-ID: References: <4244451F.9070003@gmx.ch> <42467727.6000900@gmx.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip68-100-13-69.dc.dc.cox.net User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en In-Reply-To: <42467727.6000900@gmx.ch> Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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? > 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 ...". 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