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-definedEntityGraph
interface.
-
-
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)
boolean
appliesTo(EntityDomainType<?> entityType)
String
getName()
RootGraphImplementor<J>
makeCopy(boolean mutable)
RootGraphImplementor<J>
makeRootGraph(String name, boolean mutable)
Create a named rootGraph
if 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:
getName
in interfaceEntityGraph<J>
-
makeCopy
public RootGraphImplementor<J> makeCopy(boolean mutable)
-
makeSubGraph
public SubGraphImplementor<J> makeSubGraph(boolean mutable)
Description copied from interface:Graph
- Specified by:
makeSubGraph
in interfaceGraph<J>
- Specified by:
makeSubGraph
in interfaceGraphImplementor<J>
- Specified by:
makeSubGraph
in interfaceRootGraph<J>
- Specified by:
makeSubGraph
in interfaceRootGraphImplementor<J>
-
makeRootGraph
public RootGraphImplementor<J> makeRootGraph(String name, boolean mutable)
Description copied from interface:Graph
Create a named rootGraph
if the given name is not null.- Specified by:
makeRootGraph
in interfaceGraph<J>
- Specified by:
makeRootGraph
in interfaceGraphImplementor<J>
- Specified by:
makeRootGraph
in interfaceRootGraph<J>
- Specified by:
makeRootGraph
in interfaceRootGraphImplementor<J>
- Overrides:
makeRootGraph
in classAbstractGraph<J>
mutable
- controls whether the resultingGraph
is mutable
-
addSubclassSubgraph
public <T1> SubGraph<? extends T1> addSubclassSubgraph(Class<? extends T1> type)
- Specified by:
addSubclassSubgraph
in interfaceEntityGraph<J>
- Specified by:
addSubclassSubgraph
in interfaceRootGraph<J>
-
appliesTo
public boolean appliesTo(EntityDomainType<?> entityType)
- Specified by:
appliesTo
in interfaceRootGraphImplementor<J>
-
-