Package org.hibernate.sql.results.graph
Interface Fetch
-
- All Superinterfaces:
DomainResultGraphNode
- All Known Subinterfaces:
BiDirectionalFetch,EntityFetch
- All Known Implementing Classes:
AbstractNonJoinedEntityFetch,AbstractNonLazyEntityFetch,AggregateEmbeddableFetchImpl,BasicFetch,CircularBiDirectionalFetchImpl,CircularFetchImpl,CollectionFetch,DelayedCollectionFetch,EagerCollectionFetch,EmbeddableFetchImpl,EntityDelayedFetchImpl,EntityFetchJoinedImpl,EntityFetchSelectImpl,NonAggregatedIdentifierMappingFetch,SelectEagerCollectionFetch
@Incubating public interface Fetch extends DomainResultGraphNode
Contract for fetches including entity, collection and composite. Acts as the producer for theDomainResultAssemblerfor this result as well as anyInitializerinstances needed
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancontainsAnyNonScalarResults()Does this node contain any non-scalar (sub-)results?DomainResultAssembler<?>createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)Create the assembler for this fetchFetchablegetFetchedMapping()The value mapping being fetchedFetchParentgetFetchParent()Obtain the owner of this fetch.NavigablePathgetNavigablePath()Get the property path to this fetchFetchTiminggetTiming()immediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?booleanhasTableGroup()Is the TableGroup associated with this Fetch defined?-
Methods inherited from interface org.hibernate.sql.results.graph.DomainResultGraphNode
appliesTo, getResultJavaType
-
-
-
-
Method Detail
-
getNavigablePath
NavigablePath getNavigablePath()
Get the property path to this fetch- Specified by:
getNavigablePathin interfaceDomainResultGraphNode- Returns:
- The property path
-
getFetchParent
FetchParent getFetchParent()
Obtain the owner of this fetch. Ultimately used to identify the thing that "owns" this fetched navigable for the purpose of:* identifying the associated owner reference as we process the fetch * inject the fetched instance into the parent and potentially inject the parent reference into the fetched instance if it defines such injection (e.g.
Parent)
-
getFetchedMapping
Fetchable getFetchedMapping()
The value mapping being fetched
-
getTiming
FetchTiming getTiming()
immediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?
-
hasTableGroup
boolean hasTableGroup()
Is the TableGroup associated with this Fetch defined?
-
containsAnyNonScalarResults
default boolean containsAnyNonScalarResults()
Description copied from interface:DomainResultGraphNodeDoes this node contain any non-scalar (sub-)results?- Specified by:
containsAnyNonScalarResultsin interfaceDomainResultGraphNode
-
createAssembler
DomainResultAssembler<?> createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)
Create the assembler for this fetch
-
-