On Thu, 22 Jul 2010, Tim Bunce wrote:
> The PostgreSQL JDBC drivers seems to have a good Abstract* class
> hierarchy, which is what I'm looking for. There does seem to be
> some PostgreSQL-specific logic in those abstract classes though,
> like appendArray in AbstractJdbc4Connection.
The AbstractJdbc classes are not designed with the intention of being
usable by other database driver implementations and are very postgresql
specific. They are instead designed to be able to share code across the
various JDBC driver versions that can be compiled. When you build the
driver you get a version that matches the JDBC spec of your JDK. So over
the course of history we've offered JDBC 1 -> JDBC 4 spec drivers and
that's what the AbstractJdbc classes facilitate.
Kris Jurka