public Java8CompositeHandler withUpdateHandler1 ( CountUpdateHandler h ) { final UpdateHandler uh = new UpdateHandler ( ) { public UpdateResult apply ( String sql , List < Parameter > ps ) { return new UpdateResult ( h . apply ( sql , ps ) ) ; } } ; return withUpdateHandler ( uh ) ; }
Returns handler that delegates update execution to |h| function . Given function will be used only if executed statement is not detected as a query by withQueryDetection .