Here you can find the source of isNumeric(int dataType)
public static boolean isNumeric(int dataType)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean isNumeric(int dataType) { switch (dataType) { case java.sql.Types.NUMERIC: case java.sql.Types.DECIMAL: case java.sql.Types.BIT: case java.sql.Types.TINYINT: case java.sql.Types.SMALLINT: case java.sql.Types.INTEGER: case java.sql.Types.BIGINT: case java.sql.Types.REAL: case java.sql.Types.DOUBLE: case java.sql.Types.FLOAT: return true; default://from www. j av a 2 s . c o m return false; } } }