Here you can find the source of getFloatOfNull(ResultSet rs, String columnName)
public static Float getFloatOfNull(ResultSet rs, String columnName) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static Float getFloatOfNull(ResultSet rs, String columnName) throws SQLException { float fVal = rs.getFloat(columnName); if (rs.wasNull()) { return null; }/*from w w w .j a v a 2 s . c o m*/ return new Float(fVal); } }