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

Bug 334615

Summary: Java Query for EMF Facet
Product: z_Archived Reporter: Nicolas Guyomar <nicolas.guyomar>
Component: EMF-FacetAssignee: Gregoire Dupe <gdupe>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: emft.facet-inbox, gdupe
Version: unspecifiedFlags: gdupe: indigo+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
org.eclipse.emf.facet.query.java
none
org.eclipse.emf.facet.query.java.core
gdupe: iplog+
org.eclipse.emf.facet.query.java.tests
gdupe: iplog+
org.eclipse.emf.facet.query.java gdupe: iplog+

Description Nicolas Guyomar CLA 2011-01-18 05:26:43 EST
Hi,

There should be a way to create java queries with EMF Facet.

Regards

Nicolas Guyomar
Comment 1 Nicolas Guyomar CLA 2011-01-19 03:55:15 EST
Created attachment 187082 [details]
org.eclipse.emf.facet.query.java

Hi,

Please find attached a meta-model and its implementation for Java Query.

A JavaQuery is a query written in the Java language. It inherit from EMF Facet Query, and has to reference an implementation class.
Comment 2 Nicolas Guyomar CLA 2011-01-19 03:59:47 EST
Created attachment 187083 [details]
org.eclipse.emf.facet.query.java.core

Hi,

Please fin attached a plug-in for the Java Query evaluation framework.

It consists in the implementation of an EMF Facet Query Evaluator Factory for Java, as well as the implementation of the JavaQueryEvaluator for Java Query evaluation.
Comment 3 Nicolas Guyomar CLA 2011-01-19 04:01:11 EST
Created attachment 187084 [details]
org.eclipse.emf.facet.query.java.tests

Hi,

Please find attached a plug-in test project to make sure a JavaQuery can be evaluated by its JavaQueryEvaluator when it is registered in a EMF Facet QuerySet
Comment 4 Nicolas Guyomar CLA 2011-01-19 04:11:26 EST
Hi,

In the contribution org.eclipse.emf.facet.query.java.core : 

- JavaQueryEvaluator is a copy of org.eclipse.emf.facet.infra.query.core.java.internal.JavaModelQueryAdapter
- ParameterValueList is a copy of org.eclipse.emf.facet.infra.query.core.java.ParameterValueList
- IJavaQuery is a copy of org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery<T, R>

I, Nicolas Guyomar, am the author of the other content of the contribution org.eclipse.emf.facet.query.java.core:
(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.


For the org.eclipse.emf.facet.query.java  and  org.eclipse.emf.facet.query.java.tests plug-ins: 

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.


Regards

Nicolas Guyomar
Comment 5 Nicolas Guyomar CLA 2011-01-19 05:05:19 EST
Created attachment 187087 [details]
org.eclipse.emf.facet.query.java

Fix wrong copyrights text

Nicolas Guyomar
Comment 6 Gregoire Dupe CLA 2011-01-19 05:42:14 EST
Comment on attachment 187087 [details]
org.eclipse.emf.facet.query.java

Here are contributions from an employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've commited this plug-in. (Committed revision 220.)
Comment 7 Gregoire Dupe CLA 2011-01-19 08:45:05 EST
Comment on attachment 187083 [details]
org.eclipse.emf.facet.query.java.core

Here are contributions from an employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've commited this plug-in. (Committed revision 222.)
Comment 8 Gregoire Dupe CLA 2011-01-19 08:51:00 EST
Comment on attachment 187084 [details]
org.eclipse.emf.facet.query.java.tests

Here are contributions from an employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've commited this test plug-in. (Committed revision 224.)
Comment 9 Gregoire Dupe CLA 2011-01-19 08:54:59 EST
I've added the plug-ins "org.eclipse.emf.facet.query.java" and the "org.eclipse.emf.facet.query.java.core" in the feature "org.eclipse.emf.facet.common".

Committed revision 225.
Comment 10 Gregoire Dupe CLA 2011-06-06 11:30:51 EDT
This bug can be closed.