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)
| 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 | //------------------------------------------------------------------------- |
no test coverage detected