Java SQL Type isBoolean(int dataType)

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

Description

is Boolean

License

Open Source License

Declaration

public static boolean isBoolean(int dataType) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean isBoolean(int dataType) {
        switch (dataType) {
        case java.sql.Types.BIT:
        case java.sql.Types.BOOLEAN:
            return true;
        default:/*from   w  w  w  .  j  a  va  2s.  co m*/
            return false;
        }
    }
}

Related

  1. indexOf(Object[] array, Object objectToFind)
  2. invokeJdbcMethod(Class interfaceClass, String methodName, Class[] argTypes, Object target, Object[] args)
  3. isBinary(int dataType)
  4. isBinary(int jdbcType)
  5. isBoolean(int ct)
  6. isBoolean(int dataType)
  7. isCharacterTypeWithLength(int aSqlType)
  8. isClobType(int sqlType)
  9. isDataNeedsQuotes(int type)