List of utility methods to do SQL Date Check
boolean | isDateType(Class> targetType) is Date Type if (targetType == null) return false; return targetType == java.util.Date.class || targetType == java.sql.Timestamp.class || targetType == java.sql.Date.class || targetType == java.sql.Time.class; |
boolean | isDateValue(Class> inValueType) Check whether the given value is a java.util.Date (but not one of the JDBC-specific subclasses). return (java.util.Date.class.isAssignableFrom(inValueType) && !(java.sql.Date.class.isAssignableFrom(inValueType) || java.sql.Time.class.isAssignableFrom(inValueType) || java.sql.Timestamp.class.isAssignableFrom(inValueType))); |
boolean | isDateValue(Object inValue) Check whether the given value is a java.util.Date (but not one of the JDBC-specific subclasses).
return (inValue instanceof java.util.Date && !(inValue instanceof java.sql.Date || inValue instanceof java.sql.Time || inValue instanceof java.sql.Timestamp)); |