Class EffectiveEntityGraph

    • Constructor Detail

      • EffectiveEntityGraph

        public EffectiveEntityGraph()
      • EffectiveEntityGraph

        public EffectiveEntityGraph​(boolean allowOverwrite)
    • Method Detail

      • 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.
        Throws:
        java.lang.IllegalArgumentException - Thrown if the semantic is null
        java.lang.IllegalStateException - If previous state is still available (hasn't been cleared).
      • applyConfiguredGraph

        public void applyConfiguredGraph​(java.util.Map<java.lang.String,​?> properties)
        Apply a graph and semantic based on configuration properties or hints based on 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.
        Throws:
        java.lang.IllegalArgumentException - If both kinds of graphs were present in the properties/hints
        java.lang.IllegalStateException - If previous state is still available (hasn't been cleared).
      • clear

        public void clear()