public class JPQLParser extends Object implements ExpressionParser
| Constructor and Description |
|---|
JPQLParser() |
| Modifier and Type | Method and Description |
|---|---|
QueryExpressions |
eval(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.
|
String |
getLanguage()
Return a string key describing the language that this instance parses.
|
Object |
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.
|
public static final String LANG_JPQL
public Object parse(String ql, ExpressionStoreQuery query)
ExpressionParserparse in interface ExpressionParserpublic void populate(Object parsed, ExpressionStoreQuery query)
ExpressionParserpopulate in interface ExpressionParserpublic QueryExpressions eval(Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
ExpressionParsereval in interface ExpressionParserpublic Value[] eval(String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
ExpressionParsereval in interface ExpressionParserpublic String getLanguage()
ExpressionParsergetLanguage in interface ExpressionParserCopyright © 2006–2020 Apache Software Foundation. All rights reserved.