/** * Applies all updates. * * @param before run updates specified before or after node updates * @throws QueryException query exception */ void apply(final boolean before) throws QueryException { final int pos = UpdateType._NODE_UPDATES_.ordinal(); for (final NameUpdate up : nameUpdates) { final int ord = up.type.ordinal(); if (before ? ord < pos : ord > pos) up.apply(); } }