Package org.apache.openjpa.kernel.jpql
Class JPQLParser
java.lang.Object
org.apache.openjpa.kernel.jpql.JPQLParser
- All Implemented Interfaces:
Serializable
,ExpressionParser
Parser for JPQL queries.
- Author:
- Marc Prud'hommeaux
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioneval
(Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate) Parse the given query string.Value[]
eval
(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate) Parse the given value clauses.Return a string key describing the language that this instance parses.parse
(String ql, ExpressionStoreQuery query) Return a parsed intermediate form of the given query string.void
populate
(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 Details
-
LANG_JPQL
- See Also:
-
-
Constructor Details
-
JPQLParser
public JPQLParser()
-
-
Method Details
-
parse
Description copied from interface:ExpressionParser
Return a parsed intermediate form of the given query string.- Specified by:
parse
in interfaceExpressionParser
-
populate
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(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(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate) Description copied from interface:ExpressionParser
Parse the given value clauses.- Specified by:
eval
in interfaceExpressionParser
-
getLanguage
Description copied from interface:ExpressionParser
Return a string key describing the language that this instance parses.- Specified by:
getLanguage
in interfaceExpressionParser
-