Here you can find the source of isBoolean(int dataType)
public static boolean isBoolean(int dataType)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean isBoolean(int dataType) { switch (dataType) { case java.sql.Types.BIT: case java.sql.Types.BOOLEAN: return true; default:/*from w w w . j a va 2s. co m*/ return false; } } }