/** * Adds an update to the list. * * @param up update primitive * @throws QueryException query exception */ void add(final NameUpdate up) throws QueryException { final boolean alter = up.type == UpdateType.DBALTER; final boolean drop = up.type == UpdateType.DBDROP; for (final NameUpdate o : nameUpdates) { if (o.type == up.type) o.merge(up); if (drop && o.type == UpdateType.DBALTER || alter && o.type == UpdateType.DBDROP) { throw BXDB_ALTERDROP_X.get(o.info(), o.name()); } } nameUpdates.add(up); }