// PointRuntime.java import java.sql.SQLException; import oracle.sql.STRUCT; public class PointRuntime { static public double jdistance (STRUCT s1, STRUCT s2) throws SQLException { Point p1 = new Point (s1); Point p2 = new Point (s2); return p1.distance (p2); } static public STRUCT moveBy (STRUCT s1, STRUCT s2) throws SQLException { Point p1 = new Point (s1); Point p2 = new Point (s2); p1.moveBy (p2); return p1.toSTRUCT (); } }