Class EntityResultImpl
- java.lang.Object
-
- org.hibernate.query.results.complete.EntityResultImpl
-
- All Implemented Interfaces:
DomainResult
,DomainResultGraphNode
,EntityResult
,EntityResultGraphNode
,FetchParent
,InitializerProducer<EntityResultImpl>
public class EntityResultImpl extends Object implements EntityResult, InitializerProducer<EntityResultImpl>
-
-
Constructor Summary
Constructors Constructor Description EntityResultImpl(NavigablePath navigablePath, EntityValuedModelPart entityValuedModelPart, String resultAlias, LockMode lockMode, Function<EntityResultImpl,BasicFetch<?>> discriminatorFetchBuilder, DomainResultCreationState creationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectValueIndexesToCache(BitSet valueIndexes)
Collect the JDBC value indexes used by this domain result that should be cached.boolean
containsCollectionFetches()
Initializer<?>
createInitializer(EntityResultImpl resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState)
Initializer<?>
createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)
DomainResultAssembler<?>
createResultAssembler(InitializerParent parent, AssemblerCreationState creationState)
Create an assembler (and any initializers) for this result.Fetch
findFetch(Fetchable fetchable)
EntityValuedModelPart
getEntityValuedModelPart()
ImmutableFetchList
getFetches()
Retrieve the fetches owned by this fetch source.NavigablePath
getNavigablePath()
The NavigablePath for this node (if one!).EntityValuedModelPart
getReferencedMappingType()
This parent's mapping typeString
getResultVariable()
The result-variable (alias) associated with this result.boolean
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.entity.EntityResultGraphNode
appliesTo, containsAnyNonScalarResults, getReferencedMappingContainer, getResultJavaType
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParent
generateFetchableFetch, getCollectionFetchesCount, getReferencedModePart, getRoot, resolveNavigablePath
-
-
-
-
Constructor Detail
-
EntityResultImpl
public EntityResultImpl(NavigablePath navigablePath, EntityValuedModelPart entityValuedModelPart, String resultAlias, LockMode lockMode, Function<EntityResultImpl,BasicFetch<?>> discriminatorFetchBuilder, DomainResultCreationState creationState)
-
-
Method Detail
-
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 interfaceFetchParent
-
getReferencedMappingType
public EntityValuedModelPart getReferencedMappingType()
Description copied from interface:FetchParent
This parent's mapping type- Specified by:
getReferencedMappingType
in interfaceFetchParent
-
getEntityValuedModelPart
public EntityValuedModelPart getEntityValuedModelPart()
- Specified by:
getEntityValuedModelPart
in interfaceEntityResultGraphNode
-
getResultVariable
public String getResultVariable()
Description copied from interface:DomainResult
The result-variable (alias) associated with this result.- Specified by:
getResultVariable
in interfaceDomainResult
-
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 interfaceFetchParent
-
createResultAssembler
public DomainResultAssembler<?> createResultAssembler(InitializerParent parent, AssemblerCreationState creationState)
Description copied from interface:DomainResult
Create an assembler (and any initializers) for this result.- Specified by:
createResultAssembler
in interfaceDomainResult
-
createInitializer
public Initializer<?> createInitializer(EntityResultImpl resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState)
- Specified by:
createInitializer
in interfaceInitializerProducer<EntityResultImpl>
-
createInitializer
public Initializer<?> createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)
- Specified by:
createInitializer
in interfaceFetchParent
-
-