Package org.hibernate.graph.internal
Class RootGraphImpl<J>
java.lang.Object
org.hibernate.graph.internal.AbstractGraphNode<J>
org.hibernate.graph.internal.GraphImpl<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 TypeMethodDescriptionboolean
appliesTo
(EntityDomainType<?> entityType) getName()
makeCopy
(boolean mutable) Make a copy of this graph node, with the given mutability.makeImmutableCopy
(String name) Make an immutable copy of this entity graph, using the given name.makeRootGraph
(String name, boolean mutable) Deprecated, for removal: This API element is subject to removal in a future version.makeSubGraph
(boolean mutable) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.hibernate.graph.internal.GraphImpl
addAttributeNode, addAttributeNode, addAttributeNode, addAttributeNodes, addAttributeNodes, addElementSubgraph, addElementSubgraph, addElementSubgraph, addKeySubgraph, addKeySubgraph, addKeySubGraph, addKeySubGraph, addKeySubGraph, addMapKeySubgraph, addSubgraph, addSubgraph, addSubgraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, addTreatedElementSubgraph, addTreatedElementSubgraph, addTreatedMapKeySubgraph, addTreatedMapKeySubgraph, addTreatedSubgraph, addTreatedSubgraph, addTreatedSubgraph, addTreatedSubgraph, findAttributeNode, findAttributeNode, findOrCreateAttributeNode, findOrCreateAttributeNode, getAttributeNode, getAttributeNode, getAttributeNodeList, getAttributeNodes, getGraphedType, getNodes, getTreatedSubgraphs, merge, mergeInternal, removeAttributeNode, removeAttributeNode, removeAttributeNodes, toString
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, wait, wait, wait
Methods inherited from interface jakarta.persistence.EntityGraph
addTreatedSubgraph
Methods inherited from interface jakarta.persistence.Graph
addAttributeNode, addAttributeNodes, addAttributeNodes, getAttributeNodes, removeAttributeNode, removeAttributeNode, removeAttributeNodes
Methods inherited from interface org.hibernate.graph.Graph
addElementSubgraph, addElementSubgraph, addElementSubgraph, addKeySubgraph, addKeySubgraph, addMapKeySubgraph, addPluralSubgraph, addSubgraph, getGraphedType
Methods inherited from interface org.hibernate.graph.spi.GraphImplementor
addAttributeNode, addAttributeNode, addKeySubgraph, addKeySubgraph, addKeySubGraph, addKeySubGraph, addKeySubGraph, addSubgraph, addSubgraph, addSubgraph, addSubGraph, addSubGraph, addSubGraph, addSubGraph, addTreatedElementSubgraph, addTreatedElementSubgraph, addTreatedMapKeySubgraph, addTreatedMapKeySubgraph, addTreatedSubgraph, addTreatedSubgraph, addTreatedSubgraph, addTreatedSubgraph, findAttributeNode, findAttributeNode, findOrCreateAttributeNode, findOrCreateAttributeNode, getAttributeNode, getAttributeNode, getAttributeNodeList, getNodes, getTreatedSubgraphs, hasAttributeNode, hasAttributeNode, merge, mergeInternal
Methods inherited from interface org.hibernate.graph.RootGraph
addSubclassSubgraph
-
Constructor Details
-
RootGraphImpl
-
RootGraphImpl
-
RootGraphImpl
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceEntityGraph<J>
-
appliesTo
- Specified by:
appliesTo
in interfaceRootGraphImplementor<J>
-
makeCopy
Description copied from interface:Graph
Make a copy of this graph node, with the given mutability.If this graph is immutable, and the argument is
false
, simply return this instance.- Specified by:
makeCopy
in interfaceGraph<J>
- Specified by:
makeCopy
in interfaceGraphImplementor<J>
- Specified by:
makeCopy
in interfaceGraphNode<J>
- Specified by:
makeCopy
in interfaceGraphNodeImplementor<J>
- Specified by:
makeCopy
in interfaceRootGraph<J>
- Specified by:
makeCopy
in interfaceRootGraphImplementor<J>
-
makeSubGraph
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Graph
Create a new subgraph representing this node.- 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
@Deprecated(forRemoval=true) public RootGraphImplementor<J> makeRootGraph(String name, boolean mutable) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Graph
Create a named root graph representing this node.- 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 classGraphImpl<J>
mutable
- controls whether the resulting graph is mutable
-
makeImmutableCopy
Description copied from interface:RootGraphImplementor
Make an immutable copy of this entity graph, using the given name.- Specified by:
makeImmutableCopy
in interfaceRootGraphImplementor<J>
- Parameters:
name
- The name to apply to the immutable copy- Returns:
- The immutable copy
-