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

Method callWithRows

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

Performs a stored procedure call with the given parameters, calling the closure once with all result objects, and also returning the rows of the ResultSet. Use this when calling a stored procedure that utilizes both output parameters and returns a single ResultSet. Once created, the stored p

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

Source from the content-addressed store, hash-verified

3741 * @see #callWithRows(String, List, Closure)
3742 */
3743 public List<GroovyRowResult> callWithRows(GString gstring, @ClosureParams(value=SimpleType.class, options="java.lang.Object[]") Closure closure) throws SQLException {
3744 List<Object> params = getParameters(gstring);
3745 String sql = asSql(gstring, params);
3746 return callWithRows(sql, params, closure);
3747 }
3748
3749 /**
3750 * Performs a stored procedure call with the given parameters,

Callers 2

callMethod · 0.95
callWithAllRowsMethod · 0.95

Calls 15

getParametersMethod · 0.95
asSqlMethod · 0.95
singletonListMethod · 0.95
createConnectionMethod · 0.95
checkForNamedParamsMethod · 0.95
getSqlMethod · 0.95
getParamsMethod · 0.95
getCallableStatementMethod · 0.95
getImplMethod · 0.95
asListMethod · 0.95
cleanupMethod · 0.95
closeResourcesMethod · 0.95

Tested by

no test coverage detected