javax.persistence.metamodel
Interface AbstractCollection<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:
- Bindable<E>, Member<X,C>
- All Known Subinterfaces:
- Collection<X,E>, List<X,E>, Map<X,K,V>, Set<X,E>
public interface AbstractCollection<X,C,E>
- extends Member<X,C>, Bindable<E>
Instances of the type AbstractionCollection represent persistent
collection-valued attributes.
getCollectionType
AbstractCollection.CollectionType getCollectionType()
- Return the collection type.
- Returns:
- collection type
getMultiplicity
AbstractCollection.Multiplicity getMultiplicity()
- Return the multiplicity.
- Returns:
- multiplicity
getElementType
Type<E> getElementType()
- Return the type representing the element type of the collection.
- Returns:
- element type