Class ValueExpressionQueryRewriter.EvaluatingValueExpressionQueryRewriter
java.lang.Object
org.springframework.data.repository.query.ValueExpressionQueryRewriter
org.springframework.data.repository.query.ValueExpressionQueryRewriter.EvaluatingValueExpressionQueryRewriter
- Enclosing class:
- ValueExpressionQueryRewriter
public static class ValueExpressionQueryRewriter.EvaluatingValueExpressionQueryRewriter
extends ValueExpressionQueryRewriter
An extension of
ValueExpressionQueryRewriter
that can create ValueExpressionQueryRewriter.QueryExpressionEvaluator
instances as
it also knows about a QueryMethodValueEvaluationContextAccessor
.- Author:
- Oliver Gierke
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.repository.query.ValueExpressionQueryRewriter
ValueExpressionQueryRewriter.EvaluatingValueExpressionQueryRewriter, ValueExpressionQueryRewriter.ParsedQuery, ValueExpressionQueryRewriter.QueryExpressionEvaluator
-
Method Summary
Modifier and TypeMethodDescriptionparse
(String query, Parameters<?, ?> parameters) Parses the query for Value Expressions using the pattern:Methods inherited from class org.springframework.data.repository.query.ValueExpressionQueryRewriter
of, of, parse, withEvaluationContextAccessor
-
Method Details
-
parse
public ValueExpressionQueryRewriter.QueryExpressionEvaluator parse(String query, Parameters<?, ?> parameters) Parses the query for Value Expressions using the pattern:<prefix>#{<spel>} <prefix>${<property placeholder>}
with prefix being the character ':' or '?'. Parsing honors quoted Strings enclosed in single or double quotation marks.
- Parameters:
query
- a query containing Value Expressions in the format described above. Must not be null.parameters
- aParameters
instance describing query method parameters- Returns:
- A
ValueExpressionQueryRewriter.QueryExpressionEvaluator
which allows to evaluate the Value Expressions.
-