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
-
Methods inherited from class org.hibernate.sql.results.graph.AbstractFetchParent
afterInitialize, containsCollectionFetches, findFetch, getFetches, getNavigablePath, getResultJavaType, hasJoinFetches, 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
asFetchParent, 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
containsCollectionFetches, findFetch, generateFetchableFetch, getFetches, getRoot, hasJoinFetches, resolveNavigablePath
-
-
-
-
Constructor Detail
-
AbstractNonLazyEntityFetch
public AbstractNonLazyEntityFetch(FetchParent fetchParent, EntityValuedFetchable fetchedPart, NavigablePath navigablePath)
-
-
Method Detail
-
getEntityValuedModelPart
public EntityValuedFetchable getEntityValuedModelPart()
- Specified by:
getEntityValuedModelPart
in interfaceEntityResultGraphNode
-
getFetchContainer
public FetchableContainer getFetchContainer()
- Specified by:
getFetchContainer
in classAbstractFetchParent
-
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 method 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
-
buildEntityAssembler
protected EntityAssembler buildEntityAssembler(EntityInitializer entityInitializer)
-
getEntityInitializer
protected abstract EntityInitializer getEntityInitializer(FetchParentAccess parentAccess, AssemblerCreationState creationState)
-
-