Class CollectionAttributeImpl<X,​V>

  • Type Parameters:
    X - The type the represented Collection belongs to
    V - The element type of the represented Collection
    All Implemented Interfaces:
    jakarta.persistence.metamodel.Attribute<X,​Collection<V>>, jakarta.persistence.metamodel.Bindable<V>, jakarta.persistence.metamodel.CollectionAttribute<X,​V>, jakarta.persistence.metamodel.PluralAttribute<X,​Collection<V>,​V>, Serializable

    public class CollectionAttributeImpl<X,​V>
    extends PluralAttributeImpl<X,​Collection<V>,​V>
    implements jakarta.persistence.metamodel.CollectionAttribute<X,​V>

    Purpose: Provides the implementation for the CollectionAttribute interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)

    Description: Instances of the type CollectionAttribute represent persistent Collection-valued attributes.

    Since:
    EclipseLink 1.2 - JPA 2.0
    See Also:
    CollectionAttribute, Serialized Form
    • Constructor Detail

      • CollectionAttributeImpl

        protected CollectionAttributeImpl​(ManagedTypeImpl<X> managedType,
                                          CollectionMapping mapping)
        INTERNAL: Construct an instance of Collection for the managed type managedType
        Parameters:
        managedType -
        mapping -
      • CollectionAttributeImpl

        protected CollectionAttributeImpl​(ManagedTypeImpl<X> managedType,
                                          CollectionMapping mapping,
                                          boolean validationEnabled)
        INTERNAL: Construct an instance of Collection for the managed type managedType
        Parameters:
        managedType -
        mapping -
        validationEnabled -
    • Method Detail

      • getCollectionType

        public jakarta.persistence.metamodel.PluralAttribute.CollectionType getCollectionType()
        Return the collection type.
        Specified by:
        getCollectionType in interface jakarta.persistence.metamodel.PluralAttribute<X,​Collection<V>,​V>
        Specified by:
        getCollectionType in class PluralAttributeImpl<X,​Collection<V>,​V>
        Returns:
        collection type
      • getJavaType

        public Class getJavaType()
        Return the Java type of the represented attribute.
        Specified by:
        getJavaType in interface jakarta.persistence.metamodel.Attribute<X,​V>
        Specified by:
        getJavaType in class AttributeImpl<X,​Collection<V>>
        Returns:
        Java type