Class ObjectGraphImpl
- 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
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jaxb.AttributeNodeImpl
currentAttribute
-
-
Constructor Summary
Constructors Constructor Description ObjectGraphImpl(CoreAttributeGroup group)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttributeNodes(String... attributeName)Add an AttributeNode attribute to the entity graph.SubgraphaddSubgraph(String attribute)Used to add a node of the graph that corresponds to a managed type.SubgraphaddSubgraph(String attribute, Class type)Used to add a node of the graph that corresponds to a managed type with inheritance.CoreAttributeGroupgetAttributeGroup()List<AttributeNode>getAttributeNodes()returns the attributes of this managed type that are included in the sub-graphClassgetClassType()returns the type of this sub-graph if it was used to extend a superclass sub-graph definition.StringgetName()Returns the name of the static EntityGraph.-
Methods inherited from class org.eclipse.persistence.internal.jaxb.AttributeNodeImpl
getAttributeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.jaxb.AttributeNode
getAttributeName
-
-
-
-
Constructor Detail
-
ObjectGraphImpl
public ObjectGraphImpl(CoreAttributeGroup group)
-
-
Method Detail
-
getClassType
public Class getClassType()
Description copied from interface:Subgraphreturns the type of this sub-graph if it was used to extend a superclass sub-graph definition.- Specified by:
getClassTypein interfaceSubgraph
-
getName
public String getName()
Description copied from interface:ObjectGraphReturns the name of the static EntityGraph. Will return null if the EntityGraph is not a named EntityGraph.- Specified by:
getNamein interfaceObjectGraph
-
addAttributeNodes
public void addAttributeNodes(String... attributeName)
Description copied from interface:SubgraphAdd an AttributeNode attribute to the entity graph.- Specified by:
addAttributeNodesin interfaceObjectGraph- Specified by:
addAttributeNodesin interfaceSubgraph
-
addSubgraph
public Subgraph addSubgraph(String attribute)
Description copied from interface:SubgraphUsed 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:
addSubgraphin interfaceObjectGraph- Specified by:
addSubgraphin interfaceSubgraph
-
addSubgraph
public Subgraph addSubgraph(String attribute, Class type)
Description copied from interface:ObjectGraphUsed 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:
addSubgraphin interfaceObjectGraph- Specified by:
addSubgraphin interfaceSubgraph
-
getAttributeNodes
public List<AttributeNode> getAttributeNodes()
Description copied from interface:Subgraphreturns the attributes of this managed type that are included in the sub-graph- Specified by:
getAttributeNodesin interfaceObjectGraph- Specified by:
getAttributeNodesin interfaceSubgraph
-
getAttributeGroup
public CoreAttributeGroup getAttributeGroup()
-
-