Java SQL Type isDigitalType(int sqlType)

Here you can find the source of isDigitalType(int sqlType)

Description

is Digital Type

License

Open Source License

Declaration

public static boolean isDigitalType(int sqlType) 

Method Source Code

//package com.java2s;

import java.sql.Types;

public class Main {

    public static boolean isDigitalType(int sqlType) {
        switch (sqlType) {
        case Types.NUMERIC:
        case Types.DECIMAL:
        case Types.SMALLINT:
        case Types.INTEGER:
        case Types.BIGINT:
        case Types.REAL:
        case Types.FLOAT:
        case Types.DOUBLE:
            return true;

        default:/*from w w w.j av a2 s  .  co m*/
            return false;
        }
    }
}

Related

  1. isBoolean(int dataType)
  2. isBoolean(int dataType)
  3. isCharacterTypeWithLength(int aSqlType)
  4. isClobType(int sqlType)
  5. isDataNeedsQuotes(int type)
  6. isJDBCType(final int type)
  7. isLobColumn(int dataType)
  8. isNativeType(final Class type)
  9. isNumberic(int type)