Skip site navigation (1) Skip section navigation (2)

Re: query manipulation

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Randall Smith <randall(at)tnr(dot)cc>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: query manipulation
Date: 2007-03-20 22:08:07
Message-ID: 46005B47.2030904@opencloud.com (view raw or flat)
Thread:
Lists: 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

In response to

Responses

pgsql-jdbc by date

Next:From: Randall SmithDate: 2007-03-21 03:28:58
Subject: Re: query manipulation
Previous:From: Randall SmithDate: 2007-03-20 21:59:11
Subject: Re: query manipulation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group