predicate is a grouping of other predicates in order to convert
either a conjunction (logical AND) or a disjunction (logical OR).
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private Predicate. |
| Access | Constructor and Description |
|---|---|
| public | CompoundPredicate(CriteriaBuilderImpl
The query builder from which this originates. criteriaBuilder, Predicate.Indicates whether this predicate will function
as a conjunction or disjunction. operatorConstructs an empty conjunction or disjunction. |
| public | CompoundPredicate(CriteriaBuilderImpl
The query builder from which this originates. criteriaBuilder, Predicate.Indicates whether this predicate will function
as a conjunction or disjunction. operator,The expressions to be grouped. expressions)Constructs a conjunction or disjunction over the given expressions. |
| public | CompoundPredicate(CriteriaBuilderImpl
The query builder from which this originates. criteriaBuilder, Predicate.Indicates whether this predicate will function
as a conjunction or disjunction. operator,The expressions to be grouped. expressions)Constructs a conjunction or disjunction over the given expressions. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public List | getExpressions()
Implements javax. |
| public Predicate. | getOperator()
Implements javax. |
| public boolean | isJunction()
Implements org. |
| public Predicate | not()
Overrides org. Implements javax. |
| private static String | |
| public void | registerParameters(ParameterRegistry
The parameter registry with which to register. registry)Implements org. |
| public String | render(RenderingContext renderingContext)
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.
|
| public static String | |
| public static Predicate. | |
| private void |
| expressions | back to summary |
|---|---|
| private final List<Expression<Boolean>> expressions | |
| operator | back to summary |
|---|---|
| private Predicate. | |
| CompoundPredicate | back to summary |
|---|---|
| public CompoundPredicate(CriteriaBuilderImpl criteriaBuilder, Predicate. Constructs an empty conjunction or disjunction.
| |
| CompoundPredicate | back to summary |
|---|---|
| public CompoundPredicate(CriteriaBuilderImpl criteriaBuilder, Predicate. Constructs a conjunction or disjunction over the given expressions.
| |
| CompoundPredicate | back to summary |
|---|---|
| public CompoundPredicate(CriteriaBuilderImpl criteriaBuilder, Predicate. Constructs a conjunction or disjunction over the given expressions.
| |
| applyExpressions | back to summary |
|---|---|
| private void applyExpressions(Expression<Boolean>... expressions) | |
| applyExpressions | back to summary |
|---|---|
| private void applyExpressions(List<Expression<Boolean>> expressions) | |
| getExpressions | back to summary |
|---|---|
| public List Implements javax. Doc from javax. Return the top-level conjuncts or disjuncts of the predicate. Returns empty list if there are no top-level conjuncts or disjuncts of the predicate. Modifications to the list do not affect the query.
| |
| getOperator | back to summary |
|---|---|
| public Predicate. Implements javax. Doc from javax. Return the boolean operator for the predicate.
If the predicate is simple, this is
| |
| isJunction | back to summary |
|---|---|
| public boolean isJunction() Implements org. Doc from org. Is this a conjunction or disjunction?
| |
| not | back to summary |
|---|---|
| public Predicate not() Overrides org. Implements javax. Create negation of compound predicate by using logic rules: 1. not (x || y) is (not x && not y) 2. not (x && y) is (not x || not y)
| |
| operatorTextWithSeparator | back to summary |
|---|---|
| private static String operatorTextWithSeparator(Predicate. | |
| 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(RenderingContext renderingContext) Implements org. Doc from org. Perform the rendering, returning the rendition
| |
| 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.
| |
| render | back to summary |
|---|---|
| public static String render(PredicateImplementor predicate, RenderingContext renderingContext) | |
| reverseOperator | back to summary |
|---|---|
| public static Predicate. | |
| toggleOperator | back to summary |
|---|---|
| private void toggleOperator() | |