Top Description Fields Constructors Methods
org.hibernate.sql.results.graph.entity.internal

public Class EntityResultImpl

extends AbstractEntityResultGraphNode
implements EntityResult
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.graph.entity.EntityResult, org.hibernate.sql.results.graph.DomainResult, org.hibernate.sql.results.graph.DomainResultGraphNode, org.hibernate.sql.results.graph.entity.EntityResultGraphNode, org.hibernate.sql.results.graph.FetchParent
Known Direct Subclasses
org.hibernate.sql.results.graph.entity.internal.EntityResultJoinedSubclassImpl
Imports
org.hibernate.LockMode, org.hibernate.metamodel.mapping.EntityValuedModelPart, org.hibernate.spi.NavigablePath, org.hibernate.sql.ast.tree.from.TableGroup, .TableGroupJoin, .TableGroupProducer, org.hibernate.sql.results.graph.AssemblerCreationState, .DomainResultAssembler, .FetchParentAccess, .Fetchable, .FetchableContainer, .Initializer, org.hibernate.sql.results.graph.entity.AbstractEntityResultGraphNode, .EntityResult

Standard ReturnEntity impl
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String
private final TableGroup

Constructor Summary

AccessConstructor and Description
public
EntityResultImpl(NavigablePath navigablePath, EntityValuedModelPart entityValuedModelPart, TableGroup tableGroup, String resultVariable)

Method Summary

Modifier and TypeMethod and Description
public DomainResultAssembler<J>
createResultAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)

Implements org.hibernate.sql.results.graph.DomainResult.createResultAssembler.

Create an assembler (and any initializers) for this result.
protected LockMode
public FetchableContainer
public EntityValuedModelPart
getReferencedModePart()

Overrides default org.hibernate.sql.results.graph.FetchParent.getReferencedModePart.

Whereas getReferencedMappingContainer and getReferencedMappingType return the referenced container type, this method returns the referenced part.
public String
getResultVariable()

Implements org.hibernate.sql.results.graph.DomainResult.getResultVariable.

The result-variable (alias) associated with this result.
public NavigablePath
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.sql.results.graph.entity.AbstractEntityResultGraphNode:
afterInitializegetDiscriminatorFetchgetEntityValuedModelPartgetFetchContainergetIdentifierFetchgetReferencedMappingContainergetResultJavaTypegetRowIdResult

Field Detail

resultVariableback to summary
private final String resultVariable
tableGroupback to summary
private final TableGroup tableGroup

Constructor Detail

EntityResultImplback to summary
public EntityResultImpl(NavigablePath navigablePath, EntityValuedModelPart entityValuedModelPart, TableGroup tableGroup, String resultVariable)

Method Detail

createResultAssemblerback to summary
public DomainResultAssembler<J> createResultAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)

Implements org.hibernate.sql.results.graph.DomainResult.createResultAssembler.

Doc from org.hibernate.sql.results.graph.DomainResult.createResultAssembler.

Create an assembler (and any initializers) for this result.

Annotations
@Override
getLockModeback to summary
protected LockMode getLockMode(AssemblerCreationState creationState)
getReferencedMappingTypeback to summary
public FetchableContainer getReferencedMappingType()

Implements org.hibernate.sql.results.graph.FetchParent.getReferencedMappingType.

Doc from org.hibernate.sql.results.graph.FetchParent.getReferencedMappingType.

This parent's mapping type

Annotations
@Override
getReferencedModePartback to summary
public EntityValuedModelPart getReferencedModePart()

Overrides default org.hibernate.sql.results.graph.FetchParent.getReferencedModePart.

Doc from org.hibernate.sql.results.graph.FetchParent.getReferencedModePart.

Whereas getReferencedMappingContainer and getReferencedMappingType return the referenced container type, this method returns the referenced part. E.g. for a many-to-one this method returns the ToOneAttributeMapping while getReferencedMappingContainer and getReferencedMappingType return the referenced org.hibernate.metamodel.mapping.EntityMappingType.

Annotations
@Override
getResultVariableback to summary
public String getResultVariable()

Implements org.hibernate.sql.results.graph.DomainResult.getResultVariable.

Doc from org.hibernate.sql.results.graph.DomainResult.getResultVariable.

The result-variable (alias) associated with this result.

Annotations
@Override
resolveNavigablePathback to summary
public NavigablePath resolveNavigablePath(Fetchable fetchable)

Overrides default org.hibernate.sql.results.graph.FetchParent.resolveNavigablePath.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override