Package org.hibernate.engine.profile
Class DefaultFetchProfile
- java.lang.Object
-
- org.hibernate.engine.profile.FetchProfile
-
- org.hibernate.engine.profile.DefaultFetchProfile
-
public class DefaultFetchProfile extends FetchProfile
-
-
Field Summary
Fields Modifier and Type Field Description static StringHIBERNATE_DEFAULT_PROFILEThe name of an implicit fetch profile which includes all eager to-one associations.
-
Constructor Summary
Constructors Constructor Description DefaultFetchProfile(RuntimeMetamodels metamodels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable FetchgetFetchByRole(String role)Obtain the fetch override associated with the given role.Map<String,Fetch>getFetches()A map ofFetchinstances, keyed by association rolebooleanhasSubselectLoadableCollectionsEnabled(EntityPersister persister)-
Methods inherited from class org.hibernate.engine.profile.FetchProfile
addFetch, addFetch, addFetch, getName, isContainsJoinFetchedBag, isContainsJoinFetchedCollection, toString
-
-
-
-
Field Detail
-
HIBERNATE_DEFAULT_PROFILE
public static final String HIBERNATE_DEFAULT_PROFILE
The name of an implicit fetch profile which includes all eager to-one associations.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultFetchProfile
public DefaultFetchProfile(RuntimeMetamodels metamodels)
-
-
Method Detail
-
getFetchByRole
public @Nullable Fetch getFetchByRole(String role)
Description copied from class:FetchProfileObtain the fetch override associated with the given role.- Overrides:
getFetchByRolein classFetchProfile- Parameters:
role- The role name identifying the association- Returns:
- The
Fetch, ornullif there was noFetchfor the given association
-
hasSubselectLoadableCollectionsEnabled
public boolean hasSubselectLoadableCollectionsEnabled(EntityPersister persister)
- Overrides:
hasSubselectLoadableCollectionsEnabledin classFetchProfile
-
getFetches
public Map<String,Fetch> getFetches()
Description copied from class:FetchProfileA map ofFetchinstances, keyed by association role- Overrides:
getFetchesin classFetchProfile
-
-