question: public int update ( String sql , StatementVisitor visitor ) throws SQLException { Connection connection = null ; PreparedStatement stmt = null ; try { connection = source . getConnection ( ) ; stmt = connection . prepareStatement ( sql ) ; visitor . visit ( stmt ) ; return stmt . executeUpdate ( ) ; } finally { SQLUtil . closeQuietly ( stmt ) ; SQLUtil . closeQuietly ( connection ) ; } }
target:  Perform SQL update statement. If the SQL string contains ? placeholders, use the StatementVisitor to update the PreparedStatement with actual values.