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

Method cleanup

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

Provides a hook for derived classes to be able to examine JDBC statements before cleanup/closing. Default behavior is to call a previously saved closure, if any, using the statement as a parameter. @param statement the statement to clean up @since 4.0.1

(Statement statement)

Source from the content-addressed store, hash-verified

4962 * @since 4.0.1
4963 */
4964 protected void cleanup(Statement statement) {
4965 // for thread safety, grab local copy
4966 Closure cleanupStatement = this.cleanupStatement;
4967 if (cleanupStatement != null) {
4968 cleanupStatement.call(statement);
4969 }
4970 }
4971
4972 // private implementation methods
4973 //-------------------------------------------------------------------------

Callers 8

queryMethod · 0.95
eachRowMethod · 0.95
executeMethod · 0.95
executeInsertMethod · 0.95
executeUpdateMethod · 0.95
callMethod · 0.95
withBatchMethod · 0.95
callWithRowsMethod · 0.95

Calls 1

callMethod · 0.95

Tested by

no test coverage detected