Re: query manipulation - Mailing list pgsql-jdbc

From Randall Smith
Subject Re: query manipulation
Date
Msg-id etq8q1$f63$1@sea.gmane.org
Whole thread Raw
In response to Re: query manipulation  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
Thanks.

I promise I'm not a raving lunatic.  I've actually done this before in
Python, http://pydal.sourceforge.net/, but Java is new territory for me.

Randall

Oliver Jowett wrote:
> Randall Smith wrote:
>> Why couldn't I subclass PreparedStatement, then override
>> PreparedStatement.prepareStatement?
>
> Because PreparedStatement is an interface, not a class.
>
>> When I proxy it, I get about 70 of these:
>>
>> The type PreparedStatementProxy must implement the inherited abstract
>> method Statement.getMaxRows()
>
> Dave meant using java.lang.reflect.Proxy not implementing the whole
> class yourself (which you could do, it's just tedious)
>
> -O
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>               http://www.postgresql.org/docs/faq
>

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: query manipulation
Next
From: Randall Smith
Date:
Subject: Re: query manipulation