Class ObjectGraphImpl

    • Method Detail

      • getClassType

        public 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 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​(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​(String attribute,
                                    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