Class FetchOptionsHelper
java.lang.Object
org.hibernate.metamodel.mapping.internal.FetchOptionsHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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
-