Top Description Fields Constructors Methods
org.hibernate.engine

public Class LoadQueryInfluencers

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.util.Map, .Set, .Iterator, .HashMap, .HashSet, java.io.Serializable, org.hibernate.Filter, .UnknownProfileException, org.hibernate.type.Type, org.hibernate.impl.FilterImpl

Centralize all options which can influence the SQL query needed to load an entity. Currently such influencers are defined as:
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Set<E>
private Map<K, V>
private String
public static LoadQueryInfluencers
NONE

Static reference useful for cases where we are creating load SQL outside the context of any influencers.

private final SessionFactoryImplementor

Constructor Summary

AccessConstructor and Description
public
public
private
LoadQueryInfluencers(SessionFactoryImplementor sessionFactory, Map<K, V> enabledFilters, Set<E> enabledFetchProfileNames)

Method Summary

Modifier and TypeMethod and Description
private void
public void
public void
disableFilter(String filterName)

public void
public Filter
enableFilter(String filterName)

public Set<E>
public Filter
public Set<E>

Returns:

an unmodifiable Set of enabled filter names.
getEnabledFilterNames
()

Returns an unmodifiable Set of enabled filter names.

public Map<K, V>
public Type
getFilterParameterType(String filterParameterName)

public Object
getFilterParameterValue(String filterParameterName)

public String
public SessionFactoryImplementor
public boolean
public boolean
public boolean
public static String[]
parseFilterParameterName(String filterParameterName)

public void
setInternalFetchProfile(String internalFetchProfile)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

enabledFetchProfileNamesback to summary
private Set<E> enabledFetchProfileNames
enabledFiltersback to summary
private Map<K, V> enabledFilters
internalFetchProfileback to summary
private String internalFetchProfile
NONEback to summary
public static 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.

sessionFactoryback to summary
private final SessionFactoryImplementor sessionFactory

Constructor Detail

LoadQueryInfluencersback to summary
public LoadQueryInfluencers()
LoadQueryInfluencersback to summary
public LoadQueryInfluencers(SessionFactoryImplementor sessionFactory)
LoadQueryInfluencersback to summary
private LoadQueryInfluencers(SessionFactoryImplementor sessionFactory, Map<K, V> enabledFilters, Set<E> enabledFetchProfileNames)

Method Detail

checkFetchProfileNameback to summary
private void checkFetchProfileName(String name)
disableFetchProfileback to summary
public void disableFetchProfile(String name) throws UnknownProfileException
disableFilterback to summary
public void disableFilter(String filterName)
enableFetchProfileback to summary
public void enableFetchProfile(String name) throws UnknownProfileException
enableFilterback to summary
public Filter enableFilter(String filterName)
getEnabledFetchProfileNamesback to summary
public Set<E> getEnabledFetchProfileNames()
getEnabledFilterback to summary
public Filter getEnabledFilter(String filterName)
getEnabledFilterNamesback to summary
public Set<E> getEnabledFilterNames()

Returns an unmodifiable Set of enabled filter names.

Returns:Set<E>

an unmodifiable Set of enabled filter names.

getEnabledFiltersback to summary
public Map<K, V> getEnabledFilters()
getFilterParameterTypeback to summary
public Type getFilterParameterType(String filterParameterName)
getFilterParameterValueback to summary
public Object getFilterParameterValue(String filterParameterName)
getInternalFetchProfileback to summary
public String getInternalFetchProfile()
getSessionFactoryback to summary
public SessionFactoryImplementor getSessionFactory()
hasEnabledFetchProfilesback to summary
public boolean hasEnabledFetchProfiles()
hasEnabledFiltersback to summary
public boolean hasEnabledFilters()
isFetchProfileEnabledback to summary
public boolean isFetchProfileEnabled(String name) throws UnknownProfileException
parseFilterParameterNameback to summary
public static String[] parseFilterParameterName(String filterParameterName)
setInternalFetchProfileback to summary
public void setInternalFetchProfile(String internalFetchProfile)