Code example for ResultSet

Methods: getDouble, getString

0
    } 
 
    public Object nullSafeGet(ResultSet rs, String[] names, Object owner)
            throws HibernateException, SQLException { 
 
        double minx = rs.getDouble(names[0]);
        double miny = rs.getDouble(names[1]);
        double maxx = rs.getDouble(names[2]);
        double maxy = rs.getDouble(names[3]);
        String s = rs.getString(names[4]);
         
        //Blob blob = rs.getBlob(names[4]); 
        //if (blob != null) { 
        CoordinateReferenceSystem crs = null;
        if (s != null) {
            try { 
                if (storeCRSAsWKT) {
                    crs = CRS.parseWKT(s);
                } 
                else { 
                    crs = CRS.decode(s);