pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Randall Smith <randall@tnr.cc>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: query manipulation
Date: Wed, 21 Mar 2007 10:08:07 +1200
Message-ID: <46005B47.2030904@opencloud.com> (raw)
In-Reply-To: <etplfl$q1t$1@sea.gmane.org>
References: <etmr99$4og$1@sea.gmane.org>
	<DD57BABC-5E3B-46EB-B5C7-A6AA78350279@fastcrypt.com>
	<1174339672.7880.107.camel@archimedes>
	<etpc85$ptq$1@sea.gmane.org>
	<54271772-A7CB-47D6-84EC-194A6F2F1A1C@fastcrypt.com>
	<etplfl$q1t$1@sea.gmane.org>

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



view thread (12+ messages)  latest in thread

Message-ID: <46005B47.2030904@opencloud.com>
Permalink:  ../46005B47.2030904@opencloud.com/
Also on:    postgresql.org/message-id/46005B47.2030904@opencloud.com

 · 

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: oliver@opencloud.com, randall@tnr.cc
  Subject: Re: query manipulation
  In-Reply-To: <46005B47.2030904@opencloud.com>
  References: <etmr99$4og$1@sea.gmane.org> <DD57BABC-5E3B-46EB-B5C7-A6AA78350279@fastcrypt.com> <1174339672.7880.107.camel@archimedes> <etpc85$ptq$1@sea.gmane.org> <54271772-A7CB-47D6-84EC-194A6F2F1A1C@fastcrypt.com> <etplfl$q1t$1@sea.gmane.org> <46005B47.2030904@opencloud.com>

* 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