Class EntityFetchJoinedImpl
- java.lang.Object
-
- org.hibernate.sql.results.graph.entity.internal.EntityFetchJoinedImpl
-
- All Implemented Interfaces:
DomainResultGraphNode
,EntityFetch
,EntityResultGraphNode
,Fetch
,FetchParent
,InitializerProducer<EntityFetchJoinedImpl>
public class EntityFetchJoinedImpl extends Object implements EntityFetch, FetchParent, InitializerProducer<EntityFetchJoinedImpl>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntityFetchJoinedImpl(EntityFetchJoinedImpl original)
For Hibernate ReactiveEntityFetchJoinedImpl(FetchParent fetchParent, EntityCollectionPart collectionPart, TableGroup tableGroup, NavigablePath navigablePath, DomainResultCreationState creationState)
EntityFetchJoinedImpl(FetchParent fetchParent, ToOneAttributeMapping toOneMapping, TableGroup tableGroup, DomainResult<?> keyResult, boolean isAffectedByFilter, NavigablePath navigablePath, DomainResultCreationState creationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EntityAssembler
buildEntityAssembler(EntityInitializer<?> entityInitializer)
void
collectValueIndexesToCache(BitSet valueIndexes)
Collect the JDBC value indexes used by this domain result that should be cached.boolean
containsCollectionFetches()
DomainResultAssembler<?>
createAssembler(InitializerParent<?> parent, AssemblerCreationState creationState)
Create the assembler for this fetchInitializer<?>
createInitializer(EntityFetchJoinedImpl resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState)
EntityInitializer<?>
createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)
Fetch
findFetch(Fetchable fetchable)
EntityResultImpl
getEntityResult()
EntityValuedFetchable
getEntityValuedModelPart()
EntityValuedFetchable
getFetchedMapping()
The value mapping being fetchedImmutableFetchList
getFetches()
Retrieve the fetches owned by this fetch source.FetchParent
getFetchParent()
Obtain the owner of this fetch.protected DomainResult<?>
getKeyResult()
NavigablePath
getNavigablePath()
The NavigablePath for this node (if one!).protected NotFoundAction
getNotFoundAction()
EntityValuedFetchable
getReferencedMappingType()
This parent's mapping typeEntityValuedFetchable
getReferencedModePart()
WhereasFetchParent.getReferencedMappingContainer()
andFetchParent.getReferencedMappingType()
return the referenced container type, this method returns the referenced part.protected String
getSourceAlias()
FetchTiming
getTiming()
immediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?boolean
hasJoinFetches()
boolean
hasTableGroup()
Is the TableGroup associated with this Fetch defined?protected boolean
isAffectedByFilter()
-
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, getReferencedMappingContainer, getResultJavaType
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParent
generateFetchableFetch, getCollectionFetchesCount, getRoot, resolveNavigablePath
-
-
-
-
Constructor Detail
-
EntityFetchJoinedImpl
public EntityFetchJoinedImpl(FetchParent fetchParent, ToOneAttributeMapping toOneMapping, TableGroup tableGroup, DomainResult<?> keyResult, boolean isAffectedByFilter, NavigablePath navigablePath, DomainResultCreationState creationState)
-
EntityFetchJoinedImpl
public EntityFetchJoinedImpl(FetchParent fetchParent, EntityCollectionPart collectionPart, TableGroup tableGroup, NavigablePath navigablePath, DomainResultCreationState creationState)
-
EntityFetchJoinedImpl
protected EntityFetchJoinedImpl(EntityFetchJoinedImpl original)
For Hibernate Reactive
-
-
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 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
-
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(InitializerParent<?> parent, AssemblerCreationState creationState)
Description copied from interface:Fetch
Create the assembler for this fetch- Specified by:
createAssembler
in interfaceFetch
-
buildEntityAssembler
protected EntityAssembler buildEntityAssembler(EntityInitializer<?> entityInitializer)
-
createInitializer
public Initializer<?> createInitializer(EntityFetchJoinedImpl resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState)
- Specified by:
createInitializer
in interfaceInitializerProducer<EntityFetchJoinedImpl>
-
createInitializer
public EntityInitializer<?> createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)
- Specified by:
createInitializer
in interfaceFetchParent
-
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
-
getEntityResult
public EntityResultImpl getEntityResult()
-
getNavigablePath
public NavigablePath getNavigablePath()
Description copied from interface:DomainResultGraphNode
The NavigablePath for this node (if one!). Certain nodes will not have a NavigablePath, namely those not associated with a Navigable- Specified by:
getNavigablePath
in interfaceDomainResultGraphNode
- Specified by:
getNavigablePath
in interfaceEntityResultGraphNode
- Specified by:
getNavigablePath
in interfaceFetch
- Specified by:
getNavigablePath
in interfaceFetchParent
- Returns:
- The property path
-
getFetches
public ImmutableFetchList getFetches()
Description copied from interface:FetchParent
Retrieve the fetches owned by this fetch source.- Specified by:
getFetches
in interfaceFetchParent
-
findFetch
public Fetch findFetch(Fetchable fetchable)
- Specified by:
findFetch
in interfaceFetchParent
-
hasJoinFetches
public boolean hasJoinFetches()
- Specified by:
hasJoinFetches
in interfaceFetchParent
-
containsCollectionFetches
public boolean containsCollectionFetches()
- Specified by:
containsCollectionFetches
in interfaceFetchParent
-
collectValueIndexesToCache
public void collectValueIndexesToCache(BitSet valueIndexes)
Description copied from interface:DomainResultGraphNode
Collect the JDBC value indexes used by this domain result that should be cached.- Specified by:
collectValueIndexesToCache
in interfaceDomainResultGraphNode
- Specified by:
collectValueIndexesToCache
in interfaceEntityFetch
- Specified by:
collectValueIndexesToCache
in interfaceFetchParent
-
getKeyResult
protected DomainResult<?> getKeyResult()
-
getNotFoundAction
protected NotFoundAction getNotFoundAction()
-
isAffectedByFilter
protected boolean isAffectedByFilter()
-
getSourceAlias
protected String getSourceAlias()
-
-