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
Fields -
Constructor Summary
Constructors -
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.voidpopulate(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:ExpressionParserReturn a parsed intermediate form of the given query string.- Specified by:
parsein interfaceExpressionParser
-
populate
Description copied from interface:ExpressionParserUse the parsed query form to set information such as candidate type, result type, etc that was encoded in the query string.- Specified by:
populatein interfaceExpressionParser
-
eval
public QueryExpressions eval(Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate) Description copied from interface:ExpressionParserParse the given query string.- Specified by:
evalin interfaceExpressionParser
-
eval
public Value[] eval(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate) Description copied from interface:ExpressionParserParse the given value clauses.- Specified by:
evalin interfaceExpressionParser
-
getLanguage
Description copied from interface:ExpressionParserReturn a string key describing the language that this instance parses.- Specified by:
getLanguagein interfaceExpressionParser
-