Class CollectionFetch
java.lang.Object
org.hibernate.sql.results.graph.collection.internal.CollectionFetch
- All Implemented Interfaces:
DomainResultGraphNode,Fetch,FetchParent,InitializerProducer<CollectionFetch>
- Direct Known Subclasses:
DelayedCollectionFetch,EagerCollectionFetch,SelectEagerCollectionFetch
public abstract class CollectionFetch
extends Object
implements FetchParent, Fetch, InitializerProducer<CollectionFetch>
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionFetch(NavigablePath fetchedPath, PluralAttributeMapping fetchedAttribute, FetchParent fetchParent) -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateAssembler(InitializerParent<?> parent, AssemblerCreationState creationState) Create the assembler for this fetchInitializer<?>createInitializer(CollectionFetch resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState) The value mapping being fetchedRetrieve the fetches owned by this fetch source.Obtain the owner of this fetch.Get the property path to this parentThis parent's mapping typeThis parent's mapping typebooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.sql.results.graph.DomainResultGraphNode
appliesTo, getResultJavaTypeMethods inherited from interface org.hibernate.sql.results.graph.Fetch
asFetchParent, containsAnyNonScalarResults, getTiming, hasTableGroupMethods inherited from interface org.hibernate.sql.results.graph.FetchParent
collectValueIndexesToCache, createInitializer, generateFetchableFetch, getCollectionFetchesCount, getReferencedModePart, getRoot, resolveNavigablePath
-
Constructor Details
-
Method Details
-
getFetchParent
Description copied from interface:FetchObtain 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.
Parent)- Specified by:
getFetchParentin interfaceFetch
-
getFetchedMapping
Description copied from interface:FetchThe value mapping being fetched- Specified by:
getFetchedMappingin interfaceFetch
-
getReferencedMappingContainer
Description copied from interface:FetchParentThis parent's mapping type- Specified by:
getReferencedMappingContainerin interfaceFetchParent
-
getReferencedMappingType
Description copied from interface:FetchParentThis parent's mapping type- Specified by:
getReferencedMappingTypein interfaceFetchParent
-
getFetches
Description copied from interface:FetchParentRetrieve the fetches owned by this fetch source.- Specified by:
getFetchesin interfaceFetchParent
-
findFetch
- Specified by:
findFetchin interfaceFetchParent
-
hasJoinFetches
public boolean hasJoinFetches()- Specified by:
hasJoinFetchesin interfaceFetchParent
-
containsCollectionFetches
public boolean containsCollectionFetches()- Specified by:
containsCollectionFetchesin interfaceFetchParent
-
createAssembler
public DomainResultAssembler<?> createAssembler(InitializerParent<?> parent, AssemblerCreationState creationState) Description copied from interface:FetchCreate the assembler for this fetch- Specified by:
createAssemblerin interfaceFetch
-
createInitializer
public Initializer<?> createInitializer(CollectionFetch resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState) - Specified by:
createInitializerin interfaceInitializerProducer<CollectionFetch>
-