@@ -72,17 +72,17 @@ public class ValueExpressionQueryRewriter {
72
72
private final ValueExpressionParser expressionParser ;
73
73
74
74
/**
75
- * A function from the index of a Value expression in a query and the actual SpEL expression to the parameter name to
76
- * be used in place of the SpEL expression . A typical implementation is expected to look like
77
- * <code>(index, spel ) -> "__some_placeholder_" + index</code>
75
+ * A function from the index of a Value expression in a query and the actual Value Expression to the parameter name to
76
+ * be used in place of the Value Expression . A typical implementation is expected to look like
77
+ * <code>(index, expression ) -> "__some_placeholder_" + index</code>
78
78
*/
79
79
private final BiFunction <Integer , String , String > parameterNameSource ;
80
80
81
81
/**
82
- * A function from a prefix used to demarcate a SpEL expression in a query and a parameter name as returned from
83
- * {@link #parameterNameSource} to a {@literal String} to be used as a replacement of the SpEL in the query. The
84
- * returned value should normally be interpretable as a bind parameter by the underlying persistence mechanism. A
85
- * typical implementation is expected to look like <code>(prefix, name) -> prefix + name</code> or
82
+ * A function from a prefix used to demarcate a Value Expression in a query and a parameter name as returned from
83
+ * {@link #parameterNameSource} to a {@literal String} to be used as a replacement of the Value Expressions in the
84
+ * query. The returned value should normally be interpretable as a bind parameter by the underlying persistence
85
+ * mechanism. A typical implementation is expected to look like <code>(prefix, name) -> prefix + name</code> or
86
86
* <code>(prefix, name) -> "{" + name + "}"</code>
87
87
*/
88
88
private final BiFunction <String , String , String > replacementSource ;
@@ -116,9 +116,9 @@ public static ValueExpressionQueryRewriter of(ValueExpressionParser expressionPa
116
116
* with prefix being the character ':' or '?'. Parsing honors quoted {@literal String}s enclosed in single or double
117
117
* quotation marks.
118
118
*
119
- * @param query a query containing SpEL expressions in the format described above. Must not be {@literal null}.
120
- * @return A {@link ParsedQuery} which makes the query with SpEL expressions replaced by bind parameters and a map
121
- * from bind parameter to SpEL expression available. Guaranteed to be not {@literal null}.
119
+ * @param query a query containing Value Expressions in the format described above. Must not be {@literal null}.
120
+ * @return A {@link ParsedQuery} which makes the query with Value Expressions replaced by bind parameters and a map
121
+ * from bind parameter to Value Expression available. Guaranteed to be not {@literal null}.
122
122
*/
123
123
public ParsedQuery parse (String query ) {
124
124
return new ParsedQuery (expressionParser , query );
@@ -168,7 +168,7 @@ private EvaluatingValueExpressionQueryRewriter(ValueExpressionParser expressionP
168
168
}
169
169
170
170
/**
171
- * Parses the query for SpEL expressions using the pattern:
171
+ * Parses the query for Value Expressions using the pattern:
172
172
*
173
173
* <pre>
174
174
* <prefix>#{<spel>}
@@ -257,7 +257,7 @@ public class ParsedQuery {
257
257
}
258
258
259
259
/**
260
- * The query with all the SpEL expressions replaced with bind parameters.
260
+ * The query with all the Value Expressions replaced with bind parameters.
261
261
*
262
262
* @return Guaranteed to be not {@literal null}.
263
263
*/
@@ -289,11 +289,11 @@ public int size() {
289
289
}
290
290
291
291
/**
292
- * A {@literal Map} from parameter name to SpEL expression .
292
+ * A {@literal Map} from parameter name to Value Expression .
293
293
*
294
294
* @return Guaranteed to be not {@literal null}.
295
295
*/
296
- Map <String , ValueExpression > getParameterMap () {
296
+ public Map <String , ValueExpression > getParameterMap () {
297
297
return expressions ;
298
298
}
299
299
@@ -403,7 +403,7 @@ public Map<String, Object> evaluate(Object[] values) {
403
403
}
404
404
405
405
/**
406
- * Returns the query string produced by the intermediate SpEL expression collection step.
406
+ * Returns the query string produced by the intermediate Value Expression collection step.
407
407
*
408
408
* @return
409
409
*/
0 commit comments