Top Description Inners Methods
org.hibernate.sql.results.graph

public Interface EntityGraphTraversalState

Known Direct Implementers
org.hibernate.sql.results.internal.StandardEntityGraphTraversalStateImpl
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.engine.FetchTiming, org.hibernate.graph.AttributeNode, org.hibernate.graph.spi.GraphImplementor

State used as part of applying entity graphs to Hibernate DomainResult / Fetch load graphs.
Author
Nathan Xu

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
EntityGraphTraversalState.TraversalResult

Details of a particular traversal within the entity graph

Method Summary

Modifier and TypeMethod and Description
public void
backtrack(EntityGraphTraversalState.TraversalResult
The previous entity graph context node; should not be null
previousContext
)

Backtrack to previous entity graph status before last traversal.

public 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

backtrackback to summary
public 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:EntityGraphTraversalState.TraversalResult

The previous entity graph context node; should not be null

See Also
traverse(FetchParent, Fetchable, boolean)
traverseback to summary
public 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`, either AttributeNode#getSubGraphs() or AttributeNode#getKeySubGraphs() will be used

org.hibernate.sql.results.graph back to summary

public Class EntityGraphTraversalState.FetchStrategy

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.sql.results.graph.EntityGraphTraversalState.FetchStrategy

Field Summary

Modifier and TypeField and Description
private final FetchTiming
private final boolean

Constructor Summary

AccessConstructor and Description
public
FetchStrategy(FetchTiming fetchTiming, boolean joined)

Method Summary

Modifier and TypeMethod and Description
public FetchTiming
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fetchTimingback to summary
private final FetchTiming fetchTiming
joinedback to summary
private final boolean joined

Constructor Detail

FetchStrategyback to summary
public FetchStrategy(FetchTiming fetchTiming, boolean joined)

Method Detail

getFetchTimingback to summary
public FetchTiming getFetchTiming()
isJoinedback to summary
public boolean isJoined()
org.hibernate.sql.results.graph back to summary

public Class EntityGraphTraversalState.TraversalResult

extends Object
Class Inheritance
  • java.lang.Object
  • org.hibernate.sql.results.graph.EntityGraphTraversalState.TraversalResult

Details of a particular traversal within the entity graph

Field Summary

Modifier and TypeField and Description
private final EntityGraphTraversalState.FetchStrategy
private final GraphImplementor<?>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public EntityGraphTraversalState.FetchStrategy
public GraphImplementor<?>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fetchStrategyback to summary
private final EntityGraphTraversalState.FetchStrategy fetchStrategy
previousContextback to summary
private final GraphImplementor<?> previousContext

Constructor Detail

TraversalResultback to summary
public TraversalResult(GraphImplementor<?> previousContext, EntityGraphTraversalState.FetchStrategy fetchStrategy)

Method Detail

getFetchStrategyback to summary
public EntityGraphTraversalState.FetchStrategy getFetchStrategy()
getGraphback to summary
public GraphImplementor<?> getGraph()