protected Map<String, String> getTableComments(DatabaseConfig config) throws SQLException {
        ResultSet rs = dbMetadataUtils.getDatabaseMetaData().getTables(config.getCatalog(), config.getSchemaPattern(), config.getTableNamePattern(), null);
        Map<String, String> answer = new HashMap<String, String>();
        while (rs.next()) {
            answer.put(rs.getString("TABLE_NAME"), rs.getString("REMARKS"));
        }
        closeResultSet(rs);
        return answer;
    }
protected Map<String, String> getTableComments(DatabaseConfig config) throws SQLException {
        ResultSet rs = dbMetadataUtils.getDatabaseMetaData().getTables(config.getCatalog(), config.getSchemaPattern(), config.getTableNamePattern(), null);
        Map<String, String> answer = new HashMap<String, String>();
        while (rs.next()) {
            answer.put(rs.getString("TABLE_NAME"), rs.getString("REMARKS"));
        }
        closeResultSet(rs);
        return answer;
    }
protected Map < String , String > getTableComments ( DatabaseConfig config ) throws SQLException { ResultSet rs = dbMetadataUtils . getDatabaseMetaData ( ) . getTables ( config . getCatalog ( ) , config . getSchemaPattern ( ) , config . getTableNamePattern ( ) , null ) ; Map < String , String > answer = new HashMap < String , String > ( ) ; while ( rs . next ( ) ) { answer . put ( rs . getString ( "TABLE_NAME" ) , rs . getString ( "REMARKS" ) ) ; } closeResultSet ( rs ) ; return answer ; }
获取表名和注释映射

@param config
@return
@throws SQLException
获取表名和注释映射