Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id C33509FB294 for ; Tue, 20 Mar 2007 19:08:19 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 50803-01 for ; Tue, 20 Mar 2007 19:08:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 9516E9FB368 for ; Tue, 20 Mar 2007 19:08:13 -0300 (ADT) Received: from 222-152-161-134.jetstream.xtra.co.nz ([222.152.161.134] helo=[10.1.1.3]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1HTmUy-0003Q3-SI; Wed, 21 Mar 2007 10:08:09 +1200 Message-ID: <46005B47.2030904@opencloud.com> Date: Wed, 21 Mar 2007 10:08:07 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Randall Smith CC: pgsql-jdbc@postgresql.org Subject: Re: query manipulation References: <1174339672.7880.107.camel@archimedes> <54271772-A7CB-47D6-84EC-194A6F2F1A1C@fastcrypt.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/109 X-Sequence-Number: 16823 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