Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 46609 invoked from network); 30 Nov 2009 16:42:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Nov 2009 16:42:12 -0000 Received: (qmail 76610 invoked by uid 500); 30 Nov 2009 16:42:11 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 76589 invoked by uid 500); 30 Nov 2009 16:42:11 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 76581 invoked by uid 99); 30 Nov 2009 16:42:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 16:42:11 +0000 X-ASF-Spam-Status: No, hits=-6.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.43.133] (HELO sca-es-mail-2.sun.com) (192.18.43.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 16:42:09 +0000 Received: from fe-sfbay-10.sun.com ([192.18.43.129]) by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id nAUGfimI012068 for ; Mon, 30 Nov 2009 08:41:48 -0800 (PST) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KTX00100KOQK300@fe-sfbay-10.sun.com> for derby-dev@db.apache.org; Mon, 30 Nov 2009 08:41:44 -0800 (PST) Received: from richard-hillegas-computer.local ([unknown] [129.150.241.171]) by fe-sfbay-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KTX007ACL1JSCF0@fe-sfbay-10.sun.com> for derby-dev@db.apache.org; Mon, 30 Nov 2009 08:41:44 -0800 (PST) Date: Mon, 30 Nov 2009 08:41:44 -0800 From: Rick Hillegas Subject: Re: Regarding Stored Procedures In-reply-to: <22b99aa10911250050p6cd2b06bl13616b47f00c94bc@mail.gmail.com> Sender: Richard.Hillegas@Sun.COM To: derby-dev@db.apache.org Message-id: <4B13F5C8.9010509@sun.com> References: <22b99aa10911250050p6cd2b06bl13616b47f00c94bc@mail.gmail.com> User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) Hi Shazin, Compilation for these method calls is handled by StaticMethodCallNode. StaticMethodCallNode.generateExpression() generates the byte code needed to invoke the user-defined routine at execution time. If you are interested in puzzling through the details, I recommend viewing the abstract syntax trees in xml, as shown on DERBY-4415. This will help you see what classes are involved during compilation. The main execution-time class is a generated class, which Derby creates during compilation. If you want to examine the generated class, follow the instructions here: http://wiki.apache.org/db-derby/DumpClassFile Hope this helps, -Rick Shazin Sadakath wrote: > Hi All, > > Can anyone tell me what happens and what are the classes associated with > below SQL Command send via a JDBC statement to Derby Engine. > > Statement 1 > "CALL XXX()" > > Statement 2 > "VALUES YYY()" > > XXX() is a Procedure > YYY() is a Function > > Thanks in advance, > Shazin