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 voidcollectValueIndexesToCache(BitSet valueIndexes)Collect the JDBC value indexes used by this domain result that should be cached.booleancontainsCollectionFetches()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.FetchfindFetch(Fetchable fetchable)EntityValuedModelPartgetEntityValuedModelPart()ImmutableFetchListgetFetches()Retrieve the fetches owned by this fetch source.NavigablePathgetNavigablePath()The NavigablePath for this node (if one!).EntityValuedModelPartgetReferencedMappingType()This parent's mapping typeStringgetResultVariable()The result-variable (alias) associated with this result.booleanhasJoinFetches()-
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:DomainResultGraphNodeThe NavigablePath for this node (if one!). Certain nodes will not have a NavigablePath, namely those not associated with a Navigable- Specified by:
getNavigablePathin interfaceDomainResultGraphNode- Specified by:
getNavigablePathin interfaceEntityResultGraphNode- Specified by:
getNavigablePathin interfaceFetchParent
-
getReferencedMappingType
public EntityValuedModelPart getReferencedMappingType()
Description copied from interface:FetchParentThis parent's mapping type- Specified by:
getReferencedMappingTypein interfaceFetchParent
-
getEntityValuedModelPart
public EntityValuedModelPart getEntityValuedModelPart()
- Specified by:
getEntityValuedModelPartin interfaceEntityResultGraphNode
-
getResultVariable
public String getResultVariable()
Description copied from interface:DomainResultThe result-variable (alias) associated with this result.- Specified by:
getResultVariablein interfaceDomainResult
-
getFetches
public ImmutableFetchList getFetches()
Description copied from interface:FetchParentRetrieve the fetches owned by this fetch source.- Specified by:
getFetchesin interfaceFetchParent
-
findFetch
public Fetch findFetch(Fetchable fetchable)
- Specified by:
findFetchin interfaceFetchParent
-
hasJoinFetches
public boolean hasJoinFetches()
- Specified by:
hasJoinFetchesin interfaceFetchParent
-
containsCollectionFetches
public boolean containsCollectionFetches()
- Specified by:
containsCollectionFetchesin interfaceFetchParent
-
collectValueIndexesToCache
public void collectValueIndexesToCache(BitSet valueIndexes)
Description copied from interface:DomainResultGraphNodeCollect the JDBC value indexes used by this domain result that should be cached.- Specified by:
collectValueIndexesToCachein interfaceDomainResultGraphNode- Specified by:
collectValueIndexesToCachein interfaceFetchParent
-
createResultAssembler
public DomainResultAssembler<?> createResultAssembler(InitializerParent parent, AssemblerCreationState creationState)
Description copied from interface:DomainResultCreate an assembler (and any initializers) for this result.- Specified by:
createResultAssemblerin interfaceDomainResult
-
createInitializer
public Initializer<?> createInitializer(EntityResultImpl resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState)
- Specified by:
createInitializerin interfaceInitializerProducer<EntityResultImpl>
-
createInitializer
public Initializer<?> createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)
- Specified by:
createInitializerin interfaceFetchParent
-
-