Top Fields Constructors Methods
org.hibernate.query.results.complete

public Class EntityResultImpl

extends Object
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
Imports
java.util.function.Function, org.hibernate.LockMode, org.hibernate.metamodel.mapping.EntityValuedModelPart, org.hibernate.spi.NavigablePath, org.hibernate.sql.ast.spi.SqlAstCreationState, org.hibernate.sql.results.graph.AssemblerCreationState, .DomainResultAssembler, .DomainResultCreationState, .Fetch, .FetchParentAccess, .Fetchable, .Initializer, org.hibernate.sql.results.graph.basic.BasicFetch, org.hibernate.sql.results.graph.entity.EntityResult, org.hibernate.sql.results.graph.entity.internal.EntityAssembler, .EntityResultInitializer, org.hibernate.sql.results.graph.internal.ImmutableFetchList

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final boolean
private final BasicFetch<?>
private final EntityValuedModelPart
private final ImmutableFetchList
private final boolean
private final Fetch
private final LockMode
private final String

Constructor Summary

AccessConstructor and Description
public
EntityResultImpl(NavigablePath navigablePath, EntityValuedModelPart entityValuedModelPart, String resultAlias, LockMode lockMode, Function<EntityResultImpl, BasicFetch<?>> discriminatorFetchBuilder, DomainResultCreationState creationState)

Method Summary

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

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

Create an assembler (and any initializers) for this result.
public Fetch
public EntityValuedModelPart
public ImmutableFetchList
getFetches()

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

Retrieve the fetches owned by this fetch source.
public NavigablePath
public EntityValuedModelPart
public String
getResultVariable()

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

The result-variable (alias) associated with this result.
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

containsCollectionFetchesback to summary
private final boolean containsCollectionFetches
discriminatorFetchback to summary
private final BasicFetch<?> discriminatorFetch
entityValuedModelPartback to summary
private final EntityValuedModelPart entityValuedModelPart
fetchesback to summary
private final ImmutableFetchList fetches
hasJoinFetchesback to summary
private final boolean hasJoinFetches
identifierFetchback to summary
private final Fetch identifierFetch
lockModeback to summary
private final LockMode lockMode
resultAliasback to summary
private final String resultAlias

Constructor Detail

EntityResultImplback to summary
public EntityResultImpl(NavigablePath navigablePath, EntityValuedModelPart entityValuedModelPart, String resultAlias, LockMode lockMode, Function<EntityResultImpl, BasicFetch<?>> discriminatorFetchBuilder, DomainResultCreationState creationState)

Method Detail

containsCollectionFetchesback to summary
public boolean containsCollectionFetches()

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

Annotations
@Override
createResultAssemblerback to summary
public DomainResultAssembler<?> 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
findFetchback to summary
public Fetch findFetch(Fetchable fetchable)

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

Annotations
@Override
getEntityValuedModelPartback to summary
public EntityValuedModelPart getEntityValuedModelPart()

Implements org.hibernate.sql.results.graph.entity.EntityResultGraphNode.getEntityValuedModelPart.

Annotations
@Override
getFetchesback to summary
public ImmutableFetchList getFetches()

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

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

Retrieve the fetches owned by this fetch source.

Annotations
@Override
getNavigablePathback to summary
public NavigablePath getNavigablePath()

Overrides default org.hibernate.sql.results.graph.DomainResultGraphNode.getNavigablePath.

Implements org.hibernate.sql.results.graph.entity.EntityResultGraphNode.getNavigablePath.

Doc from org.hibernate.sql.results.graph.DomainResultGraphNode.getNavigablePath.

The NavigablePath for this node (if one!). Certain nodes will not have a NavigablePath, namely those not associated with a Navigable

Annotations
@Override
getReferencedMappingTypeback to summary
public EntityValuedModelPart 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
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
hasJoinFetchesback to summary
public boolean hasJoinFetches()

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

Annotations
@Override