if(listensDomain) {\r
RangeUpdateRequest request = new RangeUpdateRequest(link, map, this);\r
try {\r
- g.syncRequest(request, request);\r
+ boolean modified = g.syncRequest(request, request);\r
+ if(modified) {\r
+ updated.add(link.rangeElement);\r
+ }\r
} catch (DatabaseException e) {\r
throw new MappingException(e);\r
}\r
- // TODO check if really modified\r
- updated.add(link.rangeElement);\r
+\r
}\r
else\r
if(link.type.updateRange(g, map, link.domainElement, link.rangeElement))\r
@Override\r
public Boolean perform(ReadGraph g) throws DatabaseException {\r
if(map != null) {\r
- link.type.updateRange(g, map, link.domainElement, link.rangeElement);\r
+ boolean updated = link.type.updateRange(g, map, link.domainElement, link.rangeElement);\r
map = null;\r
- return Boolean.TRUE;\r
+ return updated;\r
}\r
else if(mapping != null) {\r
mapping.domainModified(link);\r