protected void configure ( Statement statement ) { // for thread safety, grab local copy Closure configureStatement = this . configureStatement ; if ( configureStatement != null ) { configureStatement . call ( statement ) ; } }
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 .