Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332566 - Introduce JPQL Parser Interface
Summary: Introduce JPQL Parser Interface
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: James Sutherland CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-14 14:51 EST by Shaun Smith CLA
Modified: 2022-06-09 10:04 EDT (History)
7 users (show)

See Also:


Attachments
Initial set of JPAQueryBuilder interfaces and ANTLR Implementation (23.03 KB, patch)
2010-12-16 18:16 EST, John Bracken CLA
no flags Details | Diff
Updated for 2.4 code stream (23.22 KB, patch)
2011-11-17 09:08 EST, Pascal Filion CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shaun Smith CLA 2010-12-14 14:51:20 EST
To test the new JPQL parser utility (Bug 331817) it would be ideal if it were possible to run the full LRG test suite through it. This would help validate equivalence between it and the ANTLR parser.  Removing direct dependencies on the ANTLR parser by introducing a parser interface is the first step in making it possible to run the LRG with the utility parser.
Comment 1 John Bracken CLA 2010-12-16 18:16:55 EST
Created attachment 185387 [details]
Initial set of JPAQueryBuilder interfaces and ANTLR Implementation

The attached patch file contains the proposed interfaces and mechanism for making JPQL query parsing and DatabaseQuery construction pluggable.  Also included is a default implementation that utilizes the existing ANTLR based parser/converter.  The included code has been built and passes the jpa and srg tests in my environment against a MySql db.  Let me know if there are any changes I need to make or additional information I can provide.
Comment 2 Pascal Filion CLA 2011-11-17 09:08:22 EST
Created attachment 207145 [details]
Updated for 2.4 code stream

This patch also includes parsing a selection criteria through the pluggable parser
Comment 3 James Sutherland CLA 2012-02-29 11:57:53 EST
This is fixed in 2.4
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:04:07 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink