public void execute(final Collection<T> targets, final ForceExecuteCallback<T> callback) throws SQLException {
        Collection<SQLException> exceptions = new LinkedList<>();
        for (T each : targets) {
            try {
                callback.execute(each);
            } catch (final SQLException ex) {
                exceptions.add(ex);
            }
        }
        throwSQLExceptionIfNecessary(exceptions);
    }
public void execute ( final Collection < T > targets , final ForceExecuteCallback < T > callback ) throws SQLException { Collection < SQLException > exceptions = new LinkedList < > ( ) ; for ( T each : targets ) { try { callback . execute ( each ) ; } catch ( final SQLException ex ) { exceptions . add ( ex ) ; } } throwSQLExceptionIfNecessary ( exceptions ) ; }
Force execute.

@param targets targets to be executed
@param callback force execute callback
@throws SQLException throw SQL exception after all targets are executed