public void eachRow(String sql, Map map,
                        @ClosureParams(value=SimpleType.class, options="java.sql.ResultSetMetaData") Closure metaClosure, int offset, int maxRows,
                        @ClosureParams(value=SimpleType.class, options="groovy.sql.GroovyResultSet") Closure rowClosure) throws SQLException {
        eachRow(sql, singletonList(map), metaClosure, offset, maxRows, rowClosure);
    }
public void eachRow ( String sql , Map map , @ ClosureParams ( value = SimpleType . class , options = "java.sql.ResultSetMetaData" ) Closure metaClosure , int offset , int maxRows , @ ClosureParams ( value = SimpleType . class , options = "groovy.sql.GroovyResultSet" ) Closure rowClosure ) throws SQLException { eachRow ( sql , singletonList ( map ) , metaClosure , offset , maxRows , rowClosure ) ; }
A variant of {@link #eachRow(String, java.util.List, groovy.lang.Closure, int, int, groovy.lang.Closure)}
allowing the named parameters to be supplied in a map.

@param sql         the sql statement
@param map         a map containing the named parameters
@param offset      the 1-based offset for the first row to be processed
@param maxRows     the maximum number of rows to be processed
@param metaClosure called for meta data (only once after sql execution)
@param rowClosure  called for each row with a GroovyResultSet
@throws SQLException if a database access error occurs
@since 1.8.7