The result is a QueryResultList instance.
I know and want to get some elements of the query that have a negative version (not existent at current time) but all getting methods of QueryResultList adapt each not existent object from a CDOIDObjectLongImpl instance to null due to an internal try/catch of ObjectNotFoundException.

Is there some way to obtain the CDOID/proxy (like CDOIDObjectLongImpl) of these deleted objects from the CDOQuery??

Am 21.01.2013 14:12, schrieb Paco Blanco:
>
> CDOQuery cdoQuery = cdoView.createQuery(...);
> cdoQuery.getResult();
>
>
> The result is of QueryResultList object type.
> I know and want to get some elements of the query that have a negative version (not existent at current time) but all
> getting methods of QueryResultList adapt each not existent object from a CDOIDObjectLongImpl instance to null due to
> an internal try/catch of ObjectNotFoundException.
>
> Is there some way to obtain the CDOID/proxy (like CDOIDObjectLongImpl) of these deleted objects from the CDOQuery??
As objects with a negative version (in auditing mode) are deleted you can't use the (default) object query.
org.eclipse.emf.cdo.server.internal.db.SQLQueryHandler.executeQuery(CDOQueryInfo, IQueryContext) explains how to use the
"cdoObjectQuery" query parameter to suppress the ID-->object conversion.