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