[CDO] Questions about Lazy loading ? [message #1027881] |
Wed, 27 March 2013 14:44 |
Apirom Na Nakorn Messages: 14 Registered: July 2012 |
Junior Member |
|
|
Hi,
I have some questions about lazy loading of CDO, if I have the model as follow:
(Root)
|-(1)
|...|
|...|---(2)
|..........|
|..........|---(3)[Not load]
|.................|
|.................|---(4)[Not load]
|
|-(5)
|...|
|...|---(6)
|..........|
|..........|---(7)[Not load]
and element (7) have a feature that contains list of references to element (3), (4). If I delete element (2), so element (3) & (4) will also be deleted . After that I try to access element (7) which will trigger CDO to load element (7). After element (7) is loaded complete, the questions are
1. What will I get when I get the size of the reference list of element (7) ? 0 or 2 ?
2. If the size of the reference list is greater than 0. What will happen if I try to access element (3) or (4) from the reference list ? Do I get some exceptions ?
Thank you in advance
Best Regards
Mr.Apirom Na Nakorn
[Updated on: Thu, 28 March 2013 03:42] Report message to a moderator
|
|
|
|
Re: [CDO] Questions about Lazy loading ? [message #1031035 is a reply to message #1027881] |
Mon, 01 April 2013 04:44 |
|
Am 27.03.2013 15:44, schrieb Apirom Na Nakorn:
> Hi,
>
> I have some questions about lazy loading of CDO, if I have the model as follow:
>
> (Root)
> |-(1)
> | |
> | |---(2)
> | |
> | |---(3)[Not load]
> | |
> | |---(4)[Not load]
> |
> |-(5)
> | |
> | |---(6)
> | |
> | |---(7)[Not load]
>
> and element (7) have a feature that contains list of references to element (3), (4). If I delete element (2), so
> element (3) & (4) will also be deleted . After that I try to access element (7) which will trigger CDO to load element
> (7). After element (7) is loaded complete, the questions are
>
> 1. What will I get when I get the size of the reference list of element (7) ? 0 or 2 ?
> 2. If the size of the reference list is greater than 0. What will happen if I try to access element (3) or (4)
> from the reference list ? Do I get some exceptions ?
>
> Thank you in advance
This forum is neither a quiz show nor an employment program. The software is free, so please try to run your code and
answer your questions yourself. In case there is behaviour or there are exceptions that you don't expect please come
back with detailed descriptions (possibly including stack traces). Then we might be able to help you.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02676 seconds