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

Method call

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

Performs a stored procedure call. Example usage (tested with MySQL) - suppose we have the following stored procedure: sql.execute """ CREATE PROCEDURE HouseSwap(_first1 VARCHAR(50), _first2 VARCHAR(50)) BEGIN DECLARE _loc1 INT; DECLARE _loc2 INT; SELECT loca

(String sql)

Source from the content-addressed store, hash-verified

3450 * @throws SQLException if a database access error occurs
3451 */
3452 public int call(String sql) throws SQLException {
3453 return call(sql, EMPTY_LIST);
3454 }
3455
3456 /**
3457 * Performs a stored procedure call with the given embedded parameters.

Callers

nothing calls this directly

Calls 14

getParametersMethod · 0.95
asSqlMethod · 0.95
createConnectionMethod · 0.95
checkForNamedParamsMethod · 0.95
getCallableStatementMethod · 0.95
getSqlMethod · 0.95
getParamsMethod · 0.95
cleanupMethod · 0.95
closeResourcesMethod · 0.95
singletonListMethod · 0.95
callWithRowsMethod · 0.95
executeUpdateMethod · 0.80

Tested by

no test coverage detected