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

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