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 DomainResultAssemblercreateResultAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)Create an assembler (and any initializers) for this result.protected LockModegetLockMode(AssemblerCreationState creationState)FetchableContainergetReferencedMappingType()This parent's mapping typeEntityValuedModelPartgetReferencedModePart()WhereasFetchParent.getReferencedMappingContainer()andFetchParent.getReferencedMappingType()return the referenced container type, this method returns the referenced part.StringgetResultVariable()The result-variable (alias) associated with this result.NavigablePathresolveNavigablePath(Fetchable fetchable)StringtoString()-
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:
resolveNavigablePathin interfaceFetchParent
-
getReferencedMappingType
public FetchableContainer getReferencedMappingType()
Description copied from interface:FetchParentThis parent's mapping type- Specified by:
getReferencedMappingTypein interfaceFetchParent
-
getReferencedModePart
public EntityValuedModelPart getReferencedModePart()
Description copied from interface:FetchParentWhereasFetchParent.getReferencedMappingContainer()andFetchParent.getReferencedMappingType()return the referenced container type, this method returns the referenced part. E.g. for a many-to-one this methods returns theToOneAttributeMappingwhileFetchParent.getReferencedMappingContainer()andFetchParent.getReferencedMappingType()return the referencedEntityMappingType.- Specified by:
getReferencedModePartin interfaceFetchParent
-
getResultVariable
public String getResultVariable()
Description copied from interface:DomainResultThe result-variable (alias) associated with this result.- Specified by:
getResultVariablein interfaceDomainResult
-
getLockMode
protected LockMode getLockMode(AssemblerCreationState creationState)
-
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
-
-