Re: JDBC changes for 7.2... some questions...

Поиск
Список
Период
Сортировка
Искать
От
Barry Lind
Тема
Re: JDBC changes for 7.2... some questions...
Дата
Msg-id
3B86B51E.3090205@xythos.com
Список
Дерево обсуждения
JDBC changes for 7.2... some questions... Ned Wolpert <ned.wolpert@knowledgenet.com>
Re: JDBC changes for 7.2... some questions... Tom Lane <tgl@sss.pgh.pa.us>
Re: JDBC changes for 7.2... some questions... Ned Wolpert <ned.wolpert@knowledgenet.com>
Re: JDBC changes for 7.2... some questions... Tom Lane <tgl@sss.pgh.pa.us>
Re: JDBC changes for 7.2... some questions... Ned Wolpert <ned.wolpert@knowledgenet.com>
Re: JDBC changes for 7.2... some questions... Ned Wolpert <ned.wolpert@knowledgenet.com>
Re: JDBC changes for 7.2... some questions... Peter Eisentraut <peter_e@gmx.net>
Re: JDBC changes for 7.2... some questions... Ned Wolpert <ned.wolpert@knowledgenet.com>
Re: JDBC changes for 7.2... some questions... Rene Pijlman <rpijlman@wanadoo.nl>
Re: JDBC changes for 7.2... some questions... Dave Harkness <daveh@MEconomy.com>
Re: JDBC changes for 7.2... some questions... Ned Wolpert <ned.wolpert@knowledgenet.com>
JDBC changes for 7.2 - wish list item Peter Wiley <wiley@mmspl.com.au>
Re: JDBC changes for 7.2 - wish list item Rene Pijlman <rpijlman@wanadoo.nl>
The reason why it isn't accessible is that some implementations of 
connection pools (including one I have written), return a wrapper object 
around the connection object.  This wrapper object just implements the 
java.sql.Connection interface defined by the jdbc spec.  If the wrapped 
connection (an org.postgresql.Connection object in this case) has extra 
methods (such as getInsertedOID()) there is no way to access those extra 
methods as the wrapper does not contain them.

If you were using the postgres connection object directly you would 
simply cast the object to an org.postgresql.Connection and then you 
would be able to access the extra methods.  But you can't in this case 
because you are dealing with a wrapper object (i.e. something like 
com.foo.connectionpool.Connection).

thanks,
--Barry

Peter Eisentraut wrote:
> Ned Wolpert writes:
> 
> 
>>  Now, I understand that in the Statement class, we have getInsertedOID() in the
>>table.  However, the problem we run into is that this isn't accessiable if we
>>use something like poolman to provide database pooling of connections.  (You
>>get the poolMan Statement object which is wraps the Statement classes of the
>>driver.)
>>
> 
> I think no one has asked yet *why* it isn't "accessible".
> 
> Maybe the getInsertedOID function needs to be moved to some other class?
> 
> 


В списке pgsql-jdbc по дате отправления
От: Ned Wolpert
Дата:
От: Bruce Momjian
Дата:
FAQ