About predicate

11-20 of 146Refresh
JPA Doc
71

values()

Static Method javax.persistence.criteria.Predicate.BooleanOperator BooleanOperator[] values() Returns an array containing the constants of this enum type. This method may be used to iterate over the constants as follows: for (BooleanOperator c : BooleanOperator.values()) System.out.println(c
JPA Doc
61

javax.persistence.criteria.CriteriaBuilder

selections, expressions, predicates, orderings. Note that Predicate is used instead of Expression in ... : subquery - subquery Returns: all expression Since: JPA 2.0 Predicate and( Predicate... restrictions) Create a conjunction of the given restriction predicates. Create a conjunction of the given
Manual
59

Logical Operators in JPQL and Criteria API

part of its JDO support. Criteria Query Logical Operators Boolean Expressions and Predicates Boolean ... = country.get("isInOECD"); Predicate is a special sub interface of ExpressionPredicate isLarge = cb.gt(country.get("area"), 1000000); AND / OR Expressions
Manual
39

Collections in JPQL and Criteria Queries

= cb.parameter(String.class); // collection IS [NOT] EMPTY Predicate e1 = cb.isEmpty(languages); Predicate e2 = cb.isNotEmpty(languages); // element [NOT] MEMBER OF collection Predicate m1 = cb.isMember(param, languages); Predicate m2 = cb.isMember("English", languages
Manual
37

WHERE clause (JPQL / Criteria API)

the WHERE clause, which is also known as the WHERE predicate, defines which objects to accept. Only Country objects for which the predicate expression evaluates to TRUE are passed to the SELECT clause and then collected as query results. WHERE Predicate and Indexes Formally, the WHERE clause functions as
JPA Doc
29

javax.persistence.criteria.CriteriaBuilder.In

>, Predicate, Selection, TupleElement Interface used to build in predicates. Since: JPA ... conjuncts or disjuncts of the predicate. 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
JPA Doc
29

javax.persistence.criteria.Subquery

to the list do not affect the query. Returns: the list of grouping expressions Since: JPA 2.0 Predicate getGroupRestriction() Return the predicate that corresponds to the restriction(s) over the grouping items, or null if no restrictions have been specified. Return the predicate that corresponds
Manual
28

Strings in JPQL and Criteria Queries

> param = cb.parameter(String.class); // str [NOT] LIKE pattern Predicate l1 = cb.like(path, param); Predicate l2 = cb.like(path, "a%"); Predicate l3 = cb.notLike(path, param); Predicate
JPA Doc
21

javax.persistence.criteria.Expression

, ParameterExpression, Path, PluralJoin, Predicate, Root, SetJoin, Subquery Type for query expressions ... Predicate in(Object... values) Create a predicate to test whether the expression is a member of the argument list. Create a predicate to test whether the expression is a member of the argument list
JPA Doc
20

javax.persistence.criteria.CollectionJoin

Since: JPA 2.0 Predicate in(Object... values) Create a predicate to test whether the expression is a member of the argument list. Create a predicate to test whether the expression is a member of the argument list. Parameters: values - values to be tested against Returns: predicate testing