Here you can find the source of getBoolean(ResultSet rs, int index)
public static boolean getBoolean(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 boolean getBoolean(ResultSet rs, int index) throws java.sql.SQLException { if (rs.getObject(index) != null) { return rs.getBoolean(index); }/* w ww . j av a2s .co m*/ throw new RuntimeException("Null value in non-Nullable column"); } }