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
ConstructorsConstructorDescriptionStandardEntityGraphTraversalStateImpl
(GraphSemantic graphSemantic, RootGraphImplementor<?> rootGraphImplementor, JpaMetamodel metamodel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
backtrack
(EntityGraphTraversalState.TraversalResult previousContext) Backtrack to previous entity graph status before last traversal.traverse
(FetchParent fetchParent, Fetchable fetchable, boolean exploreKeySubgraph) Traverses to the next part of the Jakarta Persistence entity graph relating to the given fetchable.
-
Constructor Details
-
StandardEntityGraphTraversalStateImpl
public StandardEntityGraphTraversalStateImpl(GraphSemantic graphSemantic, RootGraphImplementor<?> rootGraphImplementor, JpaMetamodel metamodel)
-
-
Method Details
-
backtrack
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:
-
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
-