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

public abstract Class AbstractNonLazyEntityFetch

extends AbstractFetchParent
implements EntityFetch
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.graph.entity.EntityFetch, org.hibernate.sql.results.graph.Fetch, 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.EntityFetchJoinedImpl
Imports
org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.spi.NavigablePath, org.hibernate.sql.results.graph.AbstractFetchParent, .AssemblerCreationState, .DomainResultAssembler, .FetchParent, .FetchParentAccess, .FetchableContainer, org.hibernate.sql.results.graph.entity.internal.EntityAssembler

Support for non-lazy EntityFetch implementations - both joined and subsequent-select
Author
Andrea Boriero

Field Summary

Modifier and TypeField and Description
private final EntityValuedFetchable
private final FetchParent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected EntityAssembler
public DomainResultAssembler<?>
createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)

Implements org.hibernate.sql.results.graph.Fetch.createAssembler.

Create the assembler for this fetch
protected abstract EntityInitializer
public EntityValuedFetchable
public FetchableContainer
public EntityValuedFetchable
public FetchParent
getFetchParent()

Implements org.hibernate.sql.results.graph.Fetch.getFetchParent.

Obtain the owner of this fetch.
public EntityMappingType
public EntityValuedFetchable
public EntityValuedFetchable
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.
Inherited from org.hibernate.sql.results.graph.AbstractFetchParent:
afterInitializecontainsCollectionFetchesfindFetchgetFetchesgetNavigablePathgetResultJavaTypehasJoinFetchesresetFetches

Field Detail

fetchContainerback to summary
private final EntityValuedFetchable fetchContainer
fetchParentback to summary
private final FetchParent fetchParent

Constructor Detail

AbstractNonLazyEntityFetchback to summary
public AbstractNonLazyEntityFetch(FetchParent fetchParent, EntityValuedFetchable fetchedPart, NavigablePath navigablePath)

Method Detail

buildEntityAssemblerback to summary
protected EntityAssembler buildEntityAssembler(EntityInitializer entityInitializer)
createAssemblerback to summary
public DomainResultAssembler<?> createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)

Implements org.hibernate.sql.results.graph.Fetch.createAssembler.

Doc from org.hibernate.sql.results.graph.Fetch.createAssembler.

Create the assembler for this fetch

Annotations
@Override
getEntityInitializerback to summary
protected abstract EntityInitializer getEntityInitializer(FetchParentAccess parentAccess, AssemblerCreationState creationState)
getEntityValuedModelPartback to summary
public EntityValuedFetchable getEntityValuedModelPart()

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

Annotations
@Override
getFetchContainerback to summary
public FetchableContainer getFetchContainer()

Implements abstract org.hibernate.sql.results.graph.AbstractFetchParent.getFetchContainer.

Annotations
@Override
getFetchedMappingback to summary
public EntityValuedFetchable getFetchedMapping()

Implements org.hibernate.sql.results.graph.Fetch.getFetchedMapping.

Doc from org.hibernate.sql.results.graph.Fetch.getFetchedMapping.

The value mapping being fetched

Annotations
@Override
getFetchParentback to summary
public FetchParent getFetchParent()

Implements org.hibernate.sql.results.graph.Fetch.getFetchParent.

Doc from org.hibernate.sql.results.graph.Fetch.getFetchParent.

Obtain the owner of this fetch. Ultimately used to identify the thing that "owns" this fetched navigable for the purpose of:

* identifying the associated owner reference as we process the fetch * inject the fetched instance into the parent and potentially inject the parent reference into the fetched instance if it defines such injection (e.g. org.hibernate.annotations.Parent)

Annotations
@Override
getReferencedMappingContainerback to summary
public EntityMappingType getReferencedMappingContainer()

Overrides org.hibernate.sql.results.graph.AbstractFetchParent.getReferencedMappingContainer.

Overrides default org.hibernate.sql.results.graph.entity.EntityResultGraphNode.getReferencedMappingContainer.

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

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

This parent's mapping type

Annotations
@Override
getReferencedMappingTypeback to summary
public EntityValuedFetchable 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 EntityValuedFetchable 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