Java SQL Type isSupportedDataType(int type, String typeName)

Here you can find the source of isSupportedDataType(int type, String typeName)

Description

is Supported Data Type

License

LGPL

Declaration

private static boolean isSupportedDataType(int type, String typeName) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.sql.Types;

public class Main {
    private static boolean isSupportedDataType(int type, String typeName) {
        switch (type) {
        case Types.BLOB:
        case Types.BINARY:
        case Types.VARBINARY:
        case Types.STRUCT:
        case Types.DISTINCT:
        case Types.REF:
        case Types.JAVA_OBJECT:
        case Types.OTHER:
        case Types.ARRAY:
            return false;
        default://from ww w . j  a v a  2 s  .  com
            return true;
        }
    }
}

Related

  1. isStringType(int dataType)
  2. isStringType(int sqlType)
  3. isStringType(int sqlType)
  4. isStringType(int type)
  5. isStringType(int type)
  6. isTableMissing(Connection con)
  7. isTextType(int columnType)
  8. isValidReaderOrStream(final Object o)
  9. isXMLType(int type)