Interface PredicateDefinitionContext
The context passed to
PredicateDefinition.create(PredicateDefinitionContext)
.-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
Deprecated.<T> T
paramOptional
(String name) Deprecated.UseparamOptional(String, Class)
instead.<T> Optional<T>
paramOptional
(String name, Class<T> paramType)
-
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.Useparam(String, Class)
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
- 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.UseparamOptional(String, Class)
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
- 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:
-
param(String, Class)
instead.