public class EffectiveEntityGraph extends Object implements AppliedGraph, Serializable
getGraph() and
getSemantic()
They can be managed by calls to applyGraph(org.hibernate.graph.spi.RootGraphImplementor<?>, org.hibernate.graph.GraphSemantic), applyConfiguredGraph(java.util.Map<java.lang.String, ?>)
and clear()| Constructor and Description |
|---|
EffectiveEntityGraph() |
EffectiveEntityGraph(boolean allowOverwrite) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyConfiguredGraph(Map<String,?> properties)
Apply a graph and semantic based on configuration properties or hints
based on
GraphSemantic.getJpaHintName() for GraphSemantic.LOAD or
GraphSemantic.FETCH. |
void |
applyGraph(RootGraphImplementor<?> graph,
GraphSemantic semantic)
Apply the graph and semantic.
|
void |
clear() |
RootGraphImplementor<?> |
getGraph()
The applied graph
|
GraphSemantic |
getSemantic()
The semantic (fetch/load) under which the graph should be applied
|
public EffectiveEntityGraph()
public EffectiveEntityGraph(boolean allowOverwrite)
public GraphSemantic getSemantic()
AppliedGraphgetSemantic in interface AppliedGraphpublic RootGraphImplementor<?> getGraph()
AppliedGraphgetGraph in interface AppliedGraphpublic void applyGraph(RootGraphImplementor<?> graph, GraphSemantic semantic)
IllegalArgumentException - Thrown if the semantic is nullIllegalStateException - If previous state is still available (hasn't been cleared).public void applyConfiguredGraph(Map<String,?> properties)
GraphSemantic.getJpaHintName() for GraphSemantic.LOAD or
GraphSemantic.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).public void clear()
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.