Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Texo] Lazy Loading with Texo
[Texo] Lazy Loading with Texo [message #1281170] Mon, 31 March 2014 13:14 Go to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi,

I've got a question regarding lazy loading or better selective loading with Texo. Therefore I'll create a little example:

I want to a list of objects (ObjectA) consisting of primitive types and other object references.

ObjectA
 -- name : String
 -- description : String
 -- ref : ObjectB (Reference)
 -- list : List<ObjectC> (Containment list)


Is it possible to load everything in this object besides the containment list (name, description and ref)? That would be great.

Or is it otherwise possible to query those other attributes via the ObjectStore? The query-method won't work, since it only returns whole EObjects.

I would be very happy for any hint!
Bastian
Re: [Texo] Lazy Loading with Texo [message #1281810 is a reply to message #1281170] Tue, 01 April 2014 11:40 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Bastian,
Hmm not now, you can check the internals of the EObjectStore, it basically calls the json webservice, the json
webservice supports what you want:
https://wiki.eclipse.org/Texo/JSON_REST_Web_Services#Query_for_multiple_values

So you can force a load by querying for additional referenced data.

I propose the following, can you subclass/extend the EObjectStore with your code and then if you want (I hope!) attach
it to a bugzilla? Then I can add this to the EObjectStore implementation.

Or maybe what you mean is a list of efeature names which are to be loaded and returned as part of the json? Also for
non-containment references.

gr. Martin

On 03/31/2014 03:14 PM, Bastian Wagenfeld wrote:
> Hi,
>
> I've got a question regarding lazy loading or better selective loading with Texo. Therefore I'll create a little example:
>
> I want to a list of objects (ObjectA) consisting of primitive types and other object references.
>
> ObjectA
> -- name : String
> -- description : String
> -- ref : ObjectB (Reference)
> -- list : List<ObjectC> (Containment list)
>
> Is it possible to load everything in this object besides the containment list (name, description and ref)? That would be
> great.
> Or is it otherwise possible to query those other attributes via the ObjectStore? The query-method won't work, since it
> only returns whole EObjects.
>
> I would be very happy for any hint!
> Bastian


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: [Texo] Lazy Loading with Texo [message #1282396 is a reply to message #1281810] Wed, 02 April 2014 08:31 Go to previous message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi Martin,

thanks for that hint. I tried to query via the json service and it worked, but when I try to convert the json to a ResponseType I get a ClassNotFoundException. The problem seems to that the whole Request/Response-model isn't exported by its plugin.
That's not a big deal, since I can "skip" this part of the JSON and go for the data itself, but it would be nicer I think. But this is just for info.

Best regards and thank you for your answer!
Bastian
Previous Topic:[Teneo] Inheritence mapping annotation on Ecore
Next Topic:[EMFStore] Mixed environment problem
Goto Forum:
  


Current Time: Fri Apr 26 17:28:53 GMT 2024

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

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

Back to the top