Class EntityGraphImpl<X>

  • All Implemented Interfaces:
    jakarta.persistence.AttributeNode<X>, jakarta.persistence.EntityGraph<X>, jakarta.persistence.Subgraph<X>

    public class EntityGraphImpl<X>
    extends AttributeNodeImpl<X>
    implements jakarta.persistence.EntityGraph<X>, jakarta.persistence.Subgraph<X>
    Concrete JPA EntityGraph class. For this implementation the EntityGraphImpl wraps the EclipseLink AttributeGroup type.
    • Field Detail

      • attributeGroup

        protected org.eclipse.persistence.queries.AttributeGroup attributeGroup
      • isMutable

        protected transient boolean isMutable
      • descriptor

        protected transient org.eclipse.persistence.descriptors.ClassDescriptor descriptor
      • classType

        protected Class<X> classType
    • Constructor Detail

      • EntityGraphImpl

        protected EntityGraphImpl​(org.eclipse.persistence.queries.AttributeGroup group,
                                  org.eclipse.persistence.descriptors.ClassDescriptor descriptor)
      • EntityGraphImpl

        public EntityGraphImpl​(org.eclipse.persistence.queries.AttributeGroup group)
      • EntityGraphImpl

        protected EntityGraphImpl​(org.eclipse.persistence.queries.AttributeGroup group,
                                  org.eclipse.persistence.descriptors.ClassDescriptor descriptor,
                                  String attribute)
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface jakarta.persistence.EntityGraph<X>
      • addAttributeNodes

        public void addAttributeNodes​(String... attributeNames)
        Specified by:
        addAttributeNodes in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        addAttributeNodes in interface jakarta.persistence.Subgraph<X>
      • addAttributeNodeImpl

        protected void addAttributeNodeImpl​(AttributeNodeImpl attributeNode)
      • addAttributeNodes

        public void addAttributeNodes​(jakarta.persistence.metamodel.Attribute<X,​?>... attribute)
        Specified by:
        addAttributeNodes in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        addAttributeNodes in interface jakarta.persistence.Subgraph<X>
      • addSubgraph

        public <T> jakarta.persistence.Subgraph<T> addSubgraph​(jakarta.persistence.metamodel.Attribute<X,​T> attribute)
        Specified by:
        addSubgraph in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        addSubgraph in interface jakarta.persistence.Subgraph<X>
      • addSubgraph

        public <T> jakarta.persistence.Subgraph<? extends T> addSubgraph​(jakarta.persistence.metamodel.Attribute<X,​T> attribute,
                                                                         Class<? extends T> type)
        Specified by:
        addSubgraph in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        addSubgraph in interface jakarta.persistence.Subgraph<X>
      • addSubgraph

        public <X> jakarta.persistence.Subgraph<X> addSubgraph​(String attributeName)
        Specified by:
        addSubgraph in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        addSubgraph in interface jakarta.persistence.Subgraph<X>
      • addSubgraph

        public <X> jakarta.persistence.Subgraph<X> addSubgraph​(String attributeName,
                                                               Class<X> type)
        Specified by:
        addSubgraph in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        addSubgraph in interface jakarta.persistence.Subgraph<X>
      • addKeySubgraph

        public <T> jakarta.persistence.Subgraph<T> addKeySubgraph​(jakarta.persistence.metamodel.Attribute<X,​T> attribute)
        Specified by:
        addKeySubgraph in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        addKeySubgraph in interface jakarta.persistence.Subgraph<X>
      • addKeySubgraph

        public <T> jakarta.persistence.Subgraph<? extends T> addKeySubgraph​(jakarta.persistence.metamodel.Attribute<X,​T> attribute,
                                                                            Class<? extends T> type)
        Specified by:
        addKeySubgraph in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        addKeySubgraph in interface jakarta.persistence.Subgraph<X>
      • addKeySubgraph

        public <X> jakarta.persistence.Subgraph<X> addKeySubgraph​(String attributeName)
        Specified by:
        addKeySubgraph in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        addKeySubgraph in interface jakarta.persistence.Subgraph<X>
      • addKeySubgraph

        public <X> jakarta.persistence.Subgraph<X> addKeySubgraph​(String attributeName,
                                                                  Class<X> type)
        Specified by:
        addKeySubgraph in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        addKeySubgraph in interface jakarta.persistence.Subgraph<X>
      • addSubclassSubgraph

        public <T> jakarta.persistence.Subgraph<? extends T> addSubclassSubgraph​(Class<? extends T> type)
        Specified by:
        addSubclassSubgraph in interface jakarta.persistence.EntityGraph<X>
      • getAttributeNodes

        public List<jakarta.persistence.AttributeNode<?>> getAttributeNodes()
        Specified by:
        getAttributeNodes in interface jakarta.persistence.EntityGraph<X>
        Specified by:
        getAttributeNodes in interface jakarta.persistence.Subgraph<X>
      • getClassType

        public Class<X> getClassType()
        Specified by:
        getClassType in interface jakarta.persistence.Subgraph<X>
      • getAttributeGroup

        public org.eclipse.persistence.queries.AttributeGroup getAttributeGroup()
        Returns:
        the attributeGroup
      • buildAttributeNodes

        protected void buildAttributeNodes()