类 EffectiveEntityGraph
- java.lang.Object
-
- org.hibernate.engine.spi.EffectiveEntityGraph
-
- 所有已实现的接口:
Serializable,AppliedGraph
public class EffectiveEntityGraph extends Object implements AppliedGraph, Serializable
Think of this as the composite modeling of a graph and the semantic. Its graph and semantic can be obtained bygetGraph()andgetSemantic()They can be managed by calls toapplyGraph(org.hibernate.graph.spi.RootGraphImplementor<?>, org.hibernate.graph.GraphSemantic),applyConfiguredGraph(java.util.Map<java.lang.String, ?>)andclear()- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 EffectiveEntityGraph()EffectiveEntityGraph(boolean allowOverwrite)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidapplyConfiguredGraph(Map<String,?> properties)Apply a graph and semantic based on configuration properties or hints based onGraphSemantic.getJpaHintName()forGraphSemantic.LOADorGraphSemantic.FETCH.voidapplyGraph(RootGraphImplementor<?> graph, GraphSemantic semantic)Apply the graph and semantic.voidclear()RootGraphImplementor<?>getGraph()The applied graphGraphSemanticgetSemantic()The semantic (fetch/load) under which the graph should be applied
-
-
-
方法详细资料
-
getSemantic
public GraphSemantic getSemantic()
从接口复制的说明:AppliedGraphThe semantic (fetch/load) under which the graph should be applied- 指定者:
getSemantic在接口中AppliedGraph
-
getGraph
public RootGraphImplementor<?> getGraph()
从接口复制的说明:AppliedGraphThe applied graph- 指定者:
getGraph在接口中AppliedGraph
-
applyGraph
public void applyGraph(RootGraphImplementor<?> graph, GraphSemantic semantic)
Apply the graph and semantic. The semantic is required. The graph may be null, but that should generally be considered mis-use.- 抛出:
IllegalArgumentException- Thrown if the semantic is nullIllegalStateException- If previous state is still available (hasn't been cleared).
-
applyConfiguredGraph
public void applyConfiguredGraph(Map<String,?> properties)
Apply a graph and semantic based on configuration properties or hints based onGraphSemantic.getJpaHintName()forGraphSemantic.LOADorGraphSemantic.FETCH. The semantic is required. The graph may be null, but that should generally be considered mis-use.- 抛出:
IllegalArgumentException- If both kinds of graphs were present in the properties/hintsIllegalStateException- If previous state is still available (hasn't been cleared).
-
clear
public void clear()
-
-