Here you can find the source of isNumeric(int dataType)
public static boolean isNumeric(int dataType)
//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 isNumeric(int dataType) { List<Integer> numericTypes = Arrays.asList(Types.BIGINT, Types.BIT, Types.INTEGER, Types.SMALLINT, Types.TINYINT, Types.DECIMAL, Types.DOUBLE, Types.FLOAT, Types.NUMERIC, Types.REAL); return numericTypes.contains(dataType); }//from w ww. jav a2 s. com }