if (object.eClass().getEAnnotation("wrapped") == null) { try { model.addAllowMultiModel(oid, newObject); } catch (IfcModelInterfaceException e) { throw new BimserverDatabaseException(e);
if (!model.contains(keyOid) && cachedObject.eClass().getEAnnotation("wrapped") == null) { try { model.addAllowMultiModel(keyOid, cachedObject); } catch (IfcModelInterfaceException e) { throw new BimserverDatabaseException(e);
private void processTodoList(IfcModelInterface model, TodoList todoList, QueryInterface query) throws BimserverDatabaseException { IdEObject idEObject = todoList.poll(); while (idEObject != null) { IdEObject result = get(idEObject, idEObject.getOid(), model, query, todoList); if (result == null) { throw new BimserverDatabaseException("Object not found: " + query.getPid() + " " + query.getRid() + " " + idEObject.getOid() + " " + idEObject.eClass().getName()); } if (!model.contains(result.getOid())) { try { model.addAllowMultiModel(result.getOid(), result); } catch (IfcModelInterfaceException e) { throw new BimserverDatabaseException(e); } } idEObject = todoList.poll(); } }
model.addAllowMultiModel(oid, idEObject); } catch (IfcModelInterfaceException e) { throw new BimserverDatabaseException(e);