/** * Register GEOMETRY type and register spatial functions * @param connection Active H2 connection * @param BundleSymbolicName OSGi Bundle symbolic name * @param BundleVersion OSGi Bundle version */ public static void initSpatialExtension(Connection connection, String BundleSymbolicName, String BundleVersion) throws SQLException { String packagePrepend = BundleSymbolicName+":"+BundleVersion+":"; addSpatialFunctions(connection,packagePrepend); registerGeometryType(connection); connection.commit(); }
/** * Register GEOMETRY type and register spatial functions * @param connection Active H2 connection * @throws java.sql.SQLException */ public static void initSpatialExtension(Connection connection) throws SQLException { addSpatialFunctions(connection,""); registerGeometryType(connection); registerSpatialTables(connection); }