Package org.hibernate.sql.results.graph
Interface FetchParentAccess
-
- All Superinterfaces:
Initializer
- All Known Subinterfaces:
AggregateEmbeddableInitializer
,CollectionInitializer
,EmbeddableInitializer
,EntityInitializer
- All Known Implementing Classes:
AbstractBatchEntitySelectFetchInitializer
,AbstractCollectionInitializer
,AbstractEmbeddableInitializer
,AbstractEntityInitializer
,AbstractFetchParentAccess
,AbstractImmediateCollectionInitializer
,AbstractNonAggregatedIdentifierMappingInitializer
,AggregateEmbeddableFetchInitializer
,AggregateEmbeddableResultInitializer
,ArrayInitializer
,BagInitializer
,BatchEntityInsideEmbeddableSelectFetchInitializer
,BatchEntitySelectFetchInitializer
,BatchInitializeEntitySelectFetchInitializer
,DelayedCollectionInitializer
,DiscriminatedEntityInitializer
,EmbeddableFetchInitializer
,EmbeddableResultInitializer
,EntityDelayedFetchInitializer
,EntityJoinedFetchInitializer
,EntityResultInitializer
,EntitySelectFetchByUniqueKeyInitializer
,EntitySelectFetchInitializer
,ListInitializer
,MapInitializer
,NonAggregatedIdentifierMappingFetchInitializer
,NonAggregatedIdentifierMappingResultInitializer
,SelectEagerCollectionInitializer
,SetInitializer
public interface FetchParentAccess extends Initializer
Provides access to information about the owner/parent of a fetch in relation to the current "row" being processed.
-
-
Method Summary
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asCollectionInitializer, asEmbeddableInitializer, asEntityInitializer, endLoading, finishUpRow, getInitializedInstance, getInitializedPart, initializeInstance, initializeInstanceFromParent, isCollectionInitializer, isEmbeddableInitializer, isEntityInitializer, isPartOfKey, isResultInitializer, markShallowCached, resolveInstance, resolveKey, startLoading
-
-
-
-
Method Detail
-
findFirstEntityDescriptorAccess
@Nullable FetchParentAccess findFirstEntityDescriptorAccess()
Find the first entity access up the fetch parent graph
-
findFirstEntityInitializer
default @Nullable EntityInitializer findFirstEntityInitializer()
-
getParentKey
@Nullable Object getParentKey()
-
getNavigablePath
NavigablePath getNavigablePath()
- Specified by:
getNavigablePath
in interfaceInitializer
-
registerResolutionListener
void registerResolutionListener(Consumer<Object> resolvedParentConsumer)
Register a listener to be notified when the parent is "resolved"- API Note:
- If already resolved, the callback is triggered immediately
-
getFetchParentAccess
default @Nullable FetchParentAccess getFetchParentAccess()
-
getOwningParent
@Nullable FetchParentAccess getOwningParent()
-
determineOwningParent
static @Nullable FetchParentAccess determineOwningParent(@Nullable FetchParentAccess parentAccess)
-
getOwnedModelPartDeclaringType
@Nullable EntityMappingType getOwnedModelPartDeclaringType()
-
determineOwnedModelPartDeclaringType
static @Nullable EntityMappingType determineOwnedModelPartDeclaringType(ModelPart modelPart, @Nullable FetchParentAccess parentAccess, @Nullable FetchParentAccess owningParent)
-
shouldSkipInitializer
default boolean shouldSkipInitializer(RowProcessingState rowProcessingState)
-
-