Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 19024 invoked from network); 12 Sep 2008 15:41:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2008 15:41:04 -0000 Received: (qmail 49844 invoked by uid 500); 12 Sep 2008 15:40:58 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 49835 invoked by uid 500); 12 Sep 2008 15:40:58 -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 49824 invoked by uid 99); 12 Sep 2008 15:40:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 08:40:58 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fatboysuns@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 15:39:58 +0000 Received: by ug-out-1314.google.com with SMTP id s2so1181764uge.1 for ; Fri, 12 Sep 2008 08:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=I4GwPTHBv3iN0B2K/4vDLwYgrEa96Ukxjhd6Wju5Pz4=; b=YhEVqnazjXbbczZgzmqWCsGiW8KbP2T+lsuTkv37pW9T/pj2QWLpJaYSLhGS7UUtJw E4ZqaVYVQYQ62zJ+Z1amrtvtc2OkOxZCRzPc4OLhCDhAzN5vk9D9GCV58xkUsBWwOrAq faFS1gTfZc7RqdxjVAgl16/z2tcD1zeLtgDRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=R9cIvHWIGwYUQEYJ8rlY8N0qBmx4h4xuj1g7XoKIKVo7fGTg7Wo6tizyd6mjMsg7hL WG/HiJSjNFoYjPJfKW4C70uIE2zKBJYId67HYY1HCjThSO60p1qW2LPccLACyxWoMS7c X5pw56jCV/K8eDv6I5dB1aye9OWQ54/zvM/Kc= Received: by 10.67.20.11 with SMTP id x11mr9492508ugi.79.1221234019772; Fri, 12 Sep 2008 08:40:19 -0700 (PDT) Received: by 10.67.123.10 with HTTP; Fri, 12 Sep 2008 08:40:19 -0700 (PDT) Message-ID: Date: Fri, 12 Sep 2008 08:40:19 -0700 From: "Sundar Sankar" To: user-java@ibatis.apache.org Subject: Re: IBATI - PROCEDURE - RESULT SET - OUT PARAM In-Reply-To: <19455910.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_128305_10233843.1221234019785" References: <19455910.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_128305_10233843.1221234019785 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Please read the Ibatis documentation and you will find similar examples there. On Fri, Sep 12, 2008 at 6:33 AM, my screen1 wrote: > > Hi, > > I am calling a procedure from ibatis layer, where the procedure returns a > result set ( as normal select ) and an output parameter. > > My procedure will be as below: > > procedure test(count integer out) > { > select name,no from employee; > set count=select count(*) from employee; > > } > Could you plz help me in how to achieve this throuh Ibatis? Also how can I > read that data in Java layer? > > Thanks > Shiva. > -- > View this message in context: > http://www.nabble.com/IBATI---PROCEDURE---RESULT-SET---OUT-PARAM-tp19455910p19455910.html > Sent from the iBATIS - User - Java mailing list archive at Nabble.com. > > ------=_Part_128305_10233843.1221234019785 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Please read the Ibatis documentation and you will find similar examples there.

On Fri, Sep 12, 2008 at 6:33 AM, my screen1 <shiva.shankarp@target.com> wrote:

Hi,

I am calling a procedure from ibatis layer, where the procedure returns a
result set ( as normal select ) and an output parameter.

My procedure will be as below:

 procedure test(count integer out)
 {
    select name,no from employee;
    set count=select count(*) from employee;

 }
Could you plz help me in how to achieve this throuh Ibatis? Also how can I
read that data in Java layer?

Thanks
Shiva.
--
View this message in context: http://www.nabble.com/IBATI---PROCEDURE---RESULT-SET---OUT-PARAM-tp19455910p19455910.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


------=_Part_128305_10233843.1221234019785--