Java SQL Date Check isDateType(Class targetType)

Here you can find the source of isDateType(Class targetType)

Description

is Date Type

License

Apache License

Declaration

public static boolean isDateType(Class<?> targetType) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static boolean isDateType(Class<?> targetType) {
        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;
    }/* w w w  .j a  va2  s.c o  m*/
}

Related

  1. isDate(int dataType)
  2. isDate(Object obj)
  3. isDate(String str)
  4. isDate(String val)
  5. isDateOneAfterDateTwo(Date dateOne, Date dateTwo)
  6. isDateValue(Class inValueType)
  7. isDateValue(Object inValue)