Search in sources :

Example 1 with StandardEntityGraphTraversalStateImpl

use of org.hibernate.sql.results.internal.StandardEntityGraphTraversalStateImpl in project hibernate-orm by hibernate.

the class LoaderSelectBuilder method determineGraphTraversalState.

private static EntityGraphTraversalState determineGraphTraversalState(LoadQueryInfluencers loadQueryInfluencers) {
    if (loadQueryInfluencers != null) {
        final EffectiveEntityGraph effectiveEntityGraph = loadQueryInfluencers.getEffectiveEntityGraph();
        if (effectiveEntityGraph != null) {
            final GraphSemantic graphSemantic = effectiveEntityGraph.getSemantic();
            final RootGraphImplementor rootGraphImplementor = effectiveEntityGraph.getGraph();
            if (graphSemantic != null && rootGraphImplementor != null) {
                return new StandardEntityGraphTraversalStateImpl(graphSemantic, rootGraphImplementor);
            }
        }
    }
    return null;
}
Also used : RootGraphImplementor(org.hibernate.graph.spi.RootGraphImplementor) EffectiveEntityGraph(org.hibernate.engine.spi.EffectiveEntityGraph) GraphSemantic(org.hibernate.graph.GraphSemantic) StandardEntityGraphTraversalStateImpl(org.hibernate.sql.results.internal.StandardEntityGraphTraversalStateImpl)

Aggregations

EffectiveEntityGraph (org.hibernate.engine.spi.EffectiveEntityGraph)1 GraphSemantic (org.hibernate.graph.GraphSemantic)1 RootGraphImplementor (org.hibernate.graph.spi.RootGraphImplementor)1 StandardEntityGraphTraversalStateImpl (org.hibernate.sql.results.internal.StandardEntityGraphTraversalStateImpl)1