Here you can find the source of getBoolean(ResultSet resultSet, int columnIndex)
public static Boolean getBoolean(ResultSet resultSet, int columnIndex) throws SQLException
//package com.java2s; //License from project: Open Source License import java.sql.ResultSet; import java.sql.SQLException; public class Main { public static Boolean getBoolean(ResultSet resultSet, int columnIndex) throws SQLException { boolean value = resultSet.getBoolean(columnIndex); return resultSet.wasNull() ? null : value; }/*from w w w.ja va 2 s . c o m*/ }