Re: query manipulation - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: query manipulation
Date
Msg-id 46005B47.2030904@opencloud.com
Whole thread Raw
In response to Re: query manipulation  (Randall Smith <randall@tnr.cc>)
Responses Re: query manipulation  (Randall Smith <randall@tnr.cc>)
List pgsql-jdbc
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

pgsql-jdbc by date:

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