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:
    java.io.Serializable, javax.persistence.metamodel.Attribute<X,​java.util.Set<V>>, javax.persistence.metamodel.Bindable<V>, javax.persistence.metamodel.PluralAttribute<X,​java.util.Set<V>,​V>, javax.persistence.metamodel.SetAttribute<X,​V>

    public class SetAttributeImpl<X,​V>
    extends PluralAttributeImpl<X,​java.util.Set<V>,​V>
    implements javax.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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.persistence.metamodel.Attribute

        javax.persistence.metamodel.Attribute.PersistentAttributeType
      • Nested classes/interfaces inherited from interface javax.persistence.metamodel.Bindable

        javax.persistence.metamodel.Bindable.BindableType
      • Nested classes/interfaces inherited from interface javax.persistence.metamodel.PluralAttribute

        javax.persistence.metamodel.PluralAttribute.CollectionType
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SetAttributeImpl​(ManagedTypeImpl<X> managedType, org.eclipse.persistence.mappings.CollectionMapping mapping)
      INTERNAL:
      protected SetAttributeImpl​(ManagedTypeImpl<X> managedType, org.eclipse.persistence.mappings.CollectionMapping mapping, boolean validationEnabled)
      INTERNAL:
    • Constructor Detail

      • SetAttributeImpl

        protected SetAttributeImpl​(ManagedTypeImpl<X> managedType,
                                   org.eclipse.persistence.mappings.CollectionMapping mapping)
        INTERNAL:
        Parameters:
        managedType -
        mapping -
      • SetAttributeImpl

        protected SetAttributeImpl​(ManagedTypeImpl<X> managedType,
                                   org.eclipse.persistence.mappings.CollectionMapping mapping,
                                   boolean validationEnabled)
        INTERNAL:
        Parameters:
        managedType -
        mapping -
        validationEnabled -
    • Method Detail

      • getCollectionType

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

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