Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 9878A9FB1C4 for ; Wed, 21 Mar 2007 00:29:33 -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 69567-01 for ; Wed, 21 Mar 2007 00:29:28 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 34E849FB1C3 for ; Wed, 21 Mar 2007 00:29:29 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HTrVo-0003pw-II for pgsql-jdbc@postgresql.org; Wed, 21 Mar 2007 04:29:20 +0100 Received: from ip70-171-110-249.no.no.cox.net ([70.171.110.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Mar 2007 04:29:20 +0100 Received: from randall by ip70-171-110-249.no.no.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Mar 2007 04:29:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Randall Smith Subject: Re: query manipulation Date: Tue, 20 Mar 2007 22:28:58 -0500 Lines: 29 Message-ID: References: <1174339672.7880.107.camel@archimedes> <54271772-A7CB-47D6-84EC-194A6F2F1A1C@fastcrypt.com> <46005B47.2030904@opencloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ip70-171-110-249.no.no.cox.net User-Agent: Thunderbird 1.5.0.10 (X11/20070306) In-Reply-To: <46005B47.2030904@opencloud.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/110 X-Sequence-Number: 16824 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 >