Package org.hibernate.sql.results.graph
Interface FetchParent
-
- All Superinterfaces:
DomainResultGraphNode
- All Known Subinterfaces:
AggregateEmbeddableResultGraphNode,EmbeddableResult<T>,EmbeddableResultGraphNode,EntityFetch,EntityResult,EntityResultGraphNode
- All Known Implementing Classes:
AbstractDiscriminatedEntityResultGraphNode,AbstractEntityResultGraphNode,AbstractFetchParent,AbstractNonJoinedEntityFetch,AggregateEmbeddableFetchImpl,AggregateEmbeddableResultImpl,CircularFetchImpl,CollectionDomainResult,CollectionFetch,CompoundNaturalIdMapping.DomainResultImpl,DelayedCollectionFetch,DiscriminatedEntityFetch,DiscriminatedEntityResult,EagerCollectionFetch,EmbeddableExpressionResultImpl,EmbeddableFetchImpl,EmbeddableForeignKeyResultImpl,EmbeddableResultImpl,EntityDelayedFetchImpl,EntityFetchJoinedImpl,EntityFetchSelectImpl,EntityResultImpl,EntityResultImpl,NonAggregatedIdentifierMappingFetch,NonAggregatedIdentifierMappingResult,SelectEagerCollectionFetch
@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 default voidcollectValueIndexesToCache(BitSet valueIndexes)Collect the JDBC value indexes used by this domain result that should be cached.booleancontainsCollectionFetches()Initializer<?>createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)FetchfindFetch(Fetchable fetchable)default FetchgenerateFetchableFetch(Fetchable fetchable, NavigablePath fetchablePath, FetchTiming fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState)default intgetCollectionFetchesCount()ImmutableFetchListgetFetches()Retrieve the fetches owned by this fetch source.NavigablePathgetNavigablePath()Get the property path to this parentFetchableContainergetReferencedMappingContainer()This parent's mapping typeFetchableContainergetReferencedMappingType()This parent's mapping typedefault ModelPartgetReferencedModePart()WhereasgetReferencedMappingContainer()andgetReferencedMappingType()return the referenced container type, this method returns the referenced part.default FetchParentgetRoot()booleanhasJoinFetches()default NavigablePathresolveNavigablePath(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 theToOneAttributeMappingwhilegetReferencedMappingContainer()andgetReferencedMappingType()return the referencedEntityMappingType.
-
getNavigablePath
NavigablePath getNavigablePath()
Get the property path to this parent- Specified by:
getNavigablePathin interfaceDomainResultGraphNode
-
getFetches
ImmutableFetchList getFetches()
Retrieve the fetches owned by this fetch source.
-
hasJoinFetches
boolean hasJoinFetches()
-
containsCollectionFetches
boolean containsCollectionFetches()
-
getCollectionFetchesCount
default int getCollectionFetchesCount()
-
collectValueIndexesToCache
default void collectValueIndexesToCache(BitSet valueIndexes)
Description copied from interface:DomainResultGraphNodeCollect the JDBC value indexes used by this domain result that should be cached.- Specified by:
collectValueIndexesToCachein interfaceDomainResultGraphNode
-
createInitializer
Initializer<?> createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)
-
getRoot
default FetchParent getRoot()
-
generateFetchableFetch
default Fetch generateFetchableFetch(Fetchable fetchable, NavigablePath fetchablePath, FetchTiming fetchTiming, boolean selected, String resultVariable, DomainResultCreationState creationState)
-
-