Java SQL Type isNumeric(int dataType)

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

Description

is Numeric

License

Open Source License

Declaration

public static boolean isNumeric(int dataType) 

Method Source Code

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

Related

  1. isLobColumn(int dataType)
  2. isNativeType(final Class type)
  3. isNumberic(int type)
  4. isNumberType(int aSqlType)
  5. isNumberType(int sqlType)
  6. isNumeric(int dataType)
  7. isNumeric(int pColumnType)
  8. isNumeric(int sqlType)
  9. isNumeric(int sqlType)