Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 66116 invoked from network); 25 Feb 2010 10:22:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2010 10:22:36 -0000 Received: (qmail 19721 invoked by uid 500); 25 Feb 2010 10:22:36 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 19655 invoked by uid 500); 25 Feb 2010 10:22:36 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 19648 invoked by uid 99); 25 Feb 2010 10:22:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 10:22:36 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ellis.m.a@gmail.com designates 72.14.220.155 as permitted sender) Received: from [72.14.220.155] (HELO fg-out-1718.google.com) (72.14.220.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 10:22:26 +0000 Received: by fg-out-1718.google.com with SMTP id e21so92157fga.6 for ; Thu, 25 Feb 2010 02:22:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=wrR7ax3sps8wVKGxCbFWXFaiy59D/+saB3L/FN299MQ=; b=nKkQ4T4iJGX8GtOuEQFqGO5gY4P8G6zuC/vf9lKjIaqwVQ+Vy/jRER8GUDWfgMrx18 9lj4LYLOGaBEMQDel6tViDg9NNzwn7k5uN3vlfUIZfzLciuoRe4lPTS9MibbkrnZ/LSN Xw/AU8VY4UJ29PSv7mI+efF+ldVFZ3ZbLJOHs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=H0dMWL6rH48qvzx9m0WeSaADflI07W1RDn/wO67Jz2eHukPiKawsHduSEGuCUc1fQC 9mvKRTGLUiCD03MulLSeSu+DbEaHatEDQRYdx6VuJX//aup2j6TSz68+KmsHTyAxf1kj c92e2ONIJkG8hCycp2314t9xyJ/MkmJvH1tlE= MIME-Version: 1.0 Received: by 10.239.185.137 with SMTP id c9mr103290hbh.69.1267093325479; Thu, 25 Feb 2010 02:22:05 -0800 (PST) In-Reply-To: References: Date: Thu, 25 Feb 2010 10:22:05 +0000 Message-ID: Subject: Re: read large result set in Ibatis3 From: Martin Ellis To: user-java@ibatis.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Davide, Did you see my other posts on this subject? http://www.mail-archive.com/user-java@ibatis.apache.org/msg15588.html http://www.mail-archive.com/user-java@ibatis.apache.org/msg15589.html Perhaps that's what you're after? Martin On 25 February 2010 10:02, Davide Rogora wrot= e: > I agree with Martin. > In my company we use iBatis and we appreciate both result mapping and dyn= amic SQL features, but sometimes we only need dynamic SQL with direct acces= s to the underlying jdbc cursor. > For instance... we use JasperReports for report generation (and dynamic q= ueries are very useful with reports), but we cannot use iBatis because we h= ave memory issues (and bad performances) for large reports; it would be nic= e if we could call a dynamic query and pass the underlying jdbc resultset t= o JasperReports. > > Davide. > > > > -----Messaggio originale----- > Da: Martin Ellis [mailto:ellis.m.a@gmail.com] > Inviato: gioved=C3=AC 18 febbraio 2010 19.27 > A: user-java@ibatis.apache.org > Oggetto: Re: read large result set in Ibatis3 > > >> On 2/18/2010 10:16 AM, Tom=C3=A1=C5=A1 Proch=C3=A1zka wrote: >>> Ideal will be possibility to add method to mapper will return object >>> on which I can call something like getNext(), hasNext() and close(). > > On 18 February 2010 17:44, Guy Rouillier wrote: >> That is very JDBC-ish. =C2=A0From my perspective, iBATIS attempts to hid= e >> all that so that the programmer can just deal with lists of objects. >> ResultHandler lets you change how the list gets built. =C2=A0What you ar= e >> asking is for JDBC to be exposed again, something like >> ResultSetHandler. =C2=A0I guess it would be possible to make that >> pluggable, but then you are undoing much of the framework. > > Only the result handling side of the framework. =C2=A0You'd still have th= e dynamic SQL, and parameter handling without it. =C2=A0That in itself is p= robably enough incentive to use iBATIS. > > Martin > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org > For additional commands, e-mail: user-java-help@ibatis.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org > For additional commands, e-mail: user-java-help@ibatis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org