Java SQL Type isNumeric(int pColumnType)

Here you can find the source of isNumeric(int pColumnType)

Description

is Numeric

License

Open Source License

Declaration

private static boolean isNumeric(int pColumnType) 

Method Source Code


//package com.java2s;
import java.sql.*;

public class Main {
    private static boolean isNumeric(int pColumnType) {
        return (pColumnType == Types.INTEGER || pColumnType == Types.DECIMAL || pColumnType == Types.TINYINT
                || pColumnType == Types.BIGINT || pColumnType == Types.DOUBLE || pColumnType == Types.FLOAT
                || pColumnType == Types.NUMERIC || pColumnType == Types.REAL || pColumnType == Types.SMALLINT);
    }/* www  . j  av  a  2 s  . c  o  m*/
}

Related

  1. isNumberic(int type)
  2. isNumberType(int aSqlType)
  3. isNumberType(int sqlType)
  4. isNumeric(int dataType)
  5. isNumeric(int dataType)
  6. isNumeric(int sqlType)
  7. isNumeric(int sqlType)
  8. isNumericType(int datatype)
  9. isNumericType(int type)