Package org.hibernate.sql.results.graph
Interface FetchParent
-
- All Superinterfaces:
DomainResultGraphNode
- All Known Subinterfaces:
EmbeddableResult<T>
,EmbeddableResultGraphNode
,EntityFetch
,EntityResult
,EntityResultGraphNode
- All Known Implementing Classes:
AbstractEntityResultGraphNode
,AbstractFetchParent
,AbstractNonJoinedEntityFetch
,AbstractNonLazyEntityFetch
,AggregateEmbeddableFetchImpl
,AggregateEmbeddableResultImpl
,CollectionDomainResult
,CompoundNaturalIdMapping.DomainResultImpl
,EagerCollectionFetch
,EmbeddableExpressionResultImpl
,EmbeddableFetchImpl
,EmbeddableForeignKeyResultImpl
,EmbeddableResultImpl
,EntityDelayedFetchImpl
,EntityFetchJoinedImpl
,EntityFetchSelectImpl
,EntityResultImpl
,EntityResultImpl
,EntityResultJoinedSubclassImpl
,NonAggregatedIdentifierMappingFetch
,NonAggregatedIdentifierMappingResult
@Incubating public interface FetchParent extends DomainResultGraphNode
Contract for things that can be the parent of a fetch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
containsCollectionFetches()
Fetch
findFetch(Fetchable fetchable)
default Fetch
generateFetchableFetch(Fetchable fetchable, NavigablePath fetchablePath, FetchTiming fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState)
ImmutableFetchList
getFetches()
Retrieve the fetches owned by this fetch source.NavigablePath
getNavigablePath()
Get the property path to this parentFetchableContainer
getReferencedMappingContainer()
This parent's mapping typeFetchableContainer
getReferencedMappingType()
This parent's mapping typedefault ModelPart
getReferencedModePart()
WhereasgetReferencedMappingContainer()
andgetReferencedMappingType()
return the referenced container type, this method returns the referenced part.default FetchParent
getRoot()
boolean
hasJoinFetches()
default NavigablePath
resolveNavigablePath(Fetchable fetchable)
-
Methods inherited from interface org.hibernate.sql.results.graph.DomainResultGraphNode
appliesTo, containsAnyNonScalarResults, getResultJavaType
-
-
-
-
Method Detail
-
getReferencedMappingContainer
FetchableContainer getReferencedMappingContainer()
This parent's mapping type
-
getReferencedMappingType
FetchableContainer getReferencedMappingType()
This parent's mapping type
-
resolveNavigablePath
default NavigablePath resolveNavigablePath(Fetchable fetchable)
-
getReferencedModePart
default ModelPart getReferencedModePart()
WhereasgetReferencedMappingContainer()
andgetReferencedMappingType()
return the referenced container type, this method returns the referenced part. E.g. for a many-to-one this method returns theToOneAttributeMapping
whilegetReferencedMappingContainer()
andgetReferencedMappingType()
return the referencedEntityMappingType
.
-
getNavigablePath
NavigablePath getNavigablePath()
Get the property path to this parent- Specified by:
getNavigablePath
in interfaceDomainResultGraphNode
-
getFetches
ImmutableFetchList getFetches()
Retrieve the fetches owned by this fetch source.
-
hasJoinFetches
boolean hasJoinFetches()
-
containsCollectionFetches
boolean containsCollectionFetches()
-
getRoot
default FetchParent getRoot()
-
generateFetchableFetch
default Fetch generateFetchableFetch(Fetchable fetchable, NavigablePath fetchablePath, FetchTiming fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState)
-
-