Interface PredicateDefinitionContext
- All Known Implementing Classes:
NamedValuesBasedPredicateDefinitionContext
The context passed to
PredicateDefinition.create(PredicateDefinitionContext)
.- See Also:
-
Method Summary
-
Method Details
-
predicate
SearchPredicateFactory predicate()- Returns:
- A predicate factory.
If the named predicate was registered on an object field,
this factory expects field paths to be provided relative to that same object field.
This factory is only valid in the present context and must not be used after
PredicateDefinition.create(PredicateDefinitionContext)
returns. - See Also:
-
param
Deprecated.Useparams()
instead.- Parameters:
name
- The name of the parameter.- Returns:
- The value provided to
NamedPredicateOptionsStep.param(String, Object)
for this parameter. - Throws:
SearchException
- If no value was provided for this parameter.- See Also:
-
param
Deprecated.Useparams()
instead.- Type Parameters:
T
- The type of the parameter.- Parameters:
name
- The name of the parameter.paramType
- The type of the parameter.- Returns:
- The value provided to
NamedPredicateOptionsStep.param(String, Object)
for this parameter. - Throws:
SearchException
- If no value was provided for this parameter.- See Also:
-
paramOptional
Deprecated.Useparams()
instead.- Parameters:
name
- The name of the parameter.- Returns:
- An optional containing the value provided to
NamedPredicateOptionsStep.param(String, Object)
for this parameter, orOptional.empty()
if no value was provided for this parameter. - See Also:
-
paramOptional
Deprecated.Useparams()
instead.- Type Parameters:
T
- The type of the parameter.- Parameters:
name
- The name of the parameter.paramType
- The type of the parameter.- Returns:
- An optional containing the value provided to
NamedPredicateOptionsStep.param(String, Object)
for this parameter, orOptional.empty()
if no value was provided for this parameter. - See Also:
-
params
NamedValues params()- Returns:
- Predicate definition context parameters provided through
NamedPredicateOptionsStep.param(String, Object)
. - See Also:
-
params()
instead.