public static ResultSet pointTable(double x,double y){
  GeometryFactory factory=new GeometryFactory();
  SimpleResultSet rs=new SimpleResultSet();
  rs.addColumn("THE_GEOM",Types.JAVA_OBJECT,"GEOMETRY",0,0);
  rs.addRow(factory.createPoint(new Coordinate(x,y)));
  return rs;
}

public static ResultSet pointTable ( double x , double y ) { GeometryFactory factory = new GeometryFactory ( ) ; SimpleResultSet rs = new SimpleResultSet ( ) ; rs . addColumn ( "THE_GEOM" , Types . JAVA_OBJECT , "GEOMETRY" , 0 , 0 ) ; rs . addRow ( factory . createPoint ( new Coordinate ( x , y ) ) ) ; return rs ; }
this method is called via reflection from the database .
