Package org.hibernate.mapping
Class FetchProfile
- java.lang.Object
-
- org.hibernate.mapping.FetchProfile
-
public class FetchProfile extends Object
A mapping model object representing aFetchProfile
.- See Also:
FetchProfile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FetchProfile.Fetch
An individual association fetch within the given profile.
-
Constructor Summary
Constructors Constructor Description FetchProfile(String name, MetadataSource source)
Create a fetch profile representation.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addFetch(String entity, String association, String style)
Deprecated, for removal: This API element is subject to removal in a future version.useaddFetch(Fetch)
void
addFetch(FetchProfile.Fetch fetch)
Adds a fetch to this profile.boolean
equals(Object o)
LinkedHashSet<FetchProfile.Fetch>
getFetches()
Retrieve the fetches associated with this profileString
getName()
Retrieve the name of the fetch profile.MetadataSource
getSource()
Retrieve the fetch profile source.int
hashCode()
-
-
-
Constructor Detail
-
FetchProfile
public FetchProfile(String name, MetadataSource source)
Create a fetch profile representation.- Parameters:
name
- The name of the fetch profile.source
- The source of the fetch profile (where was it defined).
-
-
Method Detail
-
getName
public String getName()
Retrieve the name of the fetch profile.- Returns:
- The profile name
-
getSource
public MetadataSource getSource()
Retrieve the fetch profile source.- Returns:
- The profile source.
-
getFetches
public LinkedHashSet<FetchProfile.Fetch> getFetches()
Retrieve the fetches associated with this profile- Returns:
- The fetches associated with this profile.
-
addFetch
@Deprecated(forRemoval=true) public void addFetch(String entity, String association, String style)
Deprecated, for removal: This API element is subject to removal in a future version.useaddFetch(Fetch)
Adds a fetch to this profile.- Parameters:
entity
- The entity which contains the association to be fetchedassociation
- The association to fetchstyle
- The style of fetch to apply
-
addFetch
public void addFetch(FetchProfile.Fetch fetch)
Adds a fetch to this profile.
-
-