Package org.hibernate.sql.results.graph
Interface EntityGraphTraversalState
-
- All Known Implementing Classes:
StandardEntityGraphTraversalStateImpl
@Incubating public interface EntityGraphTraversalState
State used as part of applying entity graphs to HibernateDomainResult
/Fetch
load graphs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
EntityGraphTraversalState.FetchStrategy
static class
EntityGraphTraversalState.TraversalResult
Details of a particular traversal within the entity graph
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
backtrack(EntityGraphTraversalState.TraversalResult previousContext)
Backtrack to previous entity graph status before last traversal.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.
-
-
-
Method Detail
-
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
void backtrack(EntityGraphTraversalState.TraversalResult previousContext)
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:
traverse(FetchParent, Fetchable, boolean)
-
-