## Uses of Interface
javax.persistence.metamodel.PluralAttribute

- Packages that use PluralAttribute
  Package | Description
  --- | ---
  javax.persistence.criteria | Java Persistence Criteria API
  javax.persistence.metamodel | Java Persistence Metamodel API

- - ### Uses of PluralAttribute in javax.persistence.criteria

    Methods in javax.persistence.criteria that return PluralAttribute
    Modifier and Type | Method and Description
    --- | ---
    `PluralAttribute<? super Z,C,E>` | PluralJoin.`getModel()` Return the metamodel representation for the collection-valued attribute corresponding to the join.

    Methods in javax.persistence.criteria with parameters of type PluralAttribute
    Modifier and Type | Method and Description
    --- | ---
    `<Y> Fetch<X,Y>` | FetchParent.`fetch(PluralAttribute<? super X,?,Y> attribute)` Create a fetch join to the specified collection-valued attribute using an inner join.
    `<Y> Fetch<X,Y>` | FetchParent.`fetch(PluralAttribute<? super X,?,Y> attribute, JoinType jt)` Create a fetch join to the specified collection-valued attribute using the given join type.
    `<E,C extends Collection<E>> Expression<C>` | Path.`get(PluralAttribute<X,C,E> collection)` Create a path corresponding to the referenced collection-valued attribute.

  - ### Uses of PluralAttribute in javax.persistence.metamodel

    Subinterfaces of PluralAttribute in javax.persistence.metamodel
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `CollectionAttribute<X,E>` Instances of the type `CollectionAttribute` represent persistent `java.util.Collection`-valued attributes.
    `interface` | `ListAttribute<X,E>` Instances of the type `ListAttribute` represent persistent `javax.util.List`-valued attributes.
    `interface` | `MapAttribute<X,K,V>` Instances of the type `MapAttribute` represent persistent `java.util.Map`-valued attributes.
    `interface` | `SetAttribute<X,E>` Instances of the type `SetAttribute` represent persistent `java.util.Set`-valued attributes.

    Methods in javax.persistence.metamodel that return types with arguments of type PluralAttribute
    Modifier and Type | Method and Description
    --- | ---
    `Set<PluralAttribute<X,?,?>>` | ManagedType.`getDeclaredPluralAttributes()` Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) declared by the managed type.
    `Set<PluralAttribute<? super X,?,?>>` | ManagedType.`getPluralAttributes()` Return all multi-valued attributes (Collection-, Set-, List-, and Map-valued attributes) of the managed type.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.