PostGIS-JDBC provides the spatial data structures needed to use PostgreSQL-JDBC with spatial tables.