Class SetAttributeImpl<X,​V>

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

    public class SetAttributeImpl<X,​V>
    extends PluralAttributeImpl<X,​Set<V>,​V>
    implements jakarta.persistence.metamodel.SetAttribute<X,​V>

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

    Description: Instances of the type SetAttribute represent persistent Set-valued attributes.

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

      • SetAttributeImpl

        protected SetAttributeImpl​(ManagedTypeImpl<X> managedType,
                                   CollectionMapping mapping,
                                   boolean validationEnabled)
        INTERNAL:
        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,​Set<V>,​V>
        Specified by:
        getCollectionType in class PluralAttributeImpl<X,​Set<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,​Set<V>>
        Returns:
        Java type