Here you can find the source of getDoubleValue(ResultSet resultSet, int columnIndex)
@SuppressWarnings("UnnecessaryBoxing") public static Double getDoubleValue(ResultSet resultSet, int columnIndex) throws SQLException
//package com.java2s; //License from project: Apache License import java.sql.ResultSet; import java.sql.SQLException; public class Main { /**/*from w w w. ja v a 2 s.c o m*/ * Return any double value. */ @SuppressWarnings("UnnecessaryBoxing") public static Double getDoubleValue(ResultSet resultSet, int columnIndex) throws SQLException { double value = resultSet.getDouble(columnIndex); if (resultSet.wasNull()) { return null; } return Double.valueOf(value); } /** * Return any double value. */ @SuppressWarnings("UnnecessaryBoxing") public static Double getDoubleValue(ResultSet resultSet, String columnName) throws SQLException { double value = resultSet.getDouble(columnName); if (resultSet.wasNull()) { return null; } return Double.valueOf(value); } }