类 FetchProfile
- java.lang.Object
-
- org.hibernate.mapping.FetchProfile
-
public class FetchProfile extends Object
A fetch profile allows a user to dynamically modify the fetching strategy used for particular associations at runtime, whereas that information was historically only statically defined in the metadata. This class represent the data as it is defined in their metadata.- 作者:
- Steve Ebersole
- 另请参阅:
FetchProfile
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classFetchProfile.FetchDefines an individual association fetch within the given profile.
-
构造器概要
构造器 构造器 说明 FetchProfile(String name, MetadataSource source)Create a fetch profile representation.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddFetch(String entity, String association, String style)Adds a fetch to this profile.booleanequals(Object o)LinkedHashSet<FetchProfile.Fetch>getFetches()Retrieve the fetches associated with this profileStringgetName()Retrieve the name of the fetch profile.MetadataSourcegetSource()Retrieve the fetch profile source.inthashCode()
-
-
-
构造器详细资料
-
FetchProfile
public FetchProfile(String name, MetadataSource source)
Create a fetch profile representation.- 参数:
name- The name of the fetch profile.source- The source of the fetch profile (where was it defined).
-
-
方法详细资料
-
getName
public String getName()
Retrieve the name of the fetch profile.- 返回:
- The profile name
-
getSource
public MetadataSource getSource()
Retrieve the fetch profile source.- 返回:
- The profile source.
-
getFetches
public LinkedHashSet<FetchProfile.Fetch> getFetches()
Retrieve the fetches associated with this profile- 返回:
- The fetches associated with this profile.
-
addFetch
public void addFetch(String entity, String association, String style)
Adds a fetch to this profile.- 参数:
entity- The entity which contains the association to be fetchedassociation- The association to fetchstyle- The style of fetch to apply
-
-