Re: proposal for CallableStatements to handle multiple out - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: proposal for CallableStatements to handle multiple out
Date
Msg-id 40D59C71.2060904@opencloud.com
Whole thread Raw
In response to Re: proposal for CallableStatements to handle multiple out  (Dave Cramer <pg@fastcrypt.com>)
Responses Re: proposal for CallableStatements to handle multiple out  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: [HACKERS] JDBC prepared statements: actually not server prepared
Next
From: André Gomes
Date:
Subject: Question about encoding