类 FetchStrategyHelper
- java.lang.Object
-
- org.hibernate.persister.walking.internal.FetchStrategyHelper
-
public final class FetchStrategyHelper extends Object
- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static FetchStyledetermineFetchStyleByMetadata(FetchMode mappingFetchMode, AssociationType type, SessionFactoryImplementor sessionFactory)static FetchStyledetermineFetchStyleByProfile(LoadQueryInfluencers loadQueryInfluencers, EntityPersister persister, PropertyPath path, int propertyNumber)Determine the fetch-style (if one) explicitly set for this association via fetch profiles.static FetchTimingdetermineFetchTiming(FetchStyle style, AssociationType type, SessionFactoryImplementor sessionFactory)static booleanisJoinFetched(FetchStrategy fetchStrategy)
-
-
-
方法详细资料
-
determineFetchStyleByProfile
public static FetchStyle determineFetchStyleByProfile(LoadQueryInfluencers loadQueryInfluencers, EntityPersister persister, PropertyPath path, int propertyNumber)
Determine the fetch-style (if one) explicitly set for this association via fetch profiles. Note that currently fetch profiles only allow specifying join fetching, so this method currently returns either (a) FetchStyle.JOIN or (b) null- 参数:
loadQueryInfluencers-persister-path-propertyNumber-- 返回:
-
determineFetchStyleByMetadata
public static FetchStyle determineFetchStyleByMetadata(FetchMode mappingFetchMode, AssociationType type, SessionFactoryImplementor sessionFactory)
- 参数:
mappingFetchMode- The mapping defined fetch modetype- The association typesessionFactory- The session factory- 返回:
- the fetch style
-
determineFetchTiming
public static FetchTiming determineFetchTiming(FetchStyle style, AssociationType type, SessionFactoryImplementor sessionFactory)
-
isJoinFetched
public static boolean isJoinFetched(FetchStrategy fetchStrategy)
-
-