Package org.hibernate.engine.profile
Class Fetch
- java.lang.Object
-
- org.hibernate.engine.profile.Fetch
-
public class Fetch extends Object
Models an individual fetch override within aFetchProfile
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Fetch.Style
Deprecated, 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 Association
getAssociation()
The association to which the fetch style applies.FetchStyle
getMethod()
The fetch method to be applied to the association.Fetch.Style
getStyle()
Deprecated, for removal: This API element is subject to removal in a future version.usegetMethod()
FetchTiming
getTiming()
The fetch timing to be applied to the association.String
toString()
-
-
-
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.
-
-