Class EntityResultImpl
- java.lang.Object
-
- org.hibernate.query.results.complete.EntityResultImpl
-
- All Implemented Interfaces:
DomainResult,DomainResultGraphNode,EntityResult,EntityResultGraphNode,FetchParent
public class EntityResultImpl extends Object implements EntityResult
-
-
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 booleancontainsCollectionFetches()DomainResultAssembler<?>createResultAssembler(FetchParentAccess parentAccess, 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, 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
-
createResultAssembler
public DomainResultAssembler<?> createResultAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)
Description copied from interface:DomainResultCreate an assembler (and any initializers) for this result.- Specified by:
createResultAssemblerin interfaceDomainResult
-
-