Here you can find the source of isDate(int dataType)
public static boolean isDate(int dataType)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean isDate(int dataType) { switch (dataType) { case java.sql.Types.DATE: case java.sql.Types.TIME: case java.sql.Types.TIMESTAMP: return true; default://from w w w . j av a 2 s .c o m return false; } } }