[CDO] Collection returns contains = false for Query loaded object. [message #1387016] |
Mon, 23 June 2014 09:45  |
Eclipse User |
|
|
|
Hi,
We experience this strange thing, that collection.contains(Object) =>
false, when the Object was retrieved with a Query. How do we force the
loading of the object on the collection? When debugging the collection,
the collection.contains(Object) => true, as the debug/variable view will
read the object and it will be resolved (I suspect this).
Is this a known issue, how do I force loading a collection when we
obtain objects from a query?
Thank You,
Christophe
|
|
|
Re: [CDO] Collection returns contains = false for Query loaded object. [message #1387017 is a reply to message #1387016] |
Mon, 23 June 2014 09:48   |
Eclipse User |
|
|
|
Actually, even better would be if we can execute query delete statements
with CDO, which would enable us to skip the part which does the contain
check.
On 23-06-14 15:45, Christophe Bouhier wrote:
> Hi,
>
> We experience this strange thing, that collection.contains(Object) =>
> false, when the Object was retrieved with a Query. How do we force the
> loading of the object on the collection? When debugging the collection,
> the collection.contains(Object) => true, as the debug/variable view will
> read the object and it will be resolved (I suspect this).
>
> Is this a known issue, how do I force loading a collection when we
> obtain objects from a query?
>
> Thank You,
> Christophe
|
|
|
Re: [CDO] Collection returns contains = false for Query loaded object. [message #1387020 is a reply to message #1387017] |
Mon, 23 June 2014 09:57  |
Eclipse User |
|
|
|
We solved it by not doing a contains(), but just calling remove([CDO
query loaded object]), which works.
=> Soooo, to conclude ".contains([SQL obtained object]) considered
harmfull with CDO!"
On 23-06-14 15:48, Christophe Bouhier wrote:
> Actually, even better would be if we can execute query delete statements
> with CDO, which would enable us to skip the part which does the contain
> check.
>
> On 23-06-14 15:45, Christophe Bouhier wrote:
>> Hi,
>>
>> We experience this strange thing, that collection.contains(Object) =>
>> false, when the Object was retrieved with a Query. How do we force the
>> loading of the object on the collection? When debugging the collection,
>> the collection.contains(Object) => true, as the debug/variable view will
>> read the object and it will be resolved (I suspect this).
>>
>> Is this a known issue, how do I force loading a collection when we
>> obtain objects from a query?
>>
>> Thank You,
>> Christophe
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07426 seconds