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
,InitializerProducer<EntityResultImpl>
public class EntityResultImpl extends AbstractEntityResultGraphNode implements EntityResult, InitializerProducer<EntityResultImpl>
Standard ReturnEntity impl
-
-
Constructor Summary
Constructors Constructor Description EntityResultImpl(NavigablePath navigablePath, EntityValuedModelPart entityValuedModelPart, TableGroup tableGroup, String resultVariable)
-
Method Summary
-
Methods inherited from class org.hibernate.sql.results.graph.entity.AbstractEntityResultGraphNode
afterInitialize, collectValueIndexesToCache, 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
collectValueIndexesToCache, 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 method 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
-
createInitializer
public Initializer createInitializer(EntityResultImpl resultGraphNode, FetchParentAccess parentAccess, AssemblerCreationState creationState)
- Specified by:
createInitializer
in interfaceInitializerProducer<EntityResultImpl>
-
createInitializer
public Initializer createInitializer(FetchParentAccess parentAccess, AssemblerCreationState creationState)
- Specified by:
createInitializer
in interfaceFetchParent
-
-