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

Method configure

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

Provides a hook for derived classes to be able to configure JDBC statements. Default behavior is to call a previously saved closure, if any, using the statement as a parameter. @param statement the statement to configure

(Statement statement)

Source from the content-addressed store, hash-verified

4946 * @param statement the statement to configure
4947 */
4948 protected void configure(Statement statement) {
4949 // for thread safety, grab local copy
4950 Closure configureStatement = this.configureStatement;
4951 if (configureStatement != null) {
4952 configureStatement.call(statement);
4953 }
4954 }
4955
4956 /**
4957 * Provides a hook for derived classes to be able to examine JDBC statements before cleanup/closing.

Callers 4

withBatchMethod · 0.95
getStatementMethod · 0.95
getPreparedStatementMethod · 0.95
getCallableStatementMethod · 0.95

Calls 1

callMethod · 0.95

Tested by

no test coverage detected