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

Method withBatch

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

Performs the closure (containing batch operations) within a batch. Uses a batch size of zero, i.e. no automatic partitioning of batches. This means that executeBatch() will be called automatically after the withBatch closure has finished but may be called explicitly if

(@ClosureParams(value=SimpleType.class, options="groovy.sql.BatchingStatementWrapper") Closure closure)

Source from the content-addressed store, hash-verified

4164 * @see #withBatch(int, Closure)
4165 */
4166 public int[] withBatch(@ClosureParams(value=SimpleType.class, options="groovy.sql.BatchingStatementWrapper") Closure closure) throws SQLException {
4167 return withBatch(0, closure);
4168 }
4169
4170 /**
4171 * Performs the closure (containing batch operations) within a batch using a given batch size.

Callers

nothing calls this directly

Calls 13

createConnectionMethod · 0.95
createStatementMethod · 0.95
executeBatchMethod · 0.95
closeResourcesMethod · 0.95
getParamsMethod · 0.95
getSqlMethod · 0.95
getAbstractStatementMethod · 0.95
configureMethod · 0.95
cleanupMethod · 0.95
callMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected