X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C2D4FD1B1CB for ; Sun, 20 Jun 2004 11:16:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 27978-02 for ; Sun, 20 Jun 2004 14:16:03 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id F0A48D1B172 for ; Sun, 20 Jun 2004 11:15:58 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1Bc371-0000kD-00; Mon, 21 Jun 2004 02:15:59 +1200 Message-ID: <40D59C71.2060904@opencloud.com> Date: Mon, 21 Jun 2004 02:17:21 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pg@fastcrypt.com Cc: "pgsql-jdbc@postgresql.org" Subject: Re: proposal for CallableStatements to handle multiple out References: <1087582419.15586.173.camel@localhost.localdomain> <40D37653.8010302@opencloud.com> <1087602030.15607.190.camel@localhost.localdomain> <40D386F7.3040401@opencloud.com> <1087605866.15619.193.camel@localhost.localdomain> <40D39015.8090507@opencloud.com> <1087655403.15586.206.camel@localhost.localdomain> In-Reply-To: <1087655403.15586.206.camel@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/116 X-Sequence-Number: 10318 Dave Cramer wrote: > No, > > What I was planning on doing is encapsulating all the code that parses > the sql, and rewrites it into a small class, StatementSqlParser > implement SqlParser, then changing the contstructor for > AbstractJdbc1Statment to > > AbstractJdbc1Statement( Connection, SqlParser ) > > Then I could create a second class CallableSqlParser which would deal > with the differences in CallableStatements. So essentially the SqlParser is a strategy object, or maybe strategy + some state? Which object holds what state? -O