Java SQL Date Check isDateValue(Object inValue)

Here you can find the source of isDateValue(Object inValue)

Description

Check whether the given value is a java.util.Date (but not one of the JDBC-specific subclasses).

License

Apache License

Declaration

private static boolean isDateValue(Object inValue) 

Method Source Code

//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));
    }
}

Related

  1. isDate(String str)
  2. isDate(String val)
  3. isDateOneAfterDateTwo(Date dateOne, Date dateTwo)
  4. isDateType(Class targetType)
  5. isDateValue(Class inValueType)