Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:04 Go to next message
manasa  is currently offline manasa Friend
Messages: 32
Registered: October 2010
Member
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 04:35 Go to previous messageGo to next message
Ashwani Kr Sharma is currently offline Ashwani Kr SharmaFriend
Messages: 119
Registered: July 2009
Location: Bangalore, India
Senior Member

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 04:42]

Report message to a moderator

Re: Using variables in EMF query2 queries [message #633379 is a reply to message #633373] Sun, 17 October 2010 08:55 Go to previous message
Ashwani Kr Sharma is currently offline Ashwani Kr SharmaFriend
Messages: 119
Registered: July 2009
Location: Bangalore, India
Senior Member

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 08:59]

Report message to a 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: Mon Oct 14 17:59:55 GMT 2019

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

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

Back to the top