java.lang.Object
org.eclipse.persistence.internal.jaxb.AttributeNodeImpl
org.eclipse.persistence.internal.jaxb.ObjectGraphImpl
All Implemented Interfaces:
AttributeNode, ObjectGraph, Subgraph

public class ObjectGraphImpl extends AttributeNodeImpl implements ObjectGraph, Subgraph
  • Constructor Details

  • Method Details

    • 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
    • addAttributeNodes

      public void addAttributeNodes(String... attributeName)
      Description copied from interface: Subgraph
      Add an AttributeNode attribute to the entity graph.
      Specified by:
      addAttributeNodes in interface ObjectGraph
      Specified by:
      addAttributeNodes in interface Subgraph
    • 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
    • getAttributeNodes

      public List<AttributeNode> getAttributeNodes()
      Description copied from interface: Subgraph
      returns the attributes of this managed type that are included in the sub-graph
      Specified by:
      getAttributeNodes in interface ObjectGraph
      Specified by:
      getAttributeNodes in interface Subgraph
    • getAttributeGroup

      public CoreAttributeGroup getAttributeGroup()