Class EntityGraphImpl<X>

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

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

      Constructors 
      Modifier Constructor Description
        EntityGraphImpl​(org.eclipse.persistence.queries.AttributeGroup group)  
      protected EntityGraphImpl​(org.eclipse.persistence.queries.AttributeGroup group, org.eclipse.persistence.descriptors.ClassDescriptor descriptor)  
      protected EntityGraphImpl​(org.eclipse.persistence.queries.AttributeGroup group, org.eclipse.persistence.descriptors.ClassDescriptor descriptor, java.lang.String attribute)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addAttributeNodeImpl​(AttributeNodeImpl attributeNode)  
      void addAttributeNodes​(java.lang.String... attributeNames)  
      void addAttributeNodes​(javax.persistence.metamodel.Attribute<X,​?>... attribute)  
      <X> javax.persistence.Subgraph<X> addKeySubgraph​(java.lang.String attributeName)  
      <X> javax.persistence.Subgraph<X> addKeySubgraph​(java.lang.String attributeName, java.lang.Class<X> type)  
      <T> javax.persistence.Subgraph<T> addKeySubgraph​(javax.persistence.metamodel.Attribute<X,​T> attribute)  
      <T> javax.persistence.Subgraph<? extends T> addKeySubgraph​(javax.persistence.metamodel.Attribute<X,​T> attribute, java.lang.Class<? extends T> type)  
      <T> javax.persistence.Subgraph<? extends T> addSubclassSubgraph​(java.lang.Class<? extends T> type)  
      <X> javax.persistence.Subgraph<X> addSubgraph​(java.lang.String attributeName)  
      <X> javax.persistence.Subgraph<X> addSubgraph​(java.lang.String attributeName, java.lang.Class<X> type)  
      <T> javax.persistence.Subgraph<T> addSubgraph​(javax.persistence.metamodel.Attribute<X,​T> attribute)  
      <T> javax.persistence.Subgraph<? extends T> addSubgraph​(javax.persistence.metamodel.Attribute<X,​T> attribute, java.lang.Class<? extends T> type)  
      protected void buildAttributeNodes()  
      org.eclipse.persistence.queries.AttributeGroup getAttributeGroup()  
      java.lang.String getAttributeName()  
      java.util.List<javax.persistence.AttributeNode<?>> getAttributeNodes()  
      java.lang.Class<X> getClassType()  
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.lang.Class<X> classType
      • attributeNodes

        protected java.util.Map<java.lang.String,​AttributeNodeImpl> attributeNodes
    • 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,
                                  java.lang.String attribute)
    • Method Detail

      • getName

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

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

        protected void addAttributeNodeImpl​(AttributeNodeImpl attributeNode)
      • addAttributeNodes

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getAttributeName()
        Specified by:
        getAttributeName in interface javax.persistence.AttributeNode<X>
        Overrides:
        getAttributeName in class AttributeNodeImpl<X>
      • buildAttributeNodes

        protected void buildAttributeNodes()