Here you can find the source of isDateValue(Object inValue)
java.util.Date
(but not one of the JDBC-specific subclasses).
private static boolean isDateValue(Object inValue)
//package com.java2s; //License from project: Apache License public class Main { /**//from w w w .j ava2 s . co m * Check whether the given value is a <code>java.util.Date</code> * (but not one of the JDBC-specific subclasses). */ private static boolean isDateValue(Object inValue) { return (inValue instanceof java.util.Date && !(inValue instanceof java.sql.Date || inValue instanceof java.sql.Time || inValue instanceof java.sql.Timestamp)); } }