Class StandardEntityGraphTraversalStateImpl
- java.lang.Object
-
- org.hibernate.sql.results.internal.StandardEntityGraphTraversalStateImpl
-
- All Implemented Interfaces:
EntityGraphTraversalState
public class StandardEntityGraphTraversalStateImpl extends Object implements EntityGraphTraversalState
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.sql.results.graph.EntityGraphTraversalState
EntityGraphTraversalState.FetchStrategy, EntityGraphTraversalState.TraversalResult
-
-
Constructor Summary
Constructors Constructor Description StandardEntityGraphTraversalStateImpl(GraphSemantic graphSemantic, RootGraphImplementor<?> rootGraphImplementor, JpaMetamodel metamodel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
backtrack(EntityGraphTraversalState.TraversalResult previousContext)
Backtrack to previous entity graph status before last traversal.EntityGraphTraversalState.TraversalResult
traverse(FetchParent fetchParent, Fetchable fetchable, boolean exploreKeySubgraph)
Traverses to the next part of the Jakarta Persistence entity graph relating to the given fetchable.
-
-
-
Constructor Detail
-
StandardEntityGraphTraversalStateImpl
public StandardEntityGraphTraversalStateImpl(GraphSemantic graphSemantic, RootGraphImplementor<?> rootGraphImplementor, JpaMetamodel metamodel)
-
-
Method Detail
-
backtrack
public void backtrack(EntityGraphTraversalState.TraversalResult previousContext)
Description copied from interface:EntityGraphTraversalState
Backtrack to previous entity graph status before last traversal. Mainly reset the current context entity graph node to the passed method parameter.- Specified by:
backtrack
in interfaceEntityGraphTraversalState
- Parameters:
previousContext
- The previous entity graph context node; should not be null- See Also:
EntityGraphTraversalState.traverse(FetchParent, Fetchable, boolean)
-
traverse
public EntityGraphTraversalState.TraversalResult traverse(FetchParent fetchParent, Fetchable fetchable, boolean exploreKeySubgraph)
Description copied from interface:EntityGraphTraversalState
Traverses to the next part of the Jakarta Persistence entity graph relating to the given fetchable.The
AttributeNode
corresponding to the given `fetchable` is resolved. Depending on `exploreKeySubgraph`, eitherAttributeNode.getSubGraphs()
orAttributeNode.getKeySubGraphs()
will be used- Specified by:
traverse
in interfaceEntityGraphTraversalState
-
-