pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: proposal for CallableStatements to handle multiple out
Date: Mon, 21 Jun 2004 08:53:41 -0400
Message-ID: <1087822421.6047.7.camel@localhost.localdomain> (raw)
In-Reply-To: <40D59C71.2060904@opencloud.com>
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>
	<40D59C71.2060904@opencloud.com>

Oliver,


It is more of a Strategy object. As you pointed out I have to use a
strategy object.

I'm not interested in "winning"; I'm more interested in implementing
this in such a way as to not muck up the current code, and add
CallableStatement functionality in such a way that if, in the future
postgres supports multiple out parms, it will be easy to change.

Dave

On Sun, 2004-06-20 at 10:17, Oliver Jowett wrote:
> 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
> 
> 
> 
> !DSPAM:40d59c25234101391917376!
> 
> 
-- 
Dave Cramer
519 939 0336
ICQ # 14675561




view thread (10+ messages)

Message-ID: <1087822421.6047.7.camel@localhost.localdomain>
Permalink:  ../1087822421.6047.7.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1087822421.6047.7.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, oliver@opencloud.com
  Subject: Re: proposal for CallableStatements to handle multiple out
  In-Reply-To: <1087822421.6047.7.camel@localhost.localdomain>
  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> <40D59C71.2060904@opencloud.com> <1087822421.6047.7.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox