类的使用
org.hibernate.engine.FetchStrategy
-
使用FetchStrategy的程序包 程序包 说明 org.hibernate.loader.plan.build.internal Contains the internal implementations used for building a metamodel-driven LoadPlan.org.hibernate.loader.plan.build.internal.returns Contains the internal implementations of the building blocks that make up a metamodel-driven LoadPlan. .org.hibernate.loader.plan.build.internal.spaces Contains the internal implementations of query spaces in a metamodel-driven LoadPlan.org.hibernate.loader.plan.build.spi Defines the SPI for building a metamodel-driven LoadPlanorg.hibernate.loader.plan.spi Defines the SPI for the building blocks that make up a LoadPlan.org.hibernate.persister.walking.internal org.hibernate.persister.walking.spi org.hibernate.tuple.component org.hibernate.tuple.entity -
-
org.hibernate.loader.plan.build.internal中FetchStrategy的使用
声明为FetchStrategy的org.hibernate.loader.plan.build.internal中的字段 修饰符和类型 字段 说明 protected static FetchStrategyAbstractEntityGraphVisitationStrategy. DEFAULT_EAGERThe JPA 2.1 SPEC's Entity Graph only defines _WHEN_ to load an attribute, it doesn't define _HOW_ to load it So I'm here just making an assumption that when it is EAGER, then we use JOIN, and when it is LAZY, then we use SELECT.protected static FetchStrategyAbstractEntityGraphVisitationStrategy. DEFAULT_LAZY返回FetchStrategy的org.hibernate.loader.plan.build.internal中的方法 修饰符和类型 方法 说明 protected FetchStrategyAbstractEntityGraphVisitationStrategy. adjustJoinFetchIfNeeded(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)protected FetchStrategyFetchStyleLoadPlanBuildingAssociationVisitationStrategy. adjustJoinFetchIfNeeded(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)If required by this strategy, returns a differentFetchStrategyfrom what is specified for the given association attribute.protected FetchStrategyAbstractEntityGraphVisitationStrategy. determineFetchStrategy(AssociationAttributeDefinition attributeDefinition)protected abstract FetchStrategyAbstractLoadPlanBuildingAssociationVisitationStrategy. determineFetchStrategy(AssociationAttributeDefinition attributeDefinition)protected FetchStrategyCascadeStyleLoadPlanBuildingAssociationVisitationStrategy. determineFetchStrategy(AssociationAttributeDefinition attributeDefinition)protected FetchStrategyFetchStyleLoadPlanBuildingAssociationVisitationStrategy. determineFetchStrategy(AssociationAttributeDefinition attributeDefinition)protected abstract FetchStrategyAbstractEntityGraphVisitationStrategy. resolveImplicitFetchStrategyFromEntityGraph(AssociationAttributeDefinition attributeDefinition)protected FetchStrategyFetchGraphLoadPlanBuildingStrategy. resolveImplicitFetchStrategyFromEntityGraph(AssociationAttributeDefinition attributeDefinition)protected FetchStrategyLoadGraphLoadPlanBuildingStrategy. resolveImplicitFetchStrategyFromEntityGraph(AssociationAttributeDefinition attributeDefinition)参数类型为FetchStrategy的org.hibernate.loader.plan.build.internal中的方法 修饰符和类型 方法 说明 protected FetchStrategyAbstractEntityGraphVisitationStrategy. adjustJoinFetchIfNeeded(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)protected FetchStrategyFetchStyleLoadPlanBuildingAssociationVisitationStrategy. adjustJoinFetchIfNeeded(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)If required by this strategy, returns a differentFetchStrategyfrom what is specified for the given association attribute. -
org.hibernate.loader.plan.build.internal.returns中FetchStrategy的使用
声明为FetchStrategy的org.hibernate.loader.plan.build.internal.returns中的字段 修饰符和类型 字段 说明 protected static FetchStrategyAbstractCompositeFetch. FETCH_STRATEGY返回FetchStrategy的org.hibernate.loader.plan.build.internal.returns中的方法 修饰符和类型 方法 说明 FetchStrategyAbstractCompositeFetch. getFetchStrategy()FetchStrategyAnyAttributeFetchImpl. getFetchStrategy()FetchStrategyCollectionAttributeFetchImpl. getFetchStrategy()FetchStrategyEntityAttributeFetchImpl. getFetchStrategy()参数类型为FetchStrategy的org.hibernate.loader.plan.build.internal.returns中的构造器 构造器 说明 AnyAttributeFetchImpl(FetchSource fetchSource, AssociationAttributeDefinition fetchedAttribute, FetchStrategy fetchStrategy)CollectionAttributeFetchImpl(ExpandingFetchSource fetchSource, AssociationAttributeDefinition fetchedAttribute, FetchStrategy fetchStrategy, ExpandingCollectionQuerySpace collectionQuerySpace)EntityAttributeFetchImpl(ExpandingFetchSource fetchSource, AssociationAttributeDefinition fetchedAttribute, FetchStrategy fetchStrategy, ExpandingEntityQuerySpace entityQuerySpace) -
org.hibernate.loader.plan.build.internal.spaces中FetchStrategy的使用
参数类型为FetchStrategy的org.hibernate.loader.plan.build.internal.spaces中的方法 修饰符和类型 方法 说明 ExpandingCollectionQuerySpaceQuerySpaceHelper. makeCollectionQuerySpace(ExpandingQuerySpace lhsQuerySpace, AssociationAttributeDefinition attributeDefinition, String querySpaceUid, FetchStrategy fetchStrategy)ExpandingEntityQuerySpaceQuerySpaceHelper. makeEntityQuerySpace(ExpandingQuerySpace lhsQuerySpace, AssociationAttributeDefinition attribute, String querySpaceUid, FetchStrategy fetchStrategy)booleanQuerySpaceHelper. shouldIncludeJoin(FetchStrategy fetchStrategy) -
org.hibernate.loader.plan.build.spi中FetchStrategy的使用
参数类型为FetchStrategy的org.hibernate.loader.plan.build.spi中的方法 修饰符和类型 方法 说明 AnyAttributeFetchExpandingFetchSource. buildAnyAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)Builds a fetch for an "any" attribute.BidirectionalEntityReferenceExpandingFetchSource. buildBidirectionalEntityReference(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, EntityReference targetEntityReference)Builds a bidirectional entity reference for an entity attribute.CollectionAttributeFetchExpandingFetchSource. buildCollectionAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)Builds a fetch for a collection attribute.EntityFetchExpandingFetchSource. buildEntityAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)Builds a fetch for an entity attribute.voidExpandingFetchSource. validateFetchPlan(FetchStrategy fetchStrategy, AttributeDefinition attributeDefinition)Is the asserted plan valid from this owner to a fetch? -
org.hibernate.loader.plan.spi中FetchStrategy的使用
返回FetchStrategy的org.hibernate.loader.plan.spi中的方法 修饰符和类型 方法 说明 FetchStrategyFetch. getFetchStrategy()Gets the fetch strategy for this fetch. -
org.hibernate.persister.walking.internal中FetchStrategy的使用
参数类型为FetchStrategy的org.hibernate.persister.walking.internal中的方法 修饰符和类型 方法 说明 static booleanFetchStrategyHelper. isJoinFetched(FetchStrategy fetchStrategy) -
org.hibernate.persister.walking.spi中FetchStrategy的使用
返回FetchStrategy的org.hibernate.persister.walking.spi中的方法 修饰符和类型 方法 说明 FetchStrategyAssociationAttributeDefinition. determineFetchPlan(LoadQueryInfluencers loadQueryInfluencers, PropertyPath propertyPath) -
org.hibernate.tuple.component中FetchStrategy的使用
返回FetchStrategy的org.hibernate.tuple.component中的方法 修饰符和类型 方法 说明 FetchStrategyCompositeBasedAssociationAttribute. determineFetchPlan(LoadQueryInfluencers loadQueryInfluencers, PropertyPath propertyPath) -
org.hibernate.tuple.entity中FetchStrategy的使用
返回FetchStrategy的org.hibernate.tuple.entity中的方法 修饰符和类型 方法 说明 FetchStrategyEntityBasedAssociationAttribute. determineFetchPlan(LoadQueryInfluencers loadQueryInfluencers, PropertyPath propertyPath)
-