Java SQL Type isTextType(int columnType)

Here you can find the source of isTextType(int columnType)

Description

is Text Type

License

Open Source License

Declaration

public static boolean isTextType(int columnType) 

Method Source Code

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

import java.sql.Types;

public class Main {
    public static boolean isTextType(int columnType) {
        if (columnType == Types.CHAR || columnType == Types.DATE || columnType == Types.LONGNVARCHAR
                || columnType == Types.NCHAR || columnType == Types.NVARCHAR || columnType == Types.TIME
                || columnType == Types.TIMESTAMP || columnType == Types.VARCHAR || columnType == Types.OTHER)

            return true;
        else/*from  w  w w.ja va2  s .com*/
            return false;
    }
}

Related

  1. isStringType(int sqlType)
  2. isStringType(int type)
  3. isStringType(int type)
  4. isSupportedDataType(int type, String typeName)
  5. isTableMissing(Connection con)
  6. isValidReaderOrStream(final Object o)
  7. isXMLType(int type)
  8. jdbcType2javaType(int jdbcType)
  9. jdbcTypeToKylinDataType(int sqlType)