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>
,Graph<J>
,GraphNode<J>
,RootGraph<J>
,GraphImplementor<J>
,GraphNodeImplementor<J>
,RootGraphImplementor<J>
Implementation of the JPA-defined
EntityGraph
interface.-
Constructor Summary
ConstructorsConstructorDescriptionRootGraphImpl
(String name, GraphImplementor<J> original, boolean mutable) RootGraphImpl
(String name, EntityDomainType<J> entityType) RootGraphImpl
(String name, EntityDomainType<J> entityType, boolean mutable) -
Method Summary
Modifier and TypeMethodDescription<E> SubGraphImplementor<E>
addElementSubgraph
(PluralAttribute<? super J, ?, E> attribute) <X> SubGraphImplementor<X>
addElementSubgraph
(String attributeName) <X> SubGraphImplementor<X>
addElementSubgraph
(String attributeName, Class<X> type) <K> SubGraphImplementor<K>
addMapKeySubgraph
(MapAttribute<? super J, K, ?> attribute) <T1> SubGraphImplementor<? extends T1>
addSubclassSubgraph
(Class<? extends T1> type) <E> SubGraphImplementor<E>
addTreatedElementSubgraph
(PluralAttribute<? super J, ?, ? super E> attribute, Class<E> type) <K> SubGraphImplementor<K>
addTreatedMapKeySubgraph
(MapAttribute<? super J, ? super K, ?> attribute, Class<K> type) <Y> SubGraphImplementor<Y>
addTreatedSubgraph
(Attribute<? super J, ? super Y> attribute, Class<Y> type) <S extends J>
SubGraphImplementor<S>addTreatedSubgraph
(Class<S> type) boolean
appliesTo
(EntityDomainType<?> entityType) getName()
makeCopy
(boolean mutable) makeRootGraph
(String name, boolean mutable) Create a named rootGraph
if the given name is not null.makeSubGraph
(boolean mutable) Methods inherited from class org.hibernate.graph.internal.AbstractGraph
addAttributeNode, addAttributeNode, addAttributeNode, addAttributeNode, addAttributeNodes, addAttributeNodes, findAttributeNode, findAttributeNode, findOrCreateAttributeNode, getAttributeNode, getAttributeNode, getAttributeNodeImplementors, getAttributeNodeList, getGraphAttributeNodes, getGraphedType, merge, removeAttributeNode, removeAttributeNode, removeAttributeNodes, visitAttributeNodes
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 jakarta.persistence.Graph
addAttributeNodes, getAttributeNode, getAttributeNode, removeAttributeNode, removeAttributeNode, removeAttributeNodes
Methods inherited from interface org.hibernate.graph.Graph
addPluralSubgraph, getGraphAttributeNodes, getGraphedType
Methods inherited from interface org.hibernate.graph.spi.GraphImplementor
addAttributeNode, addAttributeNode, addAttributeNode, addAttributeNode, addKeySubGraph, addKeySubGraph, addKeySubGraph, addKeySubGraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, findAttributeNode, findAttributeNode, findOrCreateAttributeNode, findOrCreateAttributeNode, getAttributeNodeImplementors, getAttributeNodeList, hasAttributeNode, hasAttributeNode, merge, visitAttributeNodes
Methods inherited from interface org.hibernate.graph.RootGraph
addAttributeNodes, addKeySubgraph, addKeySubgraph, addKeySubgraph, addKeySubgraph, addSubgraph, addSubgraph, addSubgraph, addSubgraph, getAttributeNodes
Methods inherited from interface org.hibernate.graph.spi.RootGraphImplementor
makeImmutableCopy
-
Constructor Details
-
RootGraphImpl
-
RootGraphImpl
-
RootGraphImpl
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceEntityGraph<J>
-
appliesTo
- Specified by:
appliesTo
in interfaceRootGraphImplementor<J>
-
makeCopy
-
makeSubGraph
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
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
-
addTreatedSubgraph
- Specified by:
addTreatedSubgraph
in interfaceEntityGraph<J>
-
addTreatedSubgraph
public <Y> SubGraphImplementor<Y> addTreatedSubgraph(Attribute<? super J, ? super Y> attribute, Class<Y> type) - Specified by:
addTreatedSubgraph
in interfaceGraph<J>
- Specified by:
addTreatedSubgraph
in interfaceGraph<J>
-
addTreatedElementSubgraph
public <E> SubGraphImplementor<E> addTreatedElementSubgraph(PluralAttribute<? super J, ?, ? super E> attribute, Class<E> type) - Specified by:
addTreatedElementSubgraph
in interfaceGraph<J>
- Specified by:
addTreatedElementSubgraph
in interfaceGraph<J>
-
addTreatedMapKeySubgraph
public <K> SubGraphImplementor<K> addTreatedMapKeySubgraph(MapAttribute<? super J, ? super K, ?> attribute, Class<K> type) - Specified by:
addTreatedMapKeySubgraph
in interfaceGraph<J>
- Specified by:
addTreatedMapKeySubgraph
in interfaceGraph<J>
-
addSubclassSubgraph
- Specified by:
addSubclassSubgraph
in interfaceEntityGraph<J>
- Specified by:
addSubclassSubgraph
in interfaceRootGraph<J>
-
addElementSubgraph
- Specified by:
addElementSubgraph
in interfaceGraph<J>
-
addElementSubgraph
- Specified by:
addElementSubgraph
in interfaceGraph<J>
-
addElementSubgraph
- Specified by:
addElementSubgraph
in interfaceGraph<J>
-
addMapKeySubgraph
- Specified by:
addMapKeySubgraph
in interfaceGraph<J>
-