Top Fields Constructors Methods
org.hibernate.sql.results.internal

public Class StandardEntityGraphTraversalStateImpl

extends Object
implements EntityGraphTraversalState
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.graph.EntityGraphTraversalState
Imports
java.util.Map, .Objects, org.hibernate.engine.FetchTiming, org.hibernate.graph.GraphSemantic, org.hibernate.graph.spi.AttributeNodeImplementor, .GraphImplementor, .RootGraphImplementor, .SubGraphImplementor, org.hibernate.metamodel.mapping.CollectionPart, .NonAggregatedIdentifierMapping, .PluralAttributeMapping, org.hibernate.metamodel.mapping.internal.EntityCollectionPart, org.hibernate.metamodel.model.domain.JpaMetamodel, org.hibernate.sql.results.graph.EntityGraphTraversalState, .FetchParent, .Fetchable

Author
Nathan Xu

Field Summary

Modifier and TypeField and Description
private GraphImplementor<?>
private final GraphSemantic
private final JpaMetamodel

Constructor Summary

AccessConstructor and Description
public
StandardEntityGraphTraversalStateImpl(GraphSemantic graphSemantic, RootGraphImplementor<?> rootGraphImplementor, JpaMetamodel metamodel)

Method Summary

Modifier and TypeMethod and Description
private boolean
appliesTo(FetchParent fetchParent)

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

Implements org.hibernate.sql.results.graph.EntityGraphTraversalState.backtrack.

Backtrack to previous entity graph status before last traversal.
private Class<?>
public EntityGraphTraversalState.TraversalResult
traverse(FetchParent fetchParent, Fetchable fetchable, boolean exploreKeySubgraph)

Implements org.hibernate.sql.results.graph.EntityGraphTraversalState.traverse.

Traverses to the next part of the Jakarta Persistence entity graph relating to the given fetchable.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentGraphContextback to summary
private GraphImplementor<?> currentGraphContext
graphSemanticback to summary
private final GraphSemantic graphSemantic
metamodelback to summary
private final JpaMetamodel metamodel

Constructor Detail

StandardEntityGraphTraversalStateImplback to summary
public StandardEntityGraphTraversalStateImpl(GraphSemantic graphSemantic, RootGraphImplementor<?> rootGraphImplementor, JpaMetamodel metamodel)

Method Detail

appliesToback to summary
private boolean appliesTo(FetchParent fetchParent)
backtrackback to summary
public void backtrack(EntityGraphTraversalState.TraversalResult previousContext)

Implements org.hibernate.sql.results.graph.EntityGraphTraversalState.backtrack.

Doc from org.hibernate.sql.results.graph.EntityGraphTraversalState.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:EntityGraphTraversalState.TraversalResult

The previous entity graph context node; should not be null

Annotations
@Override
getEntityCollectionPartJavaClassback to summary
private Class<?> getEntityCollectionPartJavaClass(CollectionPart collectionPart)
traverseback to summary
public EntityGraphTraversalState.TraversalResult traverse(FetchParent fetchParent, Fetchable fetchable, boolean exploreKeySubgraph)

Implements org.hibernate.sql.results.graph.EntityGraphTraversalState.traverse.

Doc from org.hibernate.sql.results.graph.EntityGraphTraversalState.traverse.

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

Annotations
@Override