Package org.hibernate.graph.internal
Class RootGraphImpl<J>
- java.lang.Object
-
- org.hibernate.graph.internal.AbstractGraphNode<J>
-
- org.hibernate.graph.internal.AbstractGraph<J>
-
- org.hibernate.graph.internal.RootGraphImpl<J>
-
- All Implemented Interfaces:
EntityGraph<J>,Graph<J>,GraphNode<J>,RootGraph<J>,GraphImplementor<J>,GraphNodeImplementor<J>,RootGraphImplementor<J>
public class RootGraphImpl<J> extends AbstractGraph<J> implements RootGraphImplementor<J>
Implementation of the JPA-definedEntityGraphinterface.
-
-
Constructor Summary
Constructors Constructor Description RootGraphImpl(String name, GraphImplementor<J> original, boolean mutable)RootGraphImpl(String name, EntityDomainType<J> entityType)RootGraphImpl(String name, EntityDomainType<J> entityType, boolean mutable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T1> SubGraph<? extends T1>addSubclassSubgraph(Class<? extends T1> type)booleanappliesTo(EntityDomainType<?> entityType)StringgetName()RootGraphImplementor<J>makeCopy(boolean mutable)RootGraphImplementor<J>makeRootGraph(String name, boolean mutable)Create a named rootGraphif the given name is not null.SubGraphImplementor<J>makeSubGraph(boolean mutable)-
Methods inherited from class org.hibernate.graph.internal.AbstractGraph
addAttributeNode, addAttributeNode, addAttributeNode, findAttributeNode, findAttributeNode, findOrCreateAttributeNode, getAttributeNodeImplementors, getGraphAttributeNodes, getGraphedType, merge
-
Methods inherited from class org.hibernate.graph.internal.AbstractGraphNode
isMutable, verifyMutability
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.graph.Graph
addPluralSubgraph, getGraphAttributeNodes, getGraphedType
-
Methods inherited from interface org.hibernate.graph.spi.GraphImplementor
addAttributeNode, addAttributeNode, addAttributeNode, addKeySubGraph, addKeySubGraph, addKeySubGraph, addKeySubGraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, findAttributeNode, findAttributeNode, findOrCreateAttributeNode, findOrCreateAttributeNode, getAttributeNodeImplementors, getAttributeNodeList, merge, visitAttributeNodes
-
Methods inherited from interface org.hibernate.graph.RootGraph
addAttributeNodes, addAttributeNodes, addKeySubgraph, addKeySubgraph, addKeySubgraph, addKeySubgraph, addSubgraph, addSubgraph, addSubgraph, addSubgraph, getAttributeNodes
-
Methods inherited from interface org.hibernate.graph.spi.RootGraphImplementor
makeImmutableCopy
-
-
-
-
Constructor Detail
-
RootGraphImpl
public RootGraphImpl(String name, EntityDomainType<J> entityType, boolean mutable)
-
RootGraphImpl
public RootGraphImpl(String name, EntityDomainType<J> entityType)
-
RootGraphImpl
public RootGraphImpl(String name, GraphImplementor<J> original, boolean mutable)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceEntityGraph<J>
-
makeCopy
public RootGraphImplementor<J> makeCopy(boolean mutable)
-
makeSubGraph
public SubGraphImplementor<J> makeSubGraph(boolean mutable)
Description copied from interface:Graph- Specified by:
makeSubGraphin interfaceGraph<J>- Specified by:
makeSubGraphin interfaceGraphImplementor<J>- Specified by:
makeSubGraphin interfaceRootGraph<J>- Specified by:
makeSubGraphin interfaceRootGraphImplementor<J>
-
makeRootGraph
public RootGraphImplementor<J> makeRootGraph(String name, boolean mutable)
Description copied from interface:GraphCreate a named rootGraphif the given name is not null.- Specified by:
makeRootGraphin interfaceGraph<J>- Specified by:
makeRootGraphin interfaceGraphImplementor<J>- Specified by:
makeRootGraphin interfaceRootGraph<J>- Specified by:
makeRootGraphin interfaceRootGraphImplementor<J>- Overrides:
makeRootGraphin classAbstractGraph<J>mutable- controls whether the resultingGraphis mutable
-
addSubclassSubgraph
public <T1> SubGraph<? extends T1> addSubclassSubgraph(Class<? extends T1> type)
- Specified by:
addSubclassSubgraphin interfaceEntityGraph<J>- Specified by:
addSubclassSubgraphin interfaceRootGraph<J>
-
appliesTo
public boolean appliesTo(EntityDomainType<?> entityType)
- Specified by:
appliesToin interfaceRootGraphImplementor<J>
-
-