MCPcopy Index your code
hub / github.com/apache/groovy / callWithAllRows

Method callWithAllRows

subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java:3835–3839  ·  view source on GitHub ↗

Performs a stored procedure call with the given parameters, calling the closure once with all result objects, and also returning a list of lists with the rows of the ResultSet(s). Use this when calling a stored procedure that utilizes both output parameters and returns multiple ResultSets. O

(GString gstring, @ClosureParams(value=SimpleType.class, options="java.lang.Object[]") Closure closure)

Source from the content-addressed store, hash-verified

3833 * @see #callWithAllRows(String, List, Closure)
3834 */
3835 public List<List<GroovyRowResult>> callWithAllRows(GString gstring, @ClosureParams(value=SimpleType.class, options="java.lang.Object[]") Closure closure) throws SQLException {
3836 List<Object> params = getParameters(gstring);
3837 String sql = asSql(gstring, params);
3838 return callWithAllRows(sql, params, closure);
3839 }
3840
3841 /**
3842 * Performs a stored procedure call with the given parameters,

Callers

nothing calls this directly

Calls 4

getParametersMethod · 0.95
asSqlMethod · 0.95
callWithRowsMethod · 0.95
singletonListMethod · 0.95

Tested by

no test coverage detected