Here you can find the source of isDate(int dataType)
public static boolean isDate(int dataType)
//package com.java2s; //License from project: Apache License import java.sql.Types; import java.util.Arrays; import java.util.List; public class Main { public static boolean isDate(int dataType) { List<Integer> validTypes = Arrays.asList(Types.DATE, Types.TIME, Types.TIMESTAMP); return validTypes.contains(dataType); }//from w w w. j ava2 s.com }