Skip to main content



      Home
Home » Modeling » EMF » [CDO] Questions about Lazy loading ?([CDO] Questions about Lazy loading ?)
[CDO] Questions about Lazy loading ? [message #1027881] Wed, 27 March 2013 10:44 Go to next message
Eclipse UserFriend
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: Wed, 27 March 2013 23:42] by Moderator

Re: [CDO] Questions about Lazy loading ? [message #1028299 is a reply to message #1027881] Thu, 28 March 2013 00:19 Go to previous messageGo to next message
Eclipse UserFriend
Sorry, I make a mistake on the picture, element (3) & (4) must be child of element (2). I correct the picture at http://www.eclipse.org/forums/index.php/mv/msg/464863/1027881/#msg_1027881.

Thank you Smile
Re: [CDO] Questions about Lazy loading ? [message #1031035 is a reply to message #1027881] Mon, 01 April 2013 00:44 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: [CDO] Questions about Lazy loading ? [message #1031229 is a reply to message #1031035] Mon, 01 April 2013 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi, Eike

My intention is to cross check between the result from my test and the answers reply in this forum from CDO Expert (because I am not CDO expert). I don't have any intention to make this forum as quiz show or employment program. So, I am sorry to trouble you and thank you for your reply.

Best Regards

Mr.Apirom Na Nakorn
Re: [CDO] Questions about Lazy loading ? [message #1031507 is a reply to message #1031229] Mon, 01 April 2013 17:37 Go to previous message
Eclipse UserFriend
Am 01.04.2013 13:50, schrieb Apirom Na Nakorn:
> Hi, Eike
>
> My intention is to cross check between the result from my test and the answers reply in this forum from CDO Expert
> (because I am not CDO expert). I don't have any intention to make this forum as quiz show or employment program. So, I
> am sorry to trouble you and thank you for your reply.
So what are your results? And are they the ones you expect?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:The constructor BasicInternalEList<...> is undefined
Next Topic:[CDO] Non-Java Clients
Goto Forum:
  


Current Time: Wed Jul 23 16:38:26 EDT 2025

Powered by FUDForum. Page generated in 0.03508 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top