ObjectDB Database Search

1-27 of 27 results

Logical Operators in JPQL and Criteria API

for NOT . Criteria query logical operators Boolean expressions and predicates In criteria queries ... "); Path isInEU = country. get ("isInEU"); Path isInOECD = country. get ("isInOECD"); The Predicate ... comparison operators: Predicate isLarge = cb. gt (country. get ("area"), 1000000); AND / OR

jakarta.persistence.criteria.Predicate.isNegated()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Predicate boolean isNegated() Whether the predicate has been created from another predicate by applying Predicate .not or by calling CriteriaBuilder.not . Returns: boolean indicating if the predicate is a negated predicate . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Predicate.getOperator()

Jakarta Persistence (JPA) Method in jakarta.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: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Predicate.getExpressions()

Jakarta Persistence (JPA) Method in jakarta.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

jakarta.persistence.criteria.Predicate.not()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria. Predicate Predicate not() Create a negation of the predicate . Returns: negated predicate . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.AbstractQuery.having(Predicate...)

having (    Predicate ... restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates . Replaces the previously having added ... are simply removed. Parameters: restrictions - zero or more restriction predicates Returns: the modified query. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Subquery.where(Predicate...)

;  Predicate ... restrictions ) Modify the subquery to restrict the result according to the conjunction of the specified restriction predicates . Replaces the previously added restriction(s), if any ... - zero or more restriction predicates Returns: the modified subquery. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.AbstractQuery.where(Predicate...)

where (    Predicate ... restrictions ) Modify the query to restrict the query results according to the conjunction of the specified restriction predicates . Replaces the previously added ... removed. Parameters: restrictions - zero or more restriction predicates Returns: the modified query. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Subquery.having(Predicate...)

;  Predicate ... restrictions ) Specify restrictions over the groups of the subquery according the conjunction of the specified restriction predicates . Replaces the previously added having ... : restrictions - zero or more restriction predicates Returns: the modified subquery. Since: Jakarta Persistence (JPA) 1.0

Collections in JPQL and Criteria Queries

] 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); Predicate m3 = cb. isNotMember (param, languages); Predicate m4 = cb

jakarta.persistence.criteria.CollectionJoin.on(Predicate...)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CollectionJoin CollectionJoin on (    Predicate ... restrictions ) Modify the join to restrict the result according ... . Parameters: restrictions - zero or more restriction predicates Returns: the modified join object. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.SetJoin.on(Predicate...)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.SetJoin SetJoin on (    Predicate ... restrictions ) Modify the join to restrict the result according to the specified ... : restrictions - zero or more restriction predicates Returns: the modified join object. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.Join.on(Predicate...)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Join Join on (    Predicate ... restrictions ) Modify the join to restrict the result according to the specified ... - zero or more restriction predicates Returns: the modified join object. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.MapJoin.on(Predicate...)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.MapJoin MapJoin on (    Predicate ... restrictions ) Modify the join to restrict the result according to the specified ... : restrictions - zero or more restriction predicates Returns: the modified join object. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.criteria.ListJoin.on(Predicate...)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.ListJoin ListJoin on (    Predicate ... restrictions ) Modify the join to restrict the result according to the specified ... : restrictions - zero or more restriction predicates Returns: the modified join object. Since: Jakarta Persistence (JPA) 2.1

JPA Criteria Query Expressions

interface for expressions ├─ Predicate # Boolean expression (WHERE/HAVING) │ └─ CriteriaBuilder.In # IN predicate ├─ Path # Navigation path (attributes) ├─ ParameterExpression # Query parameter ... predicates . A navigation path to an attribute value or a referenced entity. A type-safe representation

Strings in JPQL and Criteria Queries

. 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 l4 = cb. notLike

jakarta.persistence.criteria.AbstractQuery.getGroupRestriction()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery Predicate getGroupRestriction() Return the predicate that corresponds to the restriction(s) over the grouping items, or null if no restrictions have been specified. Returns: having clause predicate . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CommonAbstractCriteria.getRestriction()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CommonAbstractCriteria Predicate getRestriction() Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified. Returns: where clause predicate . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Join.getOn()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Join Predicate getOn() Return the predicate that corresponds to the ON restriction(s) on the join, or null if no ON condition has been specified. Returns: the ON restriction predicate . Since: Jakarta Persistence (JPA) 2.1

java.sql.Date equals comparison not working with CriteriaAPI

= ...; Root root = ...; java.sql.Date myDate = ...; Predicate predicate = builder.equal(root ... of the created predicate yields in something like: $1.eintritt=2013-11-01 whereas as seen in my manual query ... ;      Predicate predicate = cb.equal(root.get("date"), cb.literal(myDate

jakarta.persistence.criteria.AbstractQuery.having(List)

the conjunction of the specified restriction predicates . Replaces the previously added having ... removed. Parameters: restrictions - a list of zero or more restriction predicates Returns: the modified query. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.criteria.Subquery.where(List)

of the specified restriction predicates . Replaces the previously added restriction(s), if any ... - a list of zero or more restriction predicates Returns: the modified query. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.criteria.AbstractQuery.where(List)

to the conjunction of the specified restriction predicates . Replaces the previously added restriction(s ... . Parameters: restrictions - a list of zero or more restriction predicates Returns: the modified query. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.criteria.Subquery.having(List)

the conjunction of the specified restriction predicates . Replaces the previously added having restriction(s ... : restrictions - a list of zero or more restriction predicates Returns: the modified query. Since: Jakarta Persistence (JPA) 3.2

CriteriaQuery .where() for multiple conditions

.from(Person.class); criteriaQuery.select(root); Predicate criteria = criteriaBuilder

@ElementCollection query returning extra result per element in collection

with the 'count' while re-using the same predicates .   This is indeed, not a bug Willks William