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>
Implementation of the JPA-defined
EntityGraph interface.- Author:
- Steve Ebersole
-
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<T1> SubGraph<? extends T1>addSubclassSubgraph(Class<? extends T1> type) Add additional attributes to this entity graph that correspond to attributes of subclasses of this EntityGraph's entity type.booleanappliesTo(EntityDomainType<?> entityType) getName()Return the name of a named EntityGraph (an entity graph defined by means of theNamedEntityGraphannotation, XML descriptor element, or added by means of theaddNamedEntityGraphmethod.makeCopy(boolean mutable) makeRootGraph(String name, boolean mutable) Create a named rootGraphif the given name is not null.makeSubGraph(boolean mutable) Methods inherited from class org.hibernate.graph.internal.AbstractGraph
addAttributeNode, addAttributeNode, addAttributeNode, findAttributeNode, findAttributeNode, findOrCreateAttributeNode, getAttributeNodeImplementors, getGraphAttributeNodes, getGraphedType, mergeMethods inherited from class org.hibernate.graph.internal.AbstractGraphNode
isMutable, verifyMutabilityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.graph.Graph
addPluralSubgraph, getGraphAttributeNodes, getGraphedTypeMethods 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, visitAttributeNodesMethods inherited from interface org.hibernate.graph.RootGraph
addAttributeNodes, addAttributeNodes, addKeySubgraph, addKeySubgraph, addKeySubgraph, addKeySubgraph, addSubgraph, addSubgraph, addSubgraph, addSubgraph, getAttributeNodesMethods inherited from interface org.hibernate.graph.spi.RootGraphImplementor
makeImmutableCopy
-
Constructor Details
-
RootGraphImpl
-
RootGraphImpl
-
RootGraphImpl
-
-
Method Details
-
getName
Description copied from interface:EntityGraphReturn the name of a named EntityGraph (an entity graph defined by means of theNamedEntityGraphannotation, XML descriptor element, or added by means of theaddNamedEntityGraphmethod. Returns null if the EntityGraph is not a named EntityGraph.- Specified by:
getNamein interfaceEntityGraph<J>
-
makeCopy
-
makeSubGraph
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
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
Description copied from interface:EntityGraphAdd additional attributes to this entity graph that correspond to attributes of subclasses of this EntityGraph's entity type. Subclass subgraphs will automatically include the specified attributes of superclass subgraphs.- Specified by:
addSubclassSubgraphin interfaceEntityGraph<J>- Specified by:
addSubclassSubgraphin interfaceRootGraph<J>- Parameters:
type- entity subclass- Returns:
- subgraph for the subclass
-
appliesTo
- Specified by:
appliesToin interfaceRootGraphImplementor<J>
-