Package jakarta.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 Known Subinterfaces:
CollectionAttribute<X,
,E> ListAttribute<X,
,E> MapAttribute<X,
,K, V> SetAttribute<X,
E>
Instances of the type
PluralAttribute
represent
persistent collection-valued attributes.- Since:
- 2.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Attribute
Attribute.PersistentAttributeType
Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Bindable
Bindable.BindableType
-
Method Summary
Modifier and TypeMethodDescriptionReturn the collection type.Return the type representing the element type of the collection.Methods inherited from interface jakarta.persistence.metamodel.Attribute
getDeclaringType, getJavaMember, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollection
Methods inherited from interface jakarta.persistence.metamodel.Bindable
getBindableJavaType, getBindableType
-
Method Details
-
getCollectionType
PluralAttribute.CollectionType getCollectionType()Return the collection type.- Returns:
- collection type
-
getElementType
Return the type representing the element type of the collection.- Returns:
- element type
-