Package org.apache.openjpa.kernel.exps
Interface ExpressionParser
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
CriteriaBuilderImpl
,JPQLParser
public interface ExpressionParser extends java.io.Serializable
Parser for query languages that will be used by aExpressionQuery
. A QueryParser is responsible for translating from some string-based query language intoExpression
s. Parsers should be stateless.- Author:
- Marc Prud'hommeaux
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getLanguage
java.lang.String getLanguage()
Return a string key describing the language that this instance parses.
-
parse
java.lang.Object parse(java.lang.String ql, ExpressionStoreQuery query)
Return a parsed intermediate form of the given query string.
-
populate
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.
-
eval
QueryExpressions eval(java.lang.Object parsed, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Parse the given query string.
-
eval
Value[] eval(java.lang.String[] vals, ExpressionStoreQuery query, ExpressionFactory factory, ClassMetaData candidate)
Parse the given value clauses.
-
-