Class LoadQueryInfluencers

java.lang.Object
org.hibernate.engine.spi.LoadQueryInfluencers
All Implemented Interfaces:
Serializable

public class LoadQueryInfluencers extends Object implements Serializable
Centralize all options which can influence the SQL query needed to load an entity. Currently, such influencers are defined as:
  • filters
  • fetch profiles
  • internal fetch profile (merge profile, etc)
See Also:
  • Constructor Details

  • Method Details

    • applyEntityGraph

      public EffectiveEntityGraph applyEntityGraph(@Nullable RootGraphImplementor<?> rootGraph, @Nullable GraphSemantic graphSemantic)
    • getSessionFactory

      public SessionFactoryImplementor getSessionFactory()
    • fromInternalFetchProfile

      public <T> T fromInternalFetchProfile(CascadingFetchProfile profile, Supplier<T> supplier)
    • getEnabledCascadingFetchProfile

      public CascadingFetchProfile getEnabledCascadingFetchProfile()
      Fetch-profile to apply, if one, when building the result-graph for cascade fetching - for example, the result-graph used when handling a merge to immediately load additional based on CascadeType.MERGE
    • hasEnabledCascadingFetchProfile

      public boolean hasEnabledCascadingFetchProfile()
    • setEnabledCascadingFetchProfile

      public void setEnabledCascadingFetchProfile(CascadingFetchProfile enabledCascadingFetchProfile)
      Set the effective cascading fetch-profile
    • hasEnabledFilters

      public boolean hasEnabledFilters()
    • getEnabledFilters

      public Map<String,Filter> getEnabledFilters()
    • getEnabledFilterNames

      public Set<String> getEnabledFilterNames()
      Returns an unmodifiable Set of enabled filter names.
      Returns:
      an unmodifiable Set of enabled filter names.
    • getEnabledFilter

      public @Nullable Filter getEnabledFilter(String filterName)
    • enableFilter

      public Filter enableFilter(String filterName)
    • disableFilter

      public void disableFilter(String filterName)
    • getFilterParameterValue

      public Object getFilterParameterValue(String filterParameterName)
    • parseFilterParameterName

      public static String[] parseFilterParameterName(String filterParameterName)
    • hasEnabledFetchProfiles

      public boolean hasEnabledFetchProfiles()
    • getEnabledFetchProfileNames

      public Set<String> getEnabledFetchProfileNames()
    • isFetchProfileEnabled

      public boolean isFetchProfileEnabled(String name) throws UnknownProfileException
      Throws:
      UnknownProfileException
    • enableFetchProfile

      public void enableFetchProfile(String name) throws UnknownProfileException
      Throws:
      UnknownProfileException
    • disableFetchProfile

      public void disableFetchProfile(String name) throws UnknownProfileException
      Throws:
      UnknownProfileException
    • adjustFetchProfiles

      @Internal public @Nullable HashSet<String> adjustFetchProfiles(@Nullable Set<String> disabledFetchProfiles, @Nullable Set<String> enabledFetchProfiles)
    • setEnabledFetchProfileNames

      @Internal public void setEnabledFetchProfileNames(HashSet<String> enabledFetchProfileNames)
    • getEffectiveEntityGraph

      public EffectiveEntityGraph getEffectiveEntityGraph()
    • getReadOnly

      public Boolean getReadOnly()
    • setReadOnly

      public void setReadOnly(Boolean readOnly)
    • getBatchSize

      public int getBatchSize()
    • setBatchSize

      public void setBatchSize(int batchSize)
    • effectiveBatchSize

      public int effectiveBatchSize(CollectionPersister persister)
    • effectivelyBatchLoadable

      public boolean effectivelyBatchLoadable(CollectionPersister persister)
    • effectiveBatchSize

      public int effectiveBatchSize(EntityPersister persister)
    • effectivelyBatchLoadable

      public boolean effectivelyBatchLoadable(EntityPersister persister)
    • getSubselectFetchEnabled

      public boolean getSubselectFetchEnabled()
    • setSubselectFetchEnabled

      public void setSubselectFetchEnabled(boolean subselectFetchEnabled)
    • effectiveSubselectFetchEnabled

      public boolean effectiveSubselectFetchEnabled(CollectionPersister persister)
    • hasSubselectLoadableCollections

      public boolean hasSubselectLoadableCollections(EntityPersister persister)