Java SQL Type isStringType(int type)

Here you can find the source of isStringType(int type)

Description

Returns true if type is some string-like type: CHAR, VARCHAR.

License

Open Source License

Declaration

public static boolean isStringType(int type) 

Method Source Code


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

public class Main {
    /**//from w  ww  . j  a  v  a  2  s .c  o  m
     * Returns <code>true</code> if type is some string-like type: CHAR, VARCHAR.
     */
    public static boolean isStringType(int type) {
        return (type == Types.VARCHAR) || (type == Types.CHAR);
    }
}

Related

  1. isString(int colType)
  2. isStringType(int dataType)
  3. isStringType(int sqlType)
  4. isStringType(int sqlType)
  5. isStringType(int type)
  6. isSupportedDataType(int type, String typeName)
  7. isTableMissing(Connection con)
  8. isTextType(int columnType)
  9. isValidReaderOrStream(final Object o)