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

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

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

    Methods in javax.persistence.criteria that return CollectionAttribute
    Modifier and Type | Method and Description
    --- | ---
    `CollectionAttribute<? super Z,E>` | CollectionJoin.`getModel()` Return the metamodel representation for the collection attribute.

    Methods in javax.persistence.criteria with parameters of type CollectionAttribute
    Modifier and Type | Method and Description
    --- | ---
    `<Y> CollectionJoin<X,Y>` | From.`join(CollectionAttribute<? super X,Y> collection)` Create an inner join to the specified Collection-valued attribute.
    `<Y> CollectionJoin<X,Y>` | From.`join(CollectionAttribute<? super X,Y> collection, JoinType jt)` Create a join to the specified Collection-valued attribute using the given join type.

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

    Methods in javax.persistence.metamodel that return CollectionAttribute
    Modifier and Type | Method and Description
    --- | ---
    `CollectionAttribute<? super X,?>` | ManagedType.`getCollection(String name)` Return the Collection-valued attribute of the managed type that corresponds to the specified name.
    `<E> CollectionAttribute<? super X,E>` | ManagedType.`getCollection(String name, Class<E> elementType)` Return the Collection-valued attribute of the managed type that corresponds to the specified name and Java element type.
    `CollectionAttribute<X,?>` | ManagedType.`getDeclaredCollection(String name)` Return the Collection-valued attribute declared by the managed type that corresponds to the specified name.
    `<E> CollectionAttribute<X,E>` | ManagedType.`getDeclaredCollection(String name, Class<E> elementType)` Return the Collection-valued attribute declared by the managed type that corresponds to the specified name and Java element type.

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