Class EntityResultImpl
- java.lang.Object
-
- org.hibernate.sql.results.graph.AbstractFetchParent
-
- org.hibernate.sql.results.graph.entity.AbstractEntityResultGraphNode
-
- org.hibernate.sql.results.graph.entity.internal.EntityResultImpl
-
- All Implemented Interfaces:
DomainResult
,DomainResultGraphNode
,EntityResult
,EntityResultGraphNode
,FetchParent
- Direct Known Subclasses:
EntityResultJoinedSubclassImpl
public class EntityResultImpl extends AbstractEntityResultGraphNode implements EntityResult
Standard ReturnEntity impl
-
-
Constructor Summary
Constructors Constructor Description EntityResultImpl(NavigablePath navigablePath, EntityValuedModelPart entityValuedModelPart, TableGroup tableGroup, String resultVariable)
-
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.protected LockMode
getLockMode(AssemblerCreationState creationState)
FetchableContainer
getReferencedMappingType()
This parent's mapping typeEntityValuedModelPart
getReferencedModePart()
WhereasFetchParent.getReferencedMappingContainer()
andFetchParent.getReferencedMappingType()
return the referenced container type, this method returns the referenced part.String
getResultVariable()
The result-variable (alias) associated with this result.NavigablePath
resolveNavigablePath(Fetchable fetchable)
String
toString()
-
Methods inherited from class org.hibernate.sql.results.graph.entity.AbstractEntityResultGraphNode
afterInitialize, getDiscriminatorFetch, getEntityValuedModelPart, getFetchContainer, getIdentifierFetch, getReferencedMappingContainer, getResultJavaType, getRowIdResult
-
Methods inherited from class org.hibernate.sql.results.graph.AbstractFetchParent
containsCollectionFetches, findFetch, getFetches, getNavigablePath, hasJoinFetches, resetFetches
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.results.graph.entity.EntityResultGraphNode
appliesTo, containsAnyNonScalarResults, getEntityValuedModelPart, getNavigablePath, getReferencedMappingContainer, getResultJavaType
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParent
containsCollectionFetches, findFetch, generateFetchableFetch, getFetches, getRoot, hasJoinFetches
-
-
-
-
Constructor Detail
-
EntityResultImpl
public EntityResultImpl(NavigablePath navigablePath, EntityValuedModelPart entityValuedModelPart, TableGroup tableGroup, String resultVariable)
-
-
Method Detail
-
resolveNavigablePath
public NavigablePath resolveNavigablePath(Fetchable fetchable)
- Specified by:
resolveNavigablePath
in interfaceFetchParent
-
getReferencedMappingType
public FetchableContainer getReferencedMappingType()
Description copied from interface:FetchParent
This parent's mapping type- Specified by:
getReferencedMappingType
in interfaceFetchParent
-
getReferencedModePart
public EntityValuedModelPart 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 methods returns theToOneAttributeMapping
whileFetchParent.getReferencedMappingContainer()
andFetchParent.getReferencedMappingType()
return the referencedEntityMappingType
.- Specified by:
getReferencedModePart
in interfaceFetchParent
-
getResultVariable
public String getResultVariable()
Description copied from interface:DomainResult
The result-variable (alias) associated with this result.- Specified by:
getResultVariable
in interfaceDomainResult
-
getLockMode
protected LockMode getLockMode(AssemblerCreationState creationState)
-
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
-
-