About collection

1-10 of 200Refresh
Manual
178

Collections in JPQL and Criteria Queries

Collections may appear in JPQL queries: as parameters - when collections are assigned as arguments. as path expressions - in navigation to persistent collection fields. IS [NOT] EMPTY The IS [NOT] EMPTY operator checks whether a specified collection is empty or not. For example: c.languages
JPA Doc
46

get(collection)

Method javax.persistence.criteria.Path Expression get(   PluralAttribute collection ) Create a path corresponding to the referenced collection-valued attribute. Parameters: collection - collection-valued attribute Returns: expression corresponding to the referenced attribute Since: JPA 2.0
JPA Doc
46

isMember(elem, collection)

,   Expression collection ) Create a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false. Parameters: elem - element expression collection - expression Returns: is-member predicate Since: JPA 2.0
JPA Doc
46

isMember(elem, collection)

Method javax.persistence.criteria.CriteriaBuilder Predicate isMember(   E elem,   Expression collection ) Create a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false. Parameters: elem - element collection - expression Returns: is-member predicate Since: JPA 2.0
JPA Doc
46

isMember(elem, collection)

,   Expression collection ) Create a predicate that tests whether an element is a member of a collection. If the collection is empty, the predicate will be false. Parameters: elem - element expression collection - expression Returns: is-member predicate Since: JPA 2.0
JPA Doc
46

isNotMember(elem, collection)

,   Expression collection ) Create a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true. Parameters: elem - element expression collection - expression Returns: is-not-member predicate Since: JPA 2.0
JPA Doc
46

isNotMember(elem, collection)

Method javax.persistence.criteria.CriteriaBuilder Predicate isNotMember(   E elem,   Expression collection ) Create a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true. Parameters: elem - element collection - expression Returns: is-not-member predicate Since: JPA 2.0
JPA Doc
46

isNotMember(elem, collection)

,   Expression collection ) Create a predicate that tests whether an element is not a member of a collection. If the collection is empty, the predicate will be true. Parameters: elem - element expression collection - expression Returns: is-not-member predicate Since: JPA 2.0
JPA Doc
46

size(collection)

Method javax.persistence.criteria.CriteriaBuilder Expression size(   C collection ) Create an expression that tests the size of a collection. Parameters: collection - collection Returns: size expression Since: JPA 2.0
JPA Doc
46

isEmpty(collection)

Method javax.persistence.criteria.CriteriaBuilder Predicate isEmpty(   Expression collection ) Create a predicate that tests whether a collection is empty. Parameters: collection - expression Returns: is-empty predicate Since: JPA 2.0