Top Description Methods
org.hibernate.loader.plan.build.spi

public Interface ExpandingFetchSource

extends FetchSource
Known Direct Subinterfaces
org.hibernate.loader.plan.build.spi.ExpandingEntityIdentifierDescription
Known Direct Implementers
org.hibernate.loader.plan.build.internal.returns.AbstractExpandingFetchSource, org.hibernate.loader.plan.build.internal.returns.EntityReturnImpl
Imports
org.hibernate.engine.FetchStrategy, org.hibernate.loader.plan.spi.AnyAttributeFetch, .BidirectionalEntityReference, .CollectionAttributeFetch, .CompositeAttributeFetch, .EntityFetch, .EntityReference, .FetchSource, org.hibernate.persister.walking.spi.AssociationAttributeDefinition, .AttributeDefinition

Describes the internal contract for things which can contain fetches. Used to request building the different types of fetches.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public AnyAttributeFetch

Returns:

The "any" attribute fetch.
buildAnyAttributeFetch
(AssociationAttributeDefinition
The attribute definition.
attributeDefinition
,
FetchStrategy
The fetch strategy for the attibute.
fetchStrategy
)

Builds a fetch for an "any" attribute.

public BidirectionalEntityReference

Returns:

The bidirectional entity reference.
buildBidirectionalEntityReference
(AssociationAttributeDefinition
The attribute definition.
attributeDefinition
,
FetchStrategy
The fetch strategy for the attribute.
fetchStrategy
,
EntityReference
The associated (target) entity reference.
targetEntityReference
)

Builds a bidirectional entity reference for an entity attribute.

public CollectionAttributeFetch

Returns:

The collection attribute fetch.
buildCollectionAttributeFetch
(AssociationAttributeDefinition
The attribute definition.
attributeDefinition
,
FetchStrategy
The fetch strategy for the attribute.
fetchStrategy
)

Builds a fetch for a collection attribute.

public CompositeAttributeFetch

Returns:

The composite attribute fetch.
buildCompositeAttributeFetch
(AttributeDefinition
The attribute definition.
attributeDefinition
)

Builds a fetch for a composite attribute.

public EntityFetch

Returns:

The entity fetch.
buildEntityAttributeFetch
(AssociationAttributeDefinition
The entity attribute.
attributeDefinition
,
FetchStrategy
The fetch strategy for the attribute.
fetchStrategy
)

Builds a fetch for an entity attribute.

public void
validateFetchPlan(FetchStrategy
The type of fetch to validate.
fetchStrategy
,
AttributeDefinition
The attribute to be fetched.
attributeDefinition
)

Is the asserted plan valid from this owner to a fetch?

Inherited from org.hibernate.loader.plan.spi.FetchSource:
getBidirectionalEntityReferencesgetFetchesgetPropertyPathgetQuerySpaceUidresolveEntityReference

Method Detail

buildAnyAttributeFetchback to summary
public AnyAttributeFetch buildAnyAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)

Builds a fetch for an "any" attribute.

Parameters
attributeDefinition:AssociationAttributeDefinition

The attribute definition.

fetchStrategy:FetchStrategy

The fetch strategy for the attibute.

Returns:AnyAttributeFetch

The "any" attribute fetch.

buildBidirectionalEntityReferenceback to summary
public BidirectionalEntityReference buildBidirectionalEntityReference(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, EntityReference targetEntityReference)

Builds a bidirectional entity reference for an entity attribute.

Parameters
attributeDefinition:AssociationAttributeDefinition

The attribute definition.

fetchStrategy:FetchStrategy

The fetch strategy for the attribute.

targetEntityReference:EntityReference

The associated (target) entity reference.

Returns:BidirectionalEntityReference

The bidirectional entity reference.

buildCollectionAttributeFetchback to summary
public CollectionAttributeFetch buildCollectionAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)

Builds a fetch for a collection attribute.

Parameters
attributeDefinition:AssociationAttributeDefinition

The attribute definition.

fetchStrategy:FetchStrategy

The fetch strategy for the attribute.

Returns:CollectionAttributeFetch

The collection attribute fetch.

buildCompositeAttributeFetchback to summary
public CompositeAttributeFetch buildCompositeAttributeFetch(AttributeDefinition attributeDefinition)

Builds a fetch for a composite attribute.

Parameters
attributeDefinition:AttributeDefinition

The attribute definition.

Returns:CompositeAttributeFetch

The composite attribute fetch.

buildEntityAttributeFetchback to summary
public EntityFetch buildEntityAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)

Builds a fetch for an entity attribute.

Parameters
attributeDefinition:AssociationAttributeDefinition

The entity attribute.

fetchStrategy:FetchStrategy

The fetch strategy for the attribute.

Returns:EntityFetch

The entity fetch.

validateFetchPlanback to summary
public void validateFetchPlan(FetchStrategy fetchStrategy, AttributeDefinition attributeDefinition)

Is the asserted plan valid from this owner to a fetch?

Parameters
fetchStrategy:FetchStrategy

The type of fetch to validate.

attributeDefinition:AttributeDefinition

The attribute to be fetched.