Java SQL Date Check isDate(int dataType)

Here you can find the source of isDate(int dataType)

Description

is Date

License

Apache License

Declaration

public static boolean isDate(int dataType) 

Method Source Code

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

Related

  1. isChunjie(String date)
  2. isDataTypeDate(int dataType)
  3. isDate(final PropertyDescriptor pd)
  4. isDate(int colType)
  5. isDate(int dataType)
  6. isDate(Object obj)
  7. isDate(String str)
  8. isDate(String val)
  9. isDateOneAfterDateTwo(Date dateOne, Date dateTwo)