-
- All Superinterfaces:
- Expression<Boolean>, Predicate, Selection<Boolean>, TupleElement<Boolean>
- Enclosing interface:
- CriteriaBuilder
public static interface CriteriaBuilder.In<T> extends Predicate
Interface used to build in predicates.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.persistence.criteria.Predicate
Predicate.BooleanOperator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description Expression<T>
getExpression()
Return the expression to be tested against the list of values.CriteriaBuilder.In<T>
value(Expression<? extends T> value)
Add to list of values to be tested against.CriteriaBuilder.In<T>
value(T value)
Add to list of values to be tested against.-
Methods inherited from interface javax.persistence.criteria.Predicate
getExpressions, getOperator, isNegated, not
-
Methods inherited from interface javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNull
-
Methods inherited from interface javax.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelection
-
Methods inherited from interface javax.persistence.TupleElement
getAlias, getJavaType
-
-
-
-
Method Detail
-
getExpression
Expression<T> getExpression()
Return the expression to be tested against the list of values.- Returns:
- expression
-
value
CriteriaBuilder.In<T> value(T value)
Add to list of values to be tested against.- Parameters:
value
- value- Returns:
- in predicate
-
value
CriteriaBuilder.In<T> value(Expression<? extends T> value)
Add to list of values to be tested against.- Parameters:
value
- expression- Returns:
- in predicate
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/persistence/criteria/criteriabuilder.in.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.