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 DomainResultAssembler<?>
createResultAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)
Create an assembler (and any initializers) for this result.Fetch
findFetch(Fetchable fetchable)
EntityValuedModelPart
getEntityValuedModelPart()
List<Fetch>
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.-
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: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 List<Fetch> 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
-
createResultAssembler
public DomainResultAssembler<?> createResultAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)
Description copied from interface:DomainResult
Create an assembler (and any initializers) for this result.- Specified by:
createResultAssembler
in interfaceDomainResult
-
-