return Types.INTEGER;
if (fieldSubType == 1) return Types.NUMERIC; else if (fieldSubType == 2) return Types.DECIMAL; else return Types.INTEGER;
    private int getDataType (short fieldType, short fieldSubType, short fieldScale) {        if (fieldScale < 0) {            switch (fieldType) {                case smallint_type:                case integer_type:                case int64_type:                case double_type:                    // NOTE: can't be BIGINT because of scale                    if (fieldSubType == 2)                        return Types.DECIMAL;                    else                        return Types.NUMERIC;                default:                    break;            }        }        switch (fieldType) {            case smallint_type:                return Types.SMALLINT;            case integer_type:                return Types.INTEGER;            case double_type:            case d_float_type:                return Types.DOUBLE;            case float_type:                return Types.FLOAT;            case char_type:                return Types.CHAR;            case varchar_type:                return Types.VARCHAR;            case timestamp_type:                return Types.TIMESTAMP;            case time_type:                return Types.TIME;            case date_type:                return Types.DATE;            case int64_type:                //This might need some help for long mapping                if (fieldSubType == 1)                    return Types.NUMERIC;                else if (fieldSubType == 2)                    return Types.DECIMAL;                else                    return Types.BIGINT;            case blob_type:                if (fieldSubType < 0)                    return Types.BLOB;                else if (fieldSubType == 0)                    return Types.LONGVARBINARY;                else if (fieldSubType == 1)                    return Types.LONGVARCHAR;                else                    return Types.OTHER;            case quad_type:                return Types.OTHER;            default:                return Types.NULL;        }    }