Package org.hibernate.engine.query.spi
Class EntityGraphQueryHint
- java.lang.Object
-
- org.hibernate.engine.query.spi.EntityGraphQueryHint
-
- All Implemented Interfaces:
AppliedGraph
public class EntityGraphQueryHint extends java.lang.Object implements AppliedGraph
Encapsulates a JPA EntityGraph provided through a JPQL query hint. Converts the fetches into a list of AST FromElements. The logic is kept here as much as possible in order to make it easy to remove this in the future, once our AST is improved and this "hack" is no longer needed.
-
-
Constructor Summary
Constructors Constructor Description EntityGraphQueryHint(java.lang.String hintName, EntityGraph<?> graph)
EntityGraphQueryHint(RootGraphImplementor<?> graph, GraphSemantic semantic)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RootGraphImplementor<?>
getGraph()
The applied graphGraphSemantic
getGraphSemantic()
Deprecated.(5.4) UsegetSemantic()
java.lang.String
getHintName()
Deprecated.(5.4) UsegetSemantic()
EntityGraph<?>
getOriginEntityGraph()
Deprecated.(5.4) UsegetGraph()
GraphSemantic
getSemantic()
The semantic (fetch/load) under which the graph should be appliedjava.util.List<org.hibernate.hql.internal.ast.tree.FromElement>
toFromElements(org.hibernate.hql.internal.ast.tree.FromClause fromClause, org.hibernate.hql.internal.ast.HqlSqlWalker walker)
-
-
-
Constructor Detail
-
EntityGraphQueryHint
public EntityGraphQueryHint(java.lang.String hintName, EntityGraph<?> graph)
-
EntityGraphQueryHint
public EntityGraphQueryHint(RootGraphImplementor<?> graph, GraphSemantic semantic)
-
-
Method Detail
-
getSemantic
public GraphSemantic getSemantic()
Description copied from interface:AppliedGraph
The semantic (fetch/load) under which the graph should be applied- Specified by:
getSemantic
in interfaceAppliedGraph
-
getGraph
public RootGraphImplementor<?> getGraph()
Description copied from interface:AppliedGraph
The applied graph- Specified by:
getGraph
in interfaceAppliedGraph
-
toFromElements
public java.util.List<org.hibernate.hql.internal.ast.tree.FromElement> toFromElements(org.hibernate.hql.internal.ast.tree.FromClause fromClause, org.hibernate.hql.internal.ast.HqlSqlWalker walker)
-
getOriginEntityGraph
@Deprecated public EntityGraph<?> getOriginEntityGraph()
Deprecated.(5.4) UsegetGraph()
-
getGraphSemantic
@Deprecated public GraphSemantic getGraphSemantic()
Deprecated.(5.4) UsegetSemantic()
-
getHintName
@Deprecated public java.lang.String getHintName()
Deprecated.(5.4) UsegetSemantic()
-
-