Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » How to specifiy query parameters in the Query Executions view?
How to specifiy query parameters in the Query Executions view? [message #990398] Wed, 12 December 2012 09:58 Go to next message
Andreas Brieg is currently offline Andreas Brieg
Messages: 48
Registered: November 2012
Member
I have a Java Query that takes an EString as Parameter. I would like to specify that parameter in the Query Executions view. However I don't see any action that would do this in that view. Selecting Execute results in a NPE in the Java code of the query, because the parameter is null. Isn't this (yet) possible?
Re: How to specifiy query parameters in the Query Executions view? [message #990439 is a reply to message #990398] Wed, 12 December 2012 13:56 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 607
Registered: July 2009
Senior Member
The current version of the UI does not support the handling of queries with parameters.
However, by directly using the MoDisco Query API, you will be able to run such queries (cf. the Query Manager/Developer Documentation section of the MoDisco Reference Documentation for having a concrete example of this).
I hope this helps.

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: How to specifiy query parameters in the Query Executions view? [message #990465 is a reply to message #990439] Wed, 12 December 2012 15:41 Go to previous message
Andreas Brieg is currently offline Andreas Brieg
Messages: 48
Registered: November 2012
Member
Yes. That helped. However I think I'm currently faster with hard coding parameters in the java query implementation.
Previous Topic:How to return multiple results for query on ecore model
Next Topic:Generate Java code from a Java model
Goto Forum:
  


Current Time: Mon Oct 20 11:16:22 GMT 2014

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

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