JDBC4 for datasource code

Поиск
Список
Период
Сортировка
Искать

JDBC4 for datasource code

От:
Kris Jurka <books@ejurka.com>
Дата:

I have a patch for making the datasource code compile with JDK1.6. 
http://ejurka.com/pgsql/patches/jdbc4.patch

It does things similar to the main driver splitting off different jdbcN 
directories whose files extend from each other.  The one complication is 
that for the regular driver the user just asks for a connection and gets 
it while for the datasource stuff they must specify which datasource they 
want.  The easiest compilation is have a Jdbc4PoolingDataSource and a 
Jdbc23PoolingDataSource, but we just got rid of this idea a couple of 
releases ago and I'd prefer not to return to it.  What I've done with this 
patch is have a dummy top level class whose sole job is to extend one of 
the jdbcN specific classes via ant's filter facility.  It's not the best, 
but I think it's the way to go.

Any other ideas/problems?

Kris Jurka

FAQ