javax.persistence.criteria.Predicate for checking the
nullness state of an expression, aka an IS [NOT] NULL predicate.
The NOT NULL form can be built by calling the constructor and then
calling not.
| Modifier and Type | Field and Description |
|---|---|
| private final Expression |
| Access | Constructor and Description |
|---|---|
| public | NullnessPredicate(CriteriaBuilderImpl
The query builder from whcih this originates. criteriaBuilder, Expression<?> The expression to check. operand)Constructs the affirmative form of nullness checking (IS NULL). |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public Expression | getOperand()
Implements org. |
| public void | registerParameters(ParameterRegistry
The parameter registry with which to register. registry)Implements org. |
| public String | render(boolean
Should the predicate be negated. isNegated, RenderingContext The context for rendering renderingContext)Implements org. Renderable#render used when the predicate is wrapped in a negated wrapper.
|
| operand | back to summary |
|---|---|
| private final Expression<?> operand | |
| NullnessPredicate | back to summary |
|---|---|
| public NullnessPredicate(CriteriaBuilderImpl criteriaBuilder, Expression<?> operand) Constructs the affirmative form of nullness checking (IS NULL). To
construct the negative form (IS NOT NULL) call
| |
| check | back to summary |
|---|---|
| private String check(boolean negated) | |
| getOperand | back to summary |
|---|---|
| public Expression Implements org. Doc from org. Get the operand.
| |
| registerParameters | back to summary |
|---|---|
| public void registerParameters(ParameterRegistry registry) Implements org. Doc from org. Register any parameters contained within this query component with the given registry.
| |
| render | back to summary |
|---|---|
| public String render(boolean isNegated, RenderingContext renderingContext) Implements org. Doc from org. Form of Note that this form is no-op in compound (junction) predicates. The reason being that compound predicates are more complex and the negation is applied during its creation.
| |