Here you can find the source of getDouble(ResultSet rs, int index)
public static double getDouble(ResultSet rs, int index) throws java.sql.SQLException
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt import java.sql.ResultSet; public class Main { public static double getDouble(ResultSet rs, int index) throws java.sql.SQLException { if (rs.getObject(index) != null) { return rs.getDouble(index); }/* w w w. j a v a2 s.co m*/ throw new RuntimeException("Null value in non-Nullable column"); } }