Home » Search

About predicate

11-20 of 147Refresh
JPA Doc
77

valueOf(name)

Static Method javax.persistence.criteria.Predicate.BooleanOperator BooleanOperator valueOf(   String name ) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Parameters: name - the name
JPA Doc
77

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
64

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
62

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
JPA Doc
55

Criteria Query Expressions

Reference (JavaDoc) of JPA query expression interfaces, including Expression, Predicate, Path, ParameterExpression and Subquery.
Manual
41

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
JPA Doc
30

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
30

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
29

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
22

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