Package org.apache.openjpa.kernel.jpql
Class JPQLParser
- java.lang.Object
-
- org.apache.openjpa.kernel.jpql.JPQLParser
-
- All Implemented Interfaces:
java.io.Serializable
,ExpressionParser
public class JPQLParser extends java.lang.Object implements ExpressionParser
Parser for JPQL queries.- Author:
- Marc Prud'hommeaux
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LANG_JPQL
-
Constructor Summary
Constructors Constructor Description JPQLParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryExpressions
eval(java.lang.Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Parse the given query string.Value[]
eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Parse the given value clauses.java.lang.String
getLanguage()
Return a string key describing the language that this instance parses.java.lang.Object
parse(java.lang.String ql, ExpressionStoreQuery query)
Return a parsed intermediate form of the given query string.void
populate(java.lang.Object parsed, ExpressionStoreQuery query)
Use the parsed query form to set information such as candidate type, result type, etc that was encoded in the query string.
-
-
-
Field Detail
-
LANG_JPQL
public static final java.lang.String LANG_JPQL
- See Also:
- Constant Field Values
-
-
Method Detail
-
parse
public java.lang.Object parse(java.lang.String ql, ExpressionStoreQuery query)
Description copied from interface:ExpressionParser
Return a parsed intermediate form of the given query string.- Specified by:
parse
in interfaceExpressionParser
-
populate
public void populate(java.lang.Object parsed, ExpressionStoreQuery query)
Description copied from interface:ExpressionParser
Use the parsed query form to set information such as candidate type, result type, etc that was encoded in the query string.- Specified by:
populate
in interfaceExpressionParser
-
eval
public QueryExpressions eval(java.lang.Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Description copied from interface:ExpressionParser
Parse the given query string.- Specified by:
eval
in interfaceExpressionParser
-
eval
public Value[] eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Description copied from interface:ExpressionParser
Parse the given value clauses.- Specified by:
eval
in interfaceExpressionParser
-
getLanguage
public java.lang.String getLanguage()
Description copied from interface:ExpressionParser
Return a string key describing the language that this instance parses.- Specified by:
getLanguage
in interfaceExpressionParser
-
-