Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Exception when removing objects from a list, obtained with query
[CDO] Exception when removing objects from a list, obtained with query [message #998697] Thu, 10 January 2013 09:24 Go to previous message
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 683
Registered: July 2009
Senior Member
Hello There,

I have a multi-values feature named 'listforA' which has a bunch of objects named A, which I retrieve from a CDO (SQL) query.
next, I do a ...getListForA().removeAll(List<A>) which throws this exception below.

So apparently this is not supported, what would be the appropriate use case to delete objects obtained from a query? Should I create a query which deletes instead?

thx Christophe

java.lang.UnsupportedOperationException
at org.eclipse.emf.internal.cdo.query.CDOQueryResultIteratorImpl$QueryResultList.contains(CDOQueryResultIteratorImpl.java:204)
at org.eclipse.emf.common.util.AbstractEList.getDuplicates(AbstractEList.java:1151)
at org.eclipse.emf.common.notify.impl.DelegatingNotifyingListImpl.removeAll(DelegatingNotifyingListImpl.java:908)
at com.netxforge.netxstudio.data.importer.ResultProcessor.removeValues(ResultProcessor.java:187)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Weird call sequence on EStore with containment reference
Next Topic:[GWT] Where to download the runtime components
Goto Forum:
  


Current Time: Tue May 21 09:50:23 EDT 2013

Powered by FUDForum. Page generated in 0.07903 seconds