Code example for ResultSet

Methods: getBlob

0
        return false; 
    } 
 
    public Object nullSafeGet(ResultSet rs, String[] names, Object owner)
            throws HibernateException, SQLException { 
        Blob blob = rs.getBlob(names[0]);
        if (blob == null) {
            return null; 
        } 
//        byte[] bytes = rs.getBytes(names[0]); 
//        if (bytes == null) { 
//            return null; 
//        } 
         
         
        ObjectInputStream in = null;
        try { 
            //in = new ObjectInputStream(new ByteArrayInputStream(bytes)); 
            in = new ObjectInputStream(blob.getBinaryStream());
            return in.readObject();
        } catch (IOException e) {