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

Re: query manipulation

From: Randall Smith <randall(at)tnr(dot)cc>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: query manipulation
Date: 2007-03-20 21:59:11
Message-ID: etplfl$q1t$1@sea.gmane.org (view raw or flat)
Thread:
Lists: pgsql-jdbc
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


In response to

Responses

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2007-03-20 22:08:07
Subject: Re: query manipulation
Previous:From: Dave CramerDate: 2007-03-20 19:47:13
Subject: Re: query manipulation

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