javax.persistence.metamodel
Interface PluralAttribute<X,C,E>
- Type Parameters:
X - The type the represented collection belongs toC - The type of the represented collectionE - The element type of the represented collection
- All Superinterfaces:
- Attribute<X,C>, Bindable<E>
- All Known Subinterfaces:
- CollectionAttribute<X,E>, ListAttribute<X,E>, MapAttribute<X,K,V>, SetAttribute<X,E>
public interface PluralAttribute<X,C,E>
- extends Attribute<X,C>, Bindable<E>
Instances of the type PluralAttribute represent persistent collection-valued attributes.
- Since:
- JPA 2.0 version.
- Author:
- Florent Benoit
- See Also:
- JPA 2.0 specification
getCollectionType
PluralAttribute.CollectionType getCollectionType()
- Return the collection type.
- Returns:
- collection type
getElementType
Type<E> getElementType()
- Return the type representing the element type of the collection.
- Returns:
- element type
Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.