/** * Implementations with support for transactions should use them instead of * this implementation. */ @Override public synchronized void update(DiffReader diff) throws ModelRuntimeException { assertModel(); for(Statement r : diff.getRemoved()) { removeStatement(r); } for(Statement a : diff.getAdded()) { addStatement(a); } }
/** * Implementations with support for transactions should use them instead of * this implementation. */ @Override public synchronized void update(DiffReader diff) throws ModelRuntimeException { assertModel(); for (Statement r : diff.getRemoved()) { removeStatement(r); } for (Statement a : diff.getAdded()) { addStatement(a); } }