Top Description Methods
org.hibernate.sql.results.graph

public Interface FetchParent

extends DomainResultGraphNode
Known Direct Subinterfaces
org.hibernate.sql.results.graph.embeddable.EmbeddableResultGraphNode, org.hibernate.sql.results.graph.entity.EntityResultGraphNode
Known Direct Implementers
org.hibernate.sql.results.graph.collection.internal.CollectionDomainResult, org.hibernate.sql.results.graph.collection.internal.EagerCollectionFetch, org.hibernate.metamodel.mapping.internal.CompoundNaturalIdMapping.DomainResultImpl, org.hibernate.metamodel.mapping.internal.DiscriminatedAssociationMapping.AnyValuedResultGraphNode, org.hibernate.sql.results.graph.AbstractFetchParent
Annotations
@Incubating
Imports
org.hibernate.Incubating, org.hibernate.engine.FetchTiming, org.hibernate.metamodel.mapping.EmbeddableMappingType, .EmbeddableValuedModelPart, .EntityIdentifierMapping, .EntityMappingType, .ModelPart, org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping, org.hibernate.spi.EntityIdentifierNavigablePath, .NavigablePath, org.hibernate.sql.results.graph.internal.ImmutableFetchList

Contract for things that can be the parent of a fetch
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean
public Fetch
findFetch(Fetchable fetchable)

public default Fetch
generateFetchableFetch(Fetchable fetchable, NavigablePath fetchablePath, FetchTiming fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState)

public ImmutableFetchList
getFetches()

Retrieve the fetches owned by this fetch source.

public NavigablePath
getNavigablePath()

Redeclares as abstract: org.hibernate.sql.results.graph.DomainResultGraphNode.getNavigablePath.

Get the property path to this parent
public FetchableContainer
getReferencedMappingContainer()

This parent's mapping type

public FetchableContainer
getReferencedMappingType()

This parent's mapping type

public default ModelPart
getReferencedModePart()

Whereas getReferencedMappingContainer and getReferencedMappingType return the referenced container type, this method returns the referenced part.

public default FetchParent
public boolean
public default NavigablePath
Inherited from org.hibernate.sql.results.graph.DomainResultGraphNode:
appliesTocontainsAnyNonScalarResultsgetResultJavaType

Method Detail

containsCollectionFetchesback to summary
public boolean containsCollectionFetches()
findFetchback to summary
public Fetch findFetch(Fetchable fetchable)
generateFetchableFetchback to summary
public default Fetch generateFetchableFetch(Fetchable fetchable, NavigablePath fetchablePath, FetchTiming fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState)
getFetchesback to summary
public ImmutableFetchList getFetches()

Retrieve the fetches owned by this fetch source.

getNavigablePathback to summary
public NavigablePath getNavigablePath()

Redeclares as abstract: org.hibernate.sql.results.graph.DomainResultGraphNode.getNavigablePath.

Get the property path to this parent

getReferencedMappingContainerback to summary
public FetchableContainer getReferencedMappingContainer()

This parent's mapping type

getReferencedMappingTypeback to summary
public FetchableContainer getReferencedMappingType()

This parent's mapping type

getReferencedModePartback to summary
public default ModelPart getReferencedModePart()

Whereas getReferencedMappingContainer and getReferencedMappingType return the referenced container type, this method returns the referenced part. E.g. for a many-to-one this method returns the ToOneAttributeMapping while getReferencedMappingContainer and getReferencedMappingType return the referenced org.hibernate.metamodel.mapping.EntityMappingType.

getRootback to summary
public default FetchParent getRoot()
hasJoinFetchesback to summary
public boolean hasJoinFetches()
resolveNavigablePathback to summary
public default NavigablePath resolveNavigablePath(Fetchable fetchable)