接口 ExpandingFetchSource
-
- 所有超级接口:
FetchSource
- 所有已知子接口:
ExpandingEntityIdentifierDescription
- 所有已知实现类:
AbstractCompositeEntityIdentifierDescription,AbstractCompositeFetch,AbstractCompositeReference,AbstractEntityReference,AbstractExpandingFetchSource,CollectionFetchableElementCompositeGraph,CollectionFetchableElementEntityGraph,CollectionFetchableIndexCompositeGraph,CollectionFetchableIndexEntityGraph,CompositeAttributeFetchImpl,EncapsulatedEntityIdentifierDescription,EntityAttributeFetchImpl,EntityReturnImpl,NestedCompositeAttributeFetchImpl,NonEncapsulatedEntityIdentifierDescription
public interface ExpandingFetchSource extends FetchSource
Describes the internal contract for things which can contain fetches. Used to request building the different types of fetches.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 AnyAttributeFetchbuildAnyAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)Builds a fetch for an "any" attribute.BidirectionalEntityReferencebuildBidirectionalEntityReference(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, EntityReference targetEntityReference)Builds a bidirectional entity reference for an entity attribute.CollectionAttributeFetchbuildCollectionAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)Builds a fetch for a collection attribute.CompositeAttributeFetchbuildCompositeAttributeFetch(AttributeDefinition attributeDefinition)Builds a fetch for a composite attribute.EntityFetchbuildEntityAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)Builds a fetch for an entity attribute.voidvalidateFetchPlan(FetchStrategy fetchStrategy, AttributeDefinition attributeDefinition)Is the asserted plan valid from this owner to a fetch?-
从接口继承的方法 org.hibernate.loader.plan.spi.FetchSource
getBidirectionalEntityReferences, getFetches, getPropertyPath, getQuerySpaceUid, resolveEntityReference
-
-
-
-
方法详细资料
-
validateFetchPlan
void validateFetchPlan(FetchStrategy fetchStrategy, AttributeDefinition attributeDefinition)
Is the asserted plan valid from this owner to a fetch?- 参数:
fetchStrategy- The type of fetch to validate.attributeDefinition- The attribute to be fetched.
-
buildEntityAttributeFetch
EntityFetch buildEntityAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)
Builds a fetch for an entity attribute.- 参数:
attributeDefinition- The entity attribute.fetchStrategy- The fetch strategy for the attribute.- 返回:
- The entity fetch.
-
buildBidirectionalEntityReference
BidirectionalEntityReference buildBidirectionalEntityReference(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, EntityReference targetEntityReference)
Builds a bidirectional entity reference for an entity attribute.- 参数:
attributeDefinition- The attribute definition.fetchStrategy- The fetch strategy for the attribute.targetEntityReference- The associated (target) entity reference.- 返回:
- The bidirectional entity reference.
-
buildCompositeAttributeFetch
CompositeAttributeFetch buildCompositeAttributeFetch(AttributeDefinition attributeDefinition)
Builds a fetch for a composite attribute.- 参数:
attributeDefinition- The attribute definition.- 返回:
- The composite attribute fetch.
-
buildCollectionAttributeFetch
CollectionAttributeFetch buildCollectionAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)
Builds a fetch for a collection attribute.- 参数:
attributeDefinition- The attribute definition.fetchStrategy- The fetch strategy for the attribute.- 返回:
- The collection attribute fetch.
-
buildAnyAttributeFetch
AnyAttributeFetch buildAnyAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)
Builds a fetch for an "any" attribute.- 参数:
attributeDefinition- The attribute definition.fetchStrategy- The fetch strategy for the attibute.- 返回:
- The "any" attribute fetch.
-
-