Class ObjectGraphImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectGraphImpl​(org.eclipse.persistence.core.queries.CoreAttributeGroup group)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAttributeNodes​(java.lang.String... attributeName)
      Add an AttributeNode attribute to the entity graph.
      Subgraph addSubgraph​(java.lang.String attribute)
      Used to add a node of the graph that corresponds to a managed type.
      Subgraph addSubgraph​(java.lang.String attribute, java.lang.Class type)
      Used to add a node of the graph that corresponds to a managed type with inheritance.
      org.eclipse.persistence.core.queries.CoreAttributeGroup getAttributeGroup()  
      java.util.List<AttributeNode> getAttributeNodes()
      returns the attributes of this managed type that are included in the sub-graph
      java.lang.Class getClassType()
      returns the type of this sub-graph if it was used to extend a superclass sub-graph definition.
      java.lang.String getName()
      Returns the name of the static EntityGraph.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectGraphImpl

        public ObjectGraphImpl​(org.eclipse.persistence.core.queries.CoreAttributeGroup group)
    • Method Detail

      • getClassType

        public java.lang.Class getClassType()
        Description copied from interface: Subgraph
        returns the type of this sub-graph if it was used to extend a superclass sub-graph definition.
        Specified by:
        getClassType in interface Subgraph
      • getName

        public java.lang.String getName()
        Description copied from interface: ObjectGraph
        Returns the name of the static EntityGraph. Will return null if the EntityGraph is not a named EntityGraph.
        Specified by:
        getName in interface ObjectGraph
      • addSubgraph

        public Subgraph addSubgraph​(java.lang.String attribute)
        Description copied from interface: Subgraph
        Used to add a node of the graph that corresponds to a managed type. This allows for construction of multi-node Entity graphs that include related managed types.
        Specified by:
        addSubgraph in interface ObjectGraph
        Specified by:
        addSubgraph in interface Subgraph
      • addSubgraph

        public Subgraph addSubgraph​(java.lang.String attribute,
                                    java.lang.Class type)
        Description copied from interface: ObjectGraph
        Used to add a node of the graph that corresponds to a managed type with inheritance. This allows for multiple subclass sub-graphs to be defined for this node of the entity graph. Subclass sub-graphs will include the specified attributes of superclass sub-graphs
        Specified by:
        addSubgraph in interface ObjectGraph
        Specified by:
        addSubgraph in interface Subgraph
      • getAttributeGroup

        public org.eclipse.persistence.core.queries.CoreAttributeGroup getAttributeGroup()