Not every query type in the SQL repository can have parameters in every argument. The following QueryBuilder methods support parameters, with the specified limitations:

Method

Parameter Locations

createComparisonQuery

Either expression or both expressions can be a parameter.

createPatternMatchQuery

Only the pattern argument can be a parameter.

createTextSearchQuery

Only the searchstring argument can be a parameter.

createIncludesQuery

Only the collection argument (the first argument) can be a parameter, and it must be multi-valued.

createIncludesAnyQuery

Either expression or both expressions can be a parameter (and they must be multi-valued in all cases).