Package org.hibernate.sql.results.graph
Interface Fetch
- All Superinterfaces:
DomainResultGraphNode
- All Known Subinterfaces:
BiDirectionalFetch
,EntityFetch
- All Known Implementing Classes:
BasicFetch
Contract for fetches including entity, collection and composite. Acts as the
producer for the
DomainResultAssembler
for this result as well
as any Initializer
instances needed-
Method Summary
Modifier and TypeMethodDescriptiondefault FetchParent
Utility method to avoidinstanceof
checks.default boolean
Does this node contain any non-scalar (sub-)results?createAssembler
(InitializerParent<?> parent, AssemblerCreationState creationState) Create the assembler for this fetchThe value mapping being fetchedObtain the owner of this fetch.Get the property path to this fetchimmediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?boolean
Is the TableGroup associated with this Fetch defined?Methods inherited from interface org.hibernate.sql.results.graph.DomainResultGraphNode
appliesTo, collectValueIndexesToCache, getResultJavaType
-
Method Details
-
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
) -
asFetchParent
Utility method to avoidinstanceof
checks. Returns this if it's an instance ofFetchParent
, null otherwise. -
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:DomainResultGraphNode
Does this node contain any non-scalar (sub-)results?- Specified by:
containsAnyNonScalarResults
in interfaceDomainResultGraphNode
-
createAssembler
DomainResultAssembler<?> createAssembler(InitializerParent<?> parent, AssemblerCreationState creationState) Create the assembler for this fetch