Java SQL Date isSimpleType(Object obj)

Here you can find the source of isSimpleType(Object obj)

Description

is Simple Type

License

Open Source License

Declaration

public static boolean isSimpleType(Object obj) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.sql.Date;
import java.sql.Time;

import java.util.Locale;

public class Main {
    public static boolean isSimpleType(Object obj) {
        if (obj == null)
            return true;
        return obj instanceof String || obj instanceof Integer || obj instanceof Long || obj instanceof Float
                || obj instanceof Double || obj instanceof Boolean || obj instanceof Locale || obj instanceof Date
                || obj instanceof Time;
    }//  w w w. j  a  v a 2  s .c  om
}

Related

  1. getWeekOfMonth(String year, String month, String day)
  2. getYearLater()
  3. hexToBin(String sHexString)
  4. isLastDayOfMonth(String theDataStr)
  5. isSimpleColumnType(Class columnType)
  6. issue20()
  7. now()
  8. nowPlus(int parts, int value)
  9. parseStringValue(Class returnType, String value)