Package org.hibernate.engine.profile
Class Fetch
- java.lang.Object
- org.hibernate.engine.profile.Fetch
public classFetchextendsObject
Models an individual fetch override within aFetchProfile.
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFetch.StyleDeprecated, for removal: This API element is subject to removal in a future version.UseFetchStyle
Constructor Summary
Constructors Constructor Description Fetch(Association association,FetchStyle method,FetchTiming timing)Constructs aFetch.Fetch(Association association,Fetch.Style style)Deprecated, for removal: This API element is subject to removal in a future version.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AssociationgetAssociation()The association to which the fetch style applies.FetchStylegetMethod()The fetch method to be applied to the association.Fetch.StylegetStyle()Deprecated, for removal: This API element is subject to removal in a future version.usegetMethod()FetchTiminggetTiming()The fetch timing to be applied to the association.StringtoString()
Constructor Detail
Fetch
@Deprecated(forRemoval=true)public Fetch(Association association,Fetch.Style style)
Deprecated, for removal: This API element is subject to removal in a future version.Constructs aFetch.- Parameters:
association- The association to be fetchedstyle- How to fetch it
Fetch
public Fetch(Association association,FetchStyle method,FetchTiming timing)
Constructs aFetch.- Parameters:
association- The association to be fetchedmethod- How to fetch it
Method Detail
getAssociation
public Association getAssociation()
The association to which the fetch style applies.
getStyle
@Deprecated(forRemoval=true)public Fetch.Style getStyle()
Deprecated, for removal: This API element is subject to removal in a future version.usegetMethod()The fetch style applied to the association.
getMethod
public FetchStyle getMethod()
The fetch method to be applied to the association.
getTiming
public FetchTiming getTiming()
The fetch timing to be applied to the association.