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 FetchParent
asFetchParent()
Utility method to avoidinstanceof
checks.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)
DiscriminatedAssociationModelPart
getFetchedMapping()
The value mapping being fetchedFetchParent
getFetchParent()
Obtain the owner of this fetch.FetchTiming
getTiming()
immediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?boolean
hasTableGroup()
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: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
public DiscriminatedAssociationModelPart getFetchedMapping()
Description copied from interface:Fetch
The value mapping being fetched- Specified by:
getFetchedMapping
in interfaceFetch
-
getTiming
public FetchTiming 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
public FetchParent 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
-
-