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

public Interface FetchSource

Known Direct Subinterfaces
org.hibernate.loader.plan.build.spi.ExpandingFetchSource, org.hibernate.loader.plan.spi.AnyAttributeFetch, org.hibernate.loader.plan.spi.CollectionFetchableElement, org.hibernate.loader.plan.spi.CollectionFetchableIndex, org.hibernate.loader.plan.spi.CompositeFetch, org.hibernate.loader.plan.spi.EntityReference
Known Direct Implementers
org.hibernate.loader.plan.build.internal.returns.AbstractAnyReference
Imports
org.hibernate.loader.PropertyPath

Contract for a FetchSource (aka, the thing that owns the fetched attribute).
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public BidirectionalEntityReference[]

Returns:

The owned bidirectional entity references.
getBidirectionalEntityReferences
()

Retrieve the bidirectional entity references owned by this fetch source.

public Fetch[]

Returns:

The owned fetches.
getFetches
()

Retrieve the fetches owned by this fetch source.

public PropertyPath

Returns:

The property path
getPropertyPath
()

Get the property path to this fetch source

public String

Returns:

The query space UID.
getQuerySpaceUid
()

Get the UID for this fetch source's query space.

public EntityReference

Returns:

the "current" EntityReference or null if none. .
resolveEntityReference
()

Resolve the "current" EntityReference, or null if none.

Method Detail

getBidirectionalEntityReferencesback to summary
public BidirectionalEntityReference[] getBidirectionalEntityReferences()

Retrieve the bidirectional entity references owned by this fetch source.

Returns:BidirectionalEntityReference[]

The owned bidirectional entity references.

getFetchesback to summary
public Fetch[] getFetches()

Retrieve the fetches owned by this fetch source.

Returns:Fetch[]

The owned fetches.

getPropertyPathback to summary
public PropertyPath getPropertyPath()

Get the property path to this fetch source

Returns:PropertyPath

The property path

getQuerySpaceUidback to summary
public String getQuerySpaceUid()

Get the UID for this fetch source's query space.

Returns:String

The query space UID.

resolveEntityReferenceback to summary
public EntityReference resolveEntityReference()

Resolve the "current" EntityReference, or null if none. If this object is an EntityReference, then this object is returned; otherwise, if this object is a Fetch, then the nearest EntityReference will be resolved from its source, if possible. If no EntityReference can be resolved, null is return.

Returns:EntityReference

the "current" EntityReference or null if none. .

See Also
org.hibernate.loader.plan.spi.Fetch#getSource()