DBMetadata-swing/src/main/java/com/github/abel533/component/DBData.java
public static List<IntrospectedColumn> selectColumns(
            String searchText, String searchComment, MatchType matchType, boolean caseSensitive) {
        List<IntrospectedColumn> answer = new ArrayList<IntrospectedColumn>();
        if (tables == null || tables.size() == 0) {
            return answer;
        }
        if (StringUtils.isEmpty(searchText) && StringUtils.isEmpty(searchComment)) {
            return null;
        }
        for (IntrospectedTable table : tables) {
            for (IntrospectedColumn column : table.getAllColumns()) {
                if (column.filter(searchText, searchComment, matchType, caseSensitive)) {
                    answer.add(column);
                }
            }
        }
        sortColumns(answer);
        return answer;
    }
public static List<IntrospectedColumn> selectColumns(
            String searchText, String searchComment, MatchType matchType, boolean caseSensitive) {
        List<IntrospectedColumn> answer = new ArrayList<IntrospectedColumn>();
        if (tables == null || tables.size() == 0) {
            return answer;
        }
        if (StringUtils.isEmpty(searchText) && StringUtils.isEmpty(searchComment)) {
            return null;
        }
        for (IntrospectedTable table : tables) {
            for (IntrospectedColumn column : table.getAllColumns()) {
                if (column.filter(searchText, searchComment, matchType, caseSensitive)) {
                    answer.add(column);
                }
            }
        }
        sortColumns(answer);
        return answer;
    }
查询字段

@param searchText
@param searchComment
@param matchType
@param caseSensitive
@return