Class AbstractNonLazyEntityFetch
- java.lang.Object
-
- org.hibernate.sql.results.graph.AbstractFetchParent
-
- org.hibernate.sql.results.graph.entity.AbstractNonLazyEntityFetch
-
- All Implemented Interfaces:
DomainResultGraphNode
,EntityFetch
,EntityResultGraphNode
,Fetch
,FetchParent
- Direct Known Subclasses:
EntityFetchJoinedImpl
public abstract class AbstractNonLazyEntityFetch extends AbstractFetchParent implements EntityFetch
Support for non-lazy EntityFetch implementations - both joined and subsequent-select
-
-
Constructor Summary
Constructors Constructor Description AbstractNonLazyEntityFetch(FetchParent fetchParent, EntityValuedFetchable fetchedPart, NavigablePath navigablePath)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DomainResultAssembler<?>
createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)
Create the assembler for this fetchprotected abstract EntityInitializer
getEntityInitializer(FetchParentAccess parentAccess, AssemblerCreationState creationState)
EntityValuedFetchable
getEntityValuedModelPart()
EntityValuedFetchable
getFetchedMapping()
The value mapping being fetchedFetchParent
getFetchParent()
Obtain the owner of this fetch.EntityMappingType
getReferencedMappingContainer()
This parent's mapping typeEntityValuedFetchable
getReferencedMappingType()
This parent's mapping typeEntityValuedFetchable
getReferencedModePart()
WhereasFetchParent.getReferencedMappingContainer()
andFetchParent.getReferencedMappingType()
return the referenced container type, this method returns the referenced part.-
Methods inherited from class org.hibernate.sql.results.graph.AbstractFetchParent
afterInitialize, findFetch, getFetchContainer, getFetches, getNavigablePath, getResultJavaType, resetFetches
-
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.entity.EntityFetch
containsAnyNonScalarResults
-
Methods inherited from interface org.hibernate.sql.results.graph.entity.EntityResultGraphNode
appliesTo, getNavigablePath, getResultJavaType
-
Methods inherited from interface org.hibernate.sql.results.graph.Fetch
getNavigablePath, getTiming, hasTableGroup
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParent
findFetch, generateFetchableFetch, getFetches, getRoot, resolveNavigablePath
-
-
-
-
Constructor Detail
-
AbstractNonLazyEntityFetch
public AbstractNonLazyEntityFetch(FetchParent fetchParent, EntityValuedFetchable fetchedPart, NavigablePath navigablePath)
-
-
Method Detail
-
getEntityValuedModelPart
public EntityValuedFetchable getEntityValuedModelPart()
- Specified by:
getEntityValuedModelPart
in interfaceEntityResultGraphNode
-
getReferencedModePart
public EntityValuedFetchable getReferencedModePart()
Description copied from interface:FetchParent
WhereasFetchParent.getReferencedMappingContainer()
andFetchParent.getReferencedMappingType()
return the referenced container type, this method returns the referenced part. E.g. for a many-to-one this methods returns theToOneAttributeMapping
whileFetchParent.getReferencedMappingContainer()
andFetchParent.getReferencedMappingType()
return the referencedEntityMappingType
.- Specified by:
getReferencedModePart
in interfaceFetchParent
-
getReferencedMappingType
public EntityValuedFetchable getReferencedMappingType()
Description copied from interface:FetchParent
This parent's mapping type- Specified by:
getReferencedMappingType
in interfaceFetchParent
-
getReferencedMappingContainer
public EntityMappingType getReferencedMappingContainer()
Description copied from interface:FetchParent
This parent's mapping type- Specified by:
getReferencedMappingContainer
in interfaceEntityResultGraphNode
- Specified by:
getReferencedMappingContainer
in interfaceFetchParent
- Overrides:
getReferencedMappingContainer
in classAbstractFetchParent
-
getFetchedMapping
public EntityValuedFetchable getFetchedMapping()
Description copied from interface:Fetch
The value mapping being fetched- Specified by:
getFetchedMapping
in interfaceFetch
-
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
-
createAssembler
public DomainResultAssembler<?> createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)
Description copied from interface:Fetch
Create the assembler for this fetch- Specified by:
createAssembler
in interfaceFetch
-
getEntityInitializer
protected abstract EntityInitializer getEntityInitializer(FetchParentAccess parentAccess, AssemblerCreationState creationState)
-
-