Top Fields Constructors Methods
org.hibernate.sql.results.graph.collection.internal

public Class EagerCollectionFetch

extends CollectionFetch
implements FetchParent
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.graph.FetchParent, org.hibernate.sql.results.graph.DomainResultGraphNode
Imports
java.util.Collections, .List, org.hibernate.collection.spi.CollectionInitializerProducer, .CollectionSemantics, org.hibernate.engine.FetchTiming, org.hibernate.metamodel.mapping.CollectionPart, .ForeignKeyDescriptor, .PluralAttributeMapping, org.hibernate.spi.NavigablePath, org.hibernate.sql.ast.spi.FromClauseAccess, org.hibernate.sql.ast.tree.from.TableGroup, org.hibernate.sql.results.graph.AssemblerCreationState, .DomainResult, .DomainResultAssembler, .DomainResultCreationState, .Fetch, .FetchList, .FetchParent, .FetchParentAccess, .Fetchable, .FetchableContainer, org.hibernate.sql.results.graph.collection.CollectionInitializer, org.hibernate.sql.results.graph.internal.ImmutableFetchList, org.hibernate.type.descriptor.java.JavaType

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final DomainResult<?>
private final DomainResult<?>
private final Fetch
private final ImmutableFetchList
private final Fetch
private final CollectionInitializerProducer

Constructor Summary

AccessConstructor and Description
public
EagerCollectionFetch(NavigablePath fetchedPath, PluralAttributeMapping fetchedAttribute, TableGroup collectionTableGroup, FetchParent fetchParent, DomainResultCreationState creationState)

Method Summary

Modifier and TypeMethod and Description
public FetchParent
asFetchParent()

Overrides default org.hibernate.sql.results.graph.Fetch.asFetchParent.

Utility method to avoid instanceof checks.
public boolean
public DomainResultAssembler<?>
createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)

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

Create the assembler for this fetch
public Fetch
public ImmutableFetchList
getFetches()

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

Retrieve the fetches owned by this fetch source.
public FetchableContainer
public PluralAttributeMapping
public JavaType<?>
public FetchTiming
public boolean
public boolean
hasTableGroup()

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

Is the TableGroup associated with this Fetch defined?
Inherited from org.hibernate.sql.results.graph.collection.internal.CollectionFetch:
getFetchedMappinggetFetchParentgetNavigablePath

Field Detail

collectionKeyResultback to summary
private final DomainResult<?> collectionKeyResult
collectionValueKeyResultback to summary
private final DomainResult<?> collectionValueKeyResult
elementFetchback to summary
private final Fetch elementFetch
fetchesback to summary
private final ImmutableFetchList fetches
indexFetchback to summary
private final Fetch indexFetch
initializerProducerback to summary
private final CollectionInitializerProducer initializerProducer

Constructor Detail

EagerCollectionFetchback to summary
public EagerCollectionFetch(NavigablePath fetchedPath, PluralAttributeMapping fetchedAttribute, TableGroup collectionTableGroup, FetchParent fetchParent, DomainResultCreationState creationState)

Method Detail

asFetchParentback to summary
public FetchParent asFetchParent()

Overrides default org.hibernate.sql.results.graph.Fetch.asFetchParent.

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

Utility method to avoid instanceof checks. Returns this if it's an instance of FetchParent, null otherwise.

Annotations
@Override
containsCollectionFetchesback to summary
public boolean containsCollectionFetches()

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

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

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

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
getReferencedMappingContainerback to summary
public FetchableContainer 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 PluralAttributeMapping 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
getResultJavaTypeback to summary
public JavaType<?> getResultJavaType()

Implements org.hibernate.sql.results.graph.DomainResultGraphNode.getResultJavaType.

Annotations
@Override
getTimingback to summary
public FetchTiming getTiming()

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

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

immediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?

Annotations
@Override
hasJoinFetchesback to summary
public boolean hasJoinFetches()

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

Annotations
@Override
hasTableGroupback to summary
public boolean hasTableGroup()

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

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

Is the TableGroup associated with this Fetch defined?

Annotations
@Override