Package org.hibernate.engine
Class LoadQueryInfluencers
java.lang.Object
org.hibernate.engine.LoadQueryInfluencers
- All Implemented Interfaces:
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic LoadQueryInfluencersStatic reference useful for cases where we are creating load SQL outside the context of any influencers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisableFetchProfile(String name) voiddisableFilter(String filterName) voidenableFetchProfile(String name) enableFilter(String filterName) getEnabledFilter(String filterName) Returns an unmodifiable Set of enabled filter names.getFilterParameterType(String filterParameterName) getFilterParameterValue(String filterParameterName) booleanbooleanbooleanisFetchProfileEnabled(String name) static String[]parseFilterParameterName(String filterParameterName) voidsetInternalFetchProfile(String internalFetchProfile)
-
Field Details
-
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 Details
-
LoadQueryInfluencers
public LoadQueryInfluencers() -
LoadQueryInfluencers
-
-
Method Details
-
getSessionFactory
-
getInternalFetchProfile
-
setInternalFetchProfile
-
hasEnabledFilters
public boolean hasEnabledFilters() -
getEnabledFilters
-
getEnabledFilterNames
Returns an unmodifiable Set of enabled filter names.- Returns:
- an unmodifiable Set of enabled filter names.
-
getEnabledFilter
-
enableFilter
-
disableFilter
-
getFilterParameterValue
-
getFilterParameterType
-
parseFilterParameterName
-
hasEnabledFetchProfiles
public boolean hasEnabledFetchProfiles() -
getEnabledFetchProfileNames
-
isFetchProfileEnabled
- Throws:
UnknownProfileException
-
enableFetchProfile
- Throws:
UnknownProfileException
-
disableFetchProfile
- Throws:
UnknownProfileException
-