Uses of Interface
jakarta.persistence.criteria.Predicate
Packages that use Predicate
Package
Description
Defines the Jakarta Persistence Criteria Query API.
-
Uses of Predicate in jakarta.persistence.criteria
Subinterfaces of Predicate in jakarta.persistence.criteriaModifier and TypeInterfaceDescriptionstatic interfaceInterface used to build in predicates.Methods in jakarta.persistence.criteria that return PredicateModifier and TypeMethodDescriptiondefault PredicateTemporalExpression.after(Expression<? extends T> y) Synonym forComparableExpression.greaterThan(Expression).default PredicateSynonym forComparableExpression.greaterThan(Comparable).BooleanExpression.and(Expression<Boolean> y) Create a conjunction of this and the given boolean expressions.CriteriaBuilder.and(BooleanExpression... restrictions) Create a conjunction of the given restriction predicates.CriteriaBuilder.and(Expression<Boolean> x, Expression<Boolean> y) Create a conjunction of the given boolean expressions.CriteriaBuilder.and(List<? extends Expression<Boolean>> restrictions) Create a conjunction of the given restriction predicates.default PredicateTemporalExpression.before(Expression<? extends T> y) Synonym forComparableExpression.lessThan(Expression).default PredicateSynonym forComparableExpression.lessThan(Comparable).Create a predicate for testing whether this expression is between the first and second arguments in value.ComparableExpression.between(Expression<? extends C> x, Expression<? extends C> y) Create a predicate for testing whether this expression is between the first and second arguments in value.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.between(Expression<? extends Y> v, Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is between the second and third arguments in value.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.between(Expression<? extends Y> v, Y x, Y y) Create a predicate for testing whether the first argument is between the second and third arguments in value.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.between(Y v, Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is between the second and third arguments in value.CriteriaBuilder.conjunction()Create a conjunction (with zero conjuncts).Create a predicate that tests whether an element is a member of this collection.PluralExpression.contains(Expression<? extends E> elem) Create a predicate that tests whether an element is a member of this collection.Create a predicate for testing whether this expression contains the given substring.CriteriaBuilder.disjunction()Create a disjunction (with zero disjuncts).Create a predicate for testing whether this expression ends with the given suffix.CriteriaBuilder.equal(Expression<?> x, Expression<?> y) Create a predicate for testing the arguments for equality.CriteriaBuilder.equal(Expression<?> x, Object y) Create a predicate for testing the arguments for equality.Expression.equalTo(Expression<?> value) Create a predicate to test whether the expression is equal to the argument.Create a predicate to test whether the expression is equal to the argument.Create a predicate testing the existence of a subquery result.Subquery.exists()Create a predicate testing the existence of this subquery result.CriteriaBuilder.ge(Expression<? extends Number> x, Expression<? extends Number> y) Create a predicate for testing whether the first argument is greater than or equal to the second.CriteriaBuilder.ge(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is greater than or equal to the second.NumericExpression.ge(Expression<? extends Number> y) Create a predicate for testing whether this expression is greater than or equal to the first argument.Create a predicate for testing whether this expression is greater than or equal to the first argument.AbstractQuery.getGroupRestriction()Return the predicate that corresponds to the restriction(s) over the grouping items, or null if no restrictions have been specified.Join.getOn()Return the predicate that corresponds to the ON restriction(s) on the join, or null if no ON condition has been specified.CommonAbstractCriteria.getRestriction()Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.ComparableExpression.greaterThan(C y) Create a predicate for testing whether this expression is greater than the first argument.ComparableExpression.greaterThan(Expression<? extends C> y) Create a predicate for testing whether this expression is greater than the first argument.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.greaterThan(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is greater than the second.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.greaterThan(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is greater than the second.ComparableExpression.greaterThanOrEqualTo(C y) Create a predicate for testing whether this expression is greater than or equal to the first argument.ComparableExpression.greaterThanOrEqualTo(Expression<? extends C> y) Create a predicate for testing whether this expression is greater than or equal to the first argument.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.greaterThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is greater than or equal to the second.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.greaterThanOrEqualTo(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is greater than or equal to the second.CriteriaBuilder.gt(Expression<? extends Number> x, Expression<? extends Number> y) Create a predicate for testing whether the first argument is greater than the second.CriteriaBuilder.gt(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is greater than the second.NumericExpression.gt(Expression<? extends Number> y) Create a predicate for testing whether this expression is greater than the first argument.Create a predicate for testing whether this expression is greater than the first argument.Expression.in(Expression<?>... values) Create a predicate to test whether the expression is a member of the argument list.Expression.in(Expression<Collection<?>> values) Create a predicate to test whether the expression is a member of the collection.Create a predicate to test whether the expression is returned by the subquery.Create a predicate to test whether the expression is a member of the argument list.Expression.in(Collection<?> values) Create a predicate to test whether the expression is a member of the collection.<C extends Collection<?>>
PredicateCriteriaBuilder.isEmpty(Expression<C> collection) Create a predicate that tests whether a collection is empty.PluralExpression.isEmpty()Create a predicate that tests whether this collection is empty.CriteriaBuilder.isFalse(Expression<Boolean> x) Create a predicate testing for a false value.<E, C extends Collection<E>>
PredicateCriteriaBuilder.isMember(E elem, Expression<C> collection) Create a predicate that tests whether an element is a member of a collection.<E, C extends Collection<E>>
PredicateCriteriaBuilder.isMember(Expression<E> elem, Expression<C> collection) Create a predicate that tests whether an element is a member of a collection.Expression.isMember(Expression<? extends Collection<? super T>> collection) Create a predicate that tests whether this expression is a member of a collection.<C extends Collection<?>>
PredicateCriteriaBuilder.isNotEmpty(Expression<C> collection) Create a predicate that tests whether a collection is not empty.PluralExpression.isNotEmpty()Create a predicate that tests whether this collection is not empty.<E, C extends Collection<E>>
PredicateCriteriaBuilder.isNotMember(E elem, Expression<C> collection) Create a predicate that tests whether an element is not a member of a collection.<E, C extends Collection<E>>
PredicateCriteriaBuilder.isNotMember(Expression<E> elem, Expression<C> collection) Create a predicate that tests whether an element is not a member of a collection.Expression.isNotMember(Expression<? extends Collection<? super T>> collection) Create a predicate that tests whether this expression is not a member of a collection.CriteriaBuilder.isNotNull(Expression<?> x) Create a predicate to test whether the expression is not null.Expression.isNotNull()Create a predicate to test whether the expression is not null.CriteriaBuilder.isNull(Expression<?> x) Create a predicate to test whether the expression is null.Expression.isNull()Create a predicate to test whether the expression is null.CriteriaBuilder.isTrue(Expression<Boolean> x) Create a predicate testing for a true value.CriteriaBuilder.le(Expression<? extends Number> x, Expression<? extends Number> y) Create a predicate for testing whether the first argument is less than or equal to the second.CriteriaBuilder.le(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is less than or equal to the second.NumericExpression.le(Expression<? extends Number> y) Create a predicate for testing whether this expression is less than or equal to the first argument.Create a predicate for testing whether this expression is less than or equal to the first argument.Create a predicate for testing whether this expression is less than the first argument.ComparableExpression.lessThan(Expression<? extends C> y) Create a predicate for testing whether this expression is less than the first argument.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.lessThan(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is less than the second.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.lessThan(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is less than the second.ComparableExpression.lessThanOrEqualTo(C y) Create a predicate for testing whether this expression is less than or equal to the first argument.ComparableExpression.lessThanOrEqualTo(Expression<? extends C> y) Create a predicate for testing whether this expression is less than or equal to the first argument.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.lessThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y) Create a predicate for testing whether the first argument is less than or equal to the second.<Y extends Comparable<? super Y>>
PredicateCriteriaBuilder.lessThanOrEqualTo(Expression<? extends Y> x, Y y) Create a predicate for testing whether the first argument is less than or equal to the second.CriteriaBuilder.like(Expression<String> x, Expression<String> pattern) Create a predicate for testing whether the expression satisfies the given pattern.CriteriaBuilder.like(Expression<String> x, Expression<String> pattern, char escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.CriteriaBuilder.like(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.CriteriaBuilder.like(Expression<String> x, String pattern) Create a predicate for testing whether the expression satisfies the given pattern.CriteriaBuilder.like(Expression<String> x, String pattern, char escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.CriteriaBuilder.like(Expression<String> x, String pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression satisfies the given pattern.TextExpression.like(Expression<String> pattern) Create a predicate for testing whether this expression satisfies the given pattern.TextExpression.like(Expression<String> pattern, char escapeChar) Create a predicate for testing whether this expression satisfies the given pattern.TextExpression.like(Expression<String> pattern, Expression<Character> escapeChar) Create a predicate for testing whether this expression satisfies the given pattern.Create a predicate for testing whether this expression satisfies the given pattern.Create a predicate for testing whether this expression satisfies the given pattern.TextExpression.like(String pattern, Expression<Character> escapeChar) Create a predicate for testing whether this expression satisfies the given pattern.CriteriaBuilder.lt(Expression<? extends Number> x, Expression<? extends Number> y) Create a predicate for testing whether the first argument is less than the second.CriteriaBuilder.lt(Expression<? extends Number> x, Number y) Create a predicate for testing whether the first argument is less than the second.NumericExpression.lt(Expression<? extends Number> y) Create a predicate for testing whether this expression is less than the first argument.Create a predicate for testing whether this expression is less than the first argument.BooleanExpression.not()Create a negation of this restriction.CriteriaBuilder.not(Expression<Boolean> restriction) Create a negation of the given restriction.Predicate.not()Create a negation of the predicate.PluralExpression.notContains(E elem) Create a predicate that tests whether an element is not a member of this collection.PluralExpression.notContains(Expression<? extends E> elem) Create a predicate that tests whether an element is not a member of this collection.TextExpression.notContains(String substring) Create a predicate for testing whether this expression does not contain the given substring.TextExpression.notEndsWith(String suffix) Create a predicate for testing whether this expression does not end with the given suffix.CriteriaBuilder.notEqual(Expression<?> x, Expression<?> y) Create a predicate for testing the arguments for inequality.CriteriaBuilder.notEqual(Expression<?> x, Object y) Create a predicate for testing the arguments for inequality.Expression.notEqualTo(Expression<?> value) Create a predicate to test whether the expression is unequal to the argument.Expression.notEqualTo(Object value) Create a predicate to test whether the expression is unequal to the argument.CriteriaBuilder.notLike(Expression<String> x, Expression<String> pattern) Create a predicate for testing whether the expression does not satisfy the given pattern.CriteriaBuilder.notLike(Expression<String> x, Expression<String> pattern, char escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.CriteriaBuilder.notLike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.CriteriaBuilder.notLike(Expression<String> x, String pattern) Create a predicate for testing whether the expression does not satisfy the given pattern.CriteriaBuilder.notLike(Expression<String> x, String pattern, char escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.CriteriaBuilder.notLike(Expression<String> x, String pattern, Expression<Character> escapeChar) Create a predicate for testing whether the expression does not satisfy the given pattern.TextExpression.notLike(Expression<String> pattern) Create a predicate for testing whether this expression does not satisfy the given pattern.TextExpression.notLike(Expression<String> pattern, char escapeChar) Create a predicate for testing whether this expression does not satisfy the given pattern.TextExpression.notLike(Expression<String> pattern, Expression<Character> escapeChar) Create a predicate for testing whether this expression does not satisfy the given pattern.Create a predicate for testing whether this expression does not satisfy the given pattern.Create a predicate for testing whether this expression does not satisfy the given pattern.TextExpression.notLike(String pattern, Expression<Character> escapeChar) Create a predicate for testing whether this expression does not satisfy the given pattern.TextExpression.notStartsWith(String prefix) Create a predicate for testing whether this expression does not start with the given prefix.BooleanExpression.or(Expression<Boolean> y) Create a disjunction of this and the given boolean expressions.CriteriaBuilder.or(BooleanExpression... restrictions) Create a disjunction of the given restriction predicates.CriteriaBuilder.or(Expression<Boolean> x, Expression<Boolean> y) Create a disjunction of the given boolean expressions.CriteriaBuilder.or(List<? extends Expression<Boolean>> restrictions) Create a disjunction of the given restriction predicates.TextExpression.startsWith(String prefix) Create a predicate for testing whether this expression starts with the given prefix.