Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327987

Summary: [Query2] Supporting parameters in queries
Product: [Modeling] EMF Reporter: Ashwani Kr Sharma <ashw.kumar>
Component: Query2Assignee: Project Inbox <emf.query2-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Ashwani Kr Sharma CLA 2010-10-17 04:54:08 EDT
Build Identifier: 

Details are as mentioned in forum link: http://www.eclipse.org/forums/index.php?t=msg&th=198593&start=0&S=0fcc1ab2eeaa0129b02fc46219f3a4d2


Reproducible: Always

Steps to Reproduce:
.
Comment 1 Ashwani Kr Sharma CLA 2010-10-17 04:58:33 EDT
Support for parameters is now added.
User can specify parameters as following query:

SelectPar2AsParameter:
from EClass as a
select a.name
where a.name = ? or ( a.abstract = ? and a.interface = ? )

To use it use the method:
QueryTransfomer.transform(query, new Object[] { .... }); method.

----------------------------------------------------------------
Implementation submitted
New test added TestTransformation in syntax.test plugin
----------------------------------------------------------------
Comment 2 Ashwani Kr Sharma CLA 2010-10-17 05:00:01 EDT
Fix done