Home » Search

About predicate

1-10 of 147Refresh
JPA Doc
103

javax.persistence.criteria.Predicate

javax.persistence.criteria Interface Predicate Superinterfaces: Expression, Selection, TupleElement Subinterfaces: In The type of a simple or compound predicate: a conjunction or disjunction of restrictions. A simple predicate is considered to be a conjunction
Manual
95

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
83

isNegated()

Method javax.persistence.criteria.Predicate boolean isNegated() Whether the predicate has been created from another predicate by applying the Predicate.not() method or the CriteriaBuilder.not() method. Returns: boolean indicating if the predicate is a negated predicate Since: JPA 2.0
JPA Doc
81

getExpressions()

Method javax.persistence.criteria.Predicate List> getExpressions() 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. Returns: list of boolean expressions forming the predicate Since: JPA 2.0
JPA Doc
81

getOperator()

Method javax.persistence.criteria.Predicate BooleanOperator getOperator() Return the boolean operator for the predicate. If the predicate is simple, this is AND. Returns: boolean operator for the predicate Since: JPA 2.0
JPA Doc
81

not()

Method javax.persistence.criteria.Predicate Predicate not() Create a negation of the predicate. Returns: negated predicate Since: JPA 2.0
Manual
80

Comparison in JPQL and Criteria API

); // Equal (=) Predicate eq1 = cb.equal(name, nameParam); Predicate eq2 = cb.equal(name, "India"); Predicate eq3 = cb.equal(area, areaParam); Predicate eq4 = cb.equal(area, 1000000); // Not Equal (<>) Predicate ne1 = cb.notEqual(name, nameParam); Predicate ne2 = cb.notEqual
JPA Doc
80

javax.persistence.criteria.Predicate.BooleanOperator

javax.persistence.criteria Enum Predicate.BooleanOperator java.lang.Object java.lang.EnumPredicate.BooleanOperator> javax.persistence.criteria.Predicate.BooleanOperator Implemented Interfaces: Serializable, Comparable Since: JPA 2.0
JPA Doc
77

Predicate.BooleanOperator.AND

Enum Constant javax.persistence.criteria.Predicate.BooleanOperator AND Since: JPA 2.0
JPA Doc
77

Predicate.BooleanOperator.OR

Enum Constant javax.persistence.criteria.Predicate.BooleanOperator OR Since: JPA 2.0