Package org.hibernate.sql.results.graph
Interface EntityGraphTraversalState
- All Known Implementing Classes:
StandardEntityGraphTraversalStateImpl
State used as part of applying entity graphs to
Hibernate
DomainResult
/ Fetch
load graphs.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
Details of a particular traversal within the entity graph -
Method Summary
Modifier and TypeMethodDescriptionvoid
backtrack
(EntityGraphTraversalState.TraversalResult previousContext) Backtrack to previous entity graph status before last traversal.traverse
(FetchParent parent, Fetchable fetchable, boolean exploreKeySubgraph) Traverses to the next part of the Jakarta Persistence entity graph relating to the given fetchable.
-
Method Details
-
traverse
EntityGraphTraversalState.TraversalResult traverse(FetchParent parent, Fetchable fetchable, boolean exploreKeySubgraph) 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 -
backtrack
Backtrack to previous entity graph status before last traversal. Mainly reset the current context entity graph node to the passed method parameter.- Parameters:
previousContext
- The previous entity graph context node; should not be null- See Also:
-