Skip to main content



      Home
Home » Modeling » EMF » Using variables in EMF query2 queries(Is it possible to use variables in Query2 queries)
Using variables in EMF query2 queries [message #633357] Sat, 16 October 2010 16:04 Go to next message
Eclipse UserFriend
Hi,

I am trying to execute few Query2 queries on EMF model.
I could only write queries, where the query paramater is hardcoded, like the one given below.

PagesByTitle: from Manuscript as m select m.pages where m.title = 'Linux Made Easy' ,
where i try to get manuscripts which have the title "Linux made easy"(hardcoded).

Is it possible to replace the search parameter in a query with a variable, which can get intialized dynamically.

Thanks in advance,
Manasa
Re: Using variables in EMF query2 queries [message #633373 is a reply to message #633357] Sun, 17 October 2010 00:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi Manasa,

You can create such queries using Object based representation. But for string based syntax it still needs to be worked out.
Can you please open a implementation request for this issue.

Thanks and Regards,
Ashwani Kr Sharma

[Updated on: Sun, 17 October 2010 00:42] by Moderator

Re: Using variables in EMF query2 queries [message #633379 is a reply to message #633373] Sun, 17 October 2010 04:55 Go to previous message
Eclipse UserFriend
Hi,

Bug created: https://bugs.eclipse.org/bugs/show_bug.cgi?id=327987

And fixed. Please refer to bug details for "how to use".

Regards,
Ashwani Kr Sharma

[Updated on: Sun, 17 October 2010 04:59] by Moderator

Previous Topic:[CDO] Tutorials that cover adapting existing projects that use ECore?
Next Topic:[CDO] Noob question about remote changes handling
Goto Forum:
  


Current Time: Fri Jul 04 18:26:40 EDT 2025

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

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

Back to the top