Re: Caching driver on pgFoundry? - Mailing list pgsql-jdbc

From Heikki Linnakangas
Subject Re: Caching driver on pgFoundry?
Date
Msg-id 46E3B609.10106@enterprisedb.com
Whole thread Raw
In response to Re: Caching driver on pgFoundry?  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
Dave Cramer wrote:
> It's simpler, there's about half a dozen classes and one if statement as
> opposed to implementing the Connection and Statement interfaces for 3
> versions of  jdbc and yet another build system that does the same.

I think it's reasonable to assume that the cache will only be used in
new applications, so you don't need to support as many JDBC versions as
the driver itself.

Actually, do you really need to have a separate version for each JDBC
version? Wouldn't a wrapper written and compiled with JDBC4 work with
older JDKs as well, as long as the application doesn't use the JDBC4
features? I might be missing something, I don't fully understand how it
works in the core driver either.

Have you considered using java.lang.reflect.Proxy? It has some overhead,
but is it significant in modern JVMs?

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Caching driver on pgFoundry?
Next
From: "Andy Redhead"
Date:
Subject: Re: Caching driver on pgFoundry?