/** * adds the JTS/PostGIS Data types to a PG 8.0+ Connection. * * @param pgconn The PGConnection object to add the types to * @throws SQLException when a SQLException occurs */ public static void addGISTypes80(PGConnection pgconn) throws SQLException { loadTypesAdder("80").addGT((Connection) pgconn, false); }
/** * adds the JTS/PostGIS Data types to a PG 7.2 Connection. * * @param pgconn The PGConnection object to add the types to * @throws SQLException when a SQLException occurs */ public static void addGISTypes72(org.postgresql.PGConnection pgconn) throws SQLException { loadTypesAdder("72").addGT((Connection) pgconn, false); }
protected static TypesAdder getTypesAdder(Driver d) throws SQLException { if (d.getMajorVersion() == 7) { if (d.getMinorVersion() >= 3) { if (ta74 == null) { ta74 = loadTypesAdder("74"); } return ta74; } else { if (ta72 == null) { ta72 = loadTypesAdder("72"); } return ta72; } } else { if (ta80 == null) { ta80 = loadTypesAdder("80"); } return ta80; } }
/** * adds the JTS/PostGIS Data types to a PG 7.3+ Connection. If you use * PostgreSQL jdbc drivers V8.0 or newer, those methods are deprecated due * to some class loader problems (but still work for now), and you may want * to use the method below instead. * * @param pgconn The PGConnection object to add the types to * @throws SQLException when a SQLException occurs * */ public static void addGISTypes(PGConnection pgconn) throws SQLException { loadTypesAdder("74").addGT((Connection) pgconn, false); }
/** * adds the JTS/PostGIS Data types to a PG 8.0+ Connection. * * @param pgconn The PGConnection object to add the types to * @throws SQLException when a SQLException occurs */ public static void addGISTypes80(PGConnection pgconn) throws SQLException { loadTypesAdder("80").addGT((Connection) pgconn, false); }
/** * adds the JTS/PostGIS Data types to a PG 7.2 Connection. * * @param pgconn The PGConnection object to add the types to * @throws SQLException when a SQLException occurs */ public static void addGISTypes72(org.postgresql.PGConnection pgconn) throws SQLException { loadTypesAdder("72").addGT((Connection) pgconn, false); }
/** * adds the JTS/PostGIS Data types to a PG 7.3+ Connection. If you use * PostgreSQL jdbc drivers V8.0 or newer, those methods are deprecated due * to some class loader problems (but still work for now), and you may want * to use the method below instead. * * @param pgconn The PGConnection object to add the types to * @throws SQLException when a SQLException occurs * */ public static void addGISTypes(PGConnection pgconn) throws SQLException { loadTypesAdder("74").addGT((Connection) pgconn, false); }
protected static TypesAdder getTypesAdder(Driver d) throws SQLException { if (d.getMajorVersion() == 7) { if (d.getMinorVersion() >= 3) { if (ta74 == null) { ta74 = loadTypesAdder("74"); } return ta74; } else { if (ta72 == null) { ta72 = loadTypesAdder("72"); } return ta72; } } else { if (ta80 == null) { ta80 = loadTypesAdder("80"); } return ta80; } }