Class FetchOptionsHelper
- java.lang.Object
-
- org.hibernate.metamodel.mapping.internal.FetchOptionsHelper
-
public final class FetchOptionsHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FetchStyle
determineFetchStyleByMetadata(FetchMode mappingFetchMode, AssociationType type, SessionFactoryImplementor sessionFactory)
static FetchTiming
determineFetchTiming(FetchStyle style, AssociationType type, boolean lazy, String role, SessionFactoryImplementor sessionFactory)
static FetchTiming
determineFetchTiming(FetchStyle style, AssociationType type, SessionFactoryImplementor sessionFactory)
static boolean
isJoinFetched(FetchOptions fetchOptions)
-
-
-
Method Detail
-
determineFetchStyleByMetadata
public static FetchStyle determineFetchStyleByMetadata(FetchMode mappingFetchMode, AssociationType type, SessionFactoryImplementor sessionFactory)
- Parameters:
mappingFetchMode
- The mapping defined fetch modetype
- The association typesessionFactory
- The session factory- Returns:
- the fetch style
-
determineFetchTiming
public static FetchTiming determineFetchTiming(FetchStyle style, AssociationType type, SessionFactoryImplementor sessionFactory)
-
determineFetchTiming
public static FetchTiming determineFetchTiming(FetchStyle style, AssociationType type, boolean lazy, String role, SessionFactoryImplementor sessionFactory)
-
isJoinFetched
public static boolean isJoinFetched(FetchOptions fetchOptions)
-
-