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 String
HIBERNATE_DEFAULT_PROFILE
The 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 Fetch
getFetchByRole(String role)
Obtain the fetch override associated with the given role.Map<String,Fetch>
getFetches()
A map ofFetch
instances, keyed by association roleboolean
hasSubselectLoadableCollectionsEnabled(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:FetchProfile
Obtain the fetch override associated with the given role.- Overrides:
getFetchByRole
in classFetchProfile
- Parameters:
role
- The role name identifying the association- Returns:
- The
Fetch
, ornull
if there was noFetch
for the given association
-
hasSubselectLoadableCollectionsEnabled
public boolean hasSubselectLoadableCollectionsEnabled(EntityPersister persister)
- Overrides:
hasSubselectLoadableCollectionsEnabled
in classFetchProfile
-
getFetches
public Map<String,Fetch> getFetches()
Description copied from class:FetchProfile
A map ofFetch
instances, keyed by association role- Overrides:
getFetches
in classFetchProfile
-
-