Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id C08B29FB279 for ; Tue, 20 Mar 2007 18:59:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 93136-08 for ; Tue, 20 Mar 2007 18:59:37 -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 BDAEE9FB277 for ; Tue, 20 Mar 2007 18:59:43 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HTmMb-0001FD-JG for pgsql-jdbc@postgresql.org; Tue, 20 Mar 2007 22:59:29 +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 ; Tue, 20 Mar 2007 22:59:29 +0100 Received: from randall by ip70-171-110-249.no.no.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Mar 2007 22:59:29 +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 16:59:11 -0500 Lines: 17 Message-ID: References: <1174339672.7880.107.camel@archimedes> <54271772-A7CB-47D6-84EC-194A6F2F1A1C@fastcrypt.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: <54271772-A7CB-47D6-84EC-194A6F2F1A1C@fastcrypt.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/108 X-Sequence-Number: 16822 Why couldn't I subclass PreparedStatement, then override PreparedStatement.prepareStatement? When I proxy it, I get about 70 of these: The type PreparedStatementProxy must implement the inherited abstract method Statement.getMaxRows() Randall Dave Cramer wrote: > You don't want to do that you want proxy PreparedStatement, then > override PreparedStatement.prepareStatement > > He is checking the return type of every method to see what is returning > a prepared statement > > Dave