Top Constructors Methods
org.hibernate.persister.walking.internal

public final Class FetchStrategyHelper

extends Object
Class Inheritance
Imports
org.hibernate.FetchMode, org.hibernate.engine.FetchStrategy, .FetchStyle, .FetchTiming, org.hibernate.engine.profile.Fetch, .FetchProfile, org.hibernate.engine.spi.LoadQueryInfluencers, .SessionFactoryImplementor, org.hibernate.loader.PropertyPath, org.hibernate.persister.collection.AbstractCollectionPersister, .CollectionPersister, org.hibernate.persister.entity.EntityPersister, .OuterJoinLoadable, org.hibernate.type.AssociationType

Author
Steve Ebersole

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static FetchStyle

Returns:

the fetch style
determineFetchStyleByMetadata
(FetchMode
The mapping defined fetch mode
mappingFetchMode
,
AssociationType
The association type
type
,
SessionFactoryImplementor
The session factory
sessionFactory
)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
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.

public static FetchTiming
determineFetchTiming(FetchStyle style, AssociationType type, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public static boolean
private static boolean
isSubsequentSelectDelayed(AssociationType type, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FetchStrategyHelperback to summary
private FetchStrategyHelper()

Method Detail

determineFetchStyleByMetadataback to summary
public static FetchStyle determineFetchStyleByMetadata(FetchMode mappingFetchMode, AssociationType type, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Parameters
mappingFetchMode:FetchMode

The mapping defined fetch mode

type:AssociationType

The association type

sessionFactory:SessionFactoryImplementor

The session factory

Returns:FetchStyle

the fetch style

determineFetchStyleByProfileback to summary
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

determineFetchTimingback to summary
public static FetchTiming determineFetchTiming(FetchStyle style, AssociationType type, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

isJoinFetchedback to summary
public static boolean isJoinFetched(FetchStrategy fetchStrategy)
isSubsequentSelectDelayedback to summary
private static boolean isSubsequentSelectDelayed(AssociationType type, SessionFactoryImplementor sessionFactory)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.