Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:44 Go to next message
Apirom Na Nakorn is currently offline Apirom Na NakornFriend
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 #1028299 is a reply to message #1027881] Thu, 28 March 2013 04:19 Go to previous messageGo to next message
Apirom Na Nakorn is currently offline Apirom Na NakornFriend
Messages: 14
Registered: July 2012
Junior Member
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 04:44 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6681
Registered: July 2009
Senior Member
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 11:50 Go to previous messageGo to next message
Apirom Na Nakorn is currently offline Apirom Na NakornFriend
Messages: 14
Registered: July 2012
Junior Member
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 21:37 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6681
Registered: July 2009
Senior Member
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: Tue Mar 19 05:04:17 GMT 2024

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

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

Back to the top