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
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:
getEntityValuedModelPartin interfaceEntityResultGraphNode
-
getFetchContainer
public FetchableContainer getFetchContainer()
- Specified by:
getFetchContainerin classAbstractFetchParent
-
getReferencedModePart
public EntityValuedFetchable getReferencedModePart()
Description copied from interface:FetchParentWhereasFetchParent.getReferencedMappingContainer()andFetchParent.getReferencedMappingType()return the referenced container type, this method returns the referenced part. E.g. for a many-to-one this methods returns theToOneAttributeMappingwhileFetchParent.getReferencedMappingContainer()andFetchParent.getReferencedMappingType()return the referencedEntityMappingType.- Specified by:
getReferencedModePartin interfaceFetchParent
-
getReferencedMappingType
public EntityValuedFetchable getReferencedMappingType()
Description copied from interface:FetchParentThis parent's mapping type- Specified by:
getReferencedMappingTypein interfaceFetchParent
-
getReferencedMappingContainer
public EntityMappingType getReferencedMappingContainer()
Description copied from interface:FetchParentThis parent's mapping type- Specified by:
getReferencedMappingContainerin interfaceEntityResultGraphNode- Specified by:
getReferencedMappingContainerin interfaceFetchParent- Overrides:
getReferencedMappingContainerin classAbstractFetchParent
-
getFetchedMapping
public EntityValuedFetchable getFetchedMapping()
Description copied from interface:FetchThe value mapping being fetched- Specified by:
getFetchedMappingin interfaceFetch
-
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
-
createAssembler
public DomainResultAssembler<?> createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)
Description copied from interface:FetchCreate the assembler for this fetch- Specified by:
createAssemblerin interfaceFetch
-
buildEntityAssembler
protected EntityAssembler buildEntityAssembler(EntityInitializer entityInitializer)
-
getEntityInitializer
protected abstract EntityInitializer getEntityInitializer(FetchParentAccess parentAccess, AssemblerCreationState creationState)
-
-