类 FetchStrategyHelper


  • public final class FetchStrategyHelper
    extends Object
    作者:
    Steve Ebersole
    • 方法详细资料

      • 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 mode
        type - The association type
        sessionFactory - The session factory
        返回:
        the fetch style
      • isJoinFetched

        public static boolean isJoinFetched​(FetchStrategy fetchStrategy)