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
Constructors Constructor Description DiscriminatedEntityFetch(NavigablePath navigablePath, JavaType<?> baseAssociationJtd, DiscriminatedAssociationModelPart fetchedPart, FetchTiming fetchTiming, FetchParent fetchParent, DomainResultCreationState creationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FetchParentasFetchParent()Utility method to avoidinstanceofchecks.DomainResultAssembler<?>createAssembler(InitializerParent<?> parent, AssemblerCreationState creationState)Create the assembler for this fetchInitializer<?>createInitializer(DiscriminatedEntityFetch resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState)Initializer<?>createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)DiscriminatedAssociationModelPartgetFetchedMapping()The value mapping being fetchedFetchParentgetFetchParent()Obtain the owner of this fetch.FetchTiminggetTiming()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 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 Detail
-
DiscriminatedEntityFetch
public DiscriminatedEntityFetch(NavigablePath navigablePath, JavaType<?> baseAssociationJtd, DiscriminatedAssociationModelPart fetchedPart, FetchTiming fetchTiming, FetchParent fetchParent, DomainResultCreationState creationState)
-
-
Method Detail
-
getFetchParent
public FetchParent getFetchParent()
Description copied from interface:FetchObtain 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:
getFetchParentin interfaceFetch
-
getFetchedMapping
public DiscriminatedAssociationModelPart getFetchedMapping()
Description copied from interface:FetchThe value mapping being fetched- Specified by:
getFetchedMappingin interfaceFetch
-
getTiming
public FetchTiming getTiming()
Description copied from interface:Fetchimmediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?
-
hasTableGroup
public boolean hasTableGroup()
Description copied from interface:FetchIs the TableGroup associated with this Fetch defined?- Specified by:
hasTableGroupin interfaceFetch
-
createAssembler
public DomainResultAssembler<?> createAssembler(InitializerParent<?> parent, AssemblerCreationState creationState)
Description copied from interface:FetchCreate the assembler for this fetch- Specified by:
createAssemblerin interfaceFetch
-
createInitializer
public Initializer<?> createInitializer(DiscriminatedEntityFetch resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState)
- Specified by:
createInitializerin interfaceInitializerProducer<DiscriminatedEntityFetch>
-
createInitializer
public Initializer<?> createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)
- Specified by:
createInitializerin interfaceFetchParent
-
asFetchParent
public FetchParent asFetchParent()
Description copied from interface:FetchUtility method to avoidinstanceofchecks. Returns this if it's an instance ofFetchParent, null otherwise.- Specified by:
asFetchParentin interfaceFetch
-
-