Class LoadQueryInfluencers

  • All Implemented Interfaces:
    java.io.Serializable

    public class LoadQueryInfluencers
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Field Detail

      • NONE

        public static final LoadQueryInfluencers NONE
        Static reference useful for cases where we are creating load SQL outside the context of any influencers. One such example is anything created by the session factory.
    • Constructor Detail

      • LoadQueryInfluencers

        public LoadQueryInfluencers()
    • Method Detail

      • getInternalFetchProfile

        public java.lang.String getInternalFetchProfile()
      • setInternalFetchProfile

        public void setInternalFetchProfile​(java.lang.String internalFetchProfile)
      • hasEnabledFilters

        public boolean hasEnabledFilters()
      • getEnabledFilters

        public java.util.Map<java.lang.String,​Filter> getEnabledFilters()
      • getEnabledFilterNames

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

        public Filter getEnabledFilter​(java.lang.String filterName)
      • enableFilter

        public Filter enableFilter​(java.lang.String filterName)
      • disableFilter

        public void disableFilter​(java.lang.String filterName)
      • getFilterParameterValue

        public java.lang.Object getFilterParameterValue​(java.lang.String filterParameterName)
      • getFilterParameterType

        public Type getFilterParameterType​(java.lang.String filterParameterName)
      • parseFilterParameterName

        public static java.lang.String[] parseFilterParameterName​(java.lang.String filterParameterName)
      • hasEnabledFetchProfiles

        public boolean hasEnabledFetchProfiles()
      • getEnabledFetchProfileNames

        public java.util.Set<java.lang.String> getEnabledFetchProfileNames()
      • setFetchGraph

        public void setFetchGraph​(EntityGraph fetchGraph)
      • setLoadGraph

        public void setLoadGraph​(EntityGraph loadGraph)