Class DiscriminatedEntityFetch
java.lang.Object
org.hibernate.sql.results.graph.entity.AbstractDiscriminatedEntityResultGraphNode
org.hibernate.sql.results.graph.entity.internal.DiscriminatedEntityFetch
- All Implemented Interfaces:
DomainResultGraphNode
,Fetch
,FetchParent
,InitializerProducer<DiscriminatedEntityFetch>
public class DiscriminatedEntityFetch
extends AbstractDiscriminatedEntityResultGraphNode
implements Fetch, InitializerProducer<DiscriminatedEntityFetch>
-
Constructor Summary
ConstructorsConstructorDescriptionDiscriminatedEntityFetch
(NavigablePath navigablePath, JavaType<?> baseAssociationJtd, DiscriminatedAssociationModelPart fetchedPart, FetchTiming fetchTiming, FetchParent fetchParent, DomainResultCreationState creationState) -
Method Summary
Modifier and TypeMethodDescriptionUtility method to avoidinstanceof
checks.createAssembler
(InitializerParent<?> parent, AssemblerCreationState creationState) Create the assembler for this fetchInitializer<?>
createInitializer
(DiscriminatedEntityFetch resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState) Initializer<?>
createInitializer
(InitializerParent<?> parent, AssemblerCreationState creationState) The value mapping being fetchedObtain the owner of this fetch.immediate 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 class org.hibernate.sql.results.graph.entity.AbstractDiscriminatedEntityResultGraphNode
afterInitialize, collectValueIndexesToCache, containsAnyNonScalarResults, containsCollectionFetches, findFetch, getBaseAssociationJtd, getDiscriminatorValueFetch, getFetches, getKeyValueFetch, getNavigablePath, getReferencedMappingContainer, getReferencedMappingType, getResultJavaType, hasJoinFetches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.sql.results.graph.DomainResultGraphNode
appliesTo, getResultJavaType
Methods inherited from interface org.hibernate.sql.results.graph.Fetch
containsAnyNonScalarResults, getNavigablePath
Methods inherited from interface org.hibernate.sql.results.graph.FetchParent
generateFetchableFetch, getCollectionFetchesCount, getReferencedModePart, getRoot, resolveNavigablePath
-
Constructor Details
-
Method Details
-
getFetchParent
Description copied from interface:Fetch
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
)- Specified by:
getFetchParent
in interfaceFetch
-
getFetchedMapping
Description copied from interface:Fetch
The value mapping being fetched- Specified by:
getFetchedMapping
in interfaceFetch
-
getTiming
Description copied from interface:Fetch
immediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options? -
hasTableGroup
public boolean hasTableGroup()Description copied from interface:Fetch
Is the TableGroup associated with this Fetch defined?- Specified by:
hasTableGroup
in interfaceFetch
-
createAssembler
public DomainResultAssembler<?> createAssembler(InitializerParent<?> parent, AssemblerCreationState creationState) Description copied from interface:Fetch
Create the assembler for this fetch- Specified by:
createAssembler
in interfaceFetch
-
createInitializer
public Initializer<?> createInitializer(DiscriminatedEntityFetch resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState) - Specified by:
createInitializer
in interfaceInitializerProducer<DiscriminatedEntityFetch>
-
createInitializer
public Initializer<?> createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState) - Specified by:
createInitializer
in interfaceFetchParent
-
asFetchParent
Description copied from interface:Fetch
Utility method to avoidinstanceof
checks. Returns this if it's an instance ofFetchParent
, null otherwise.- Specified by:
asFetchParent
in interfaceFetch
-