Package org.hibernate.sql.results.graph
Interface FetchParentAccess
-
- All Superinterfaces:
Initializer
- All Known Subinterfaces:
AggregateEmbeddableInitializer
,EmbeddableInitializer
,EntityInitializer
- All Known Implementing Classes:
AbstractBatchEntitySelectFetchInitializer
,AbstractEmbeddableInitializer
,AbstractEntityInitializer
,AbstractFetchParentAccess
,AbstractNonAggregatedIdentifierMappingInitializer
,AggregateEmbeddableFetchInitializer
,AggregateEmbeddableResultInitializer
,BatchEntityInsideEmbeddableSelectFetchInitializer
,BatchEntitySelectFetchInitializer
,BatchInitializeEntitySelectFetchInitializer
,EmbeddableFetchInitializer
,EmbeddableResultInitializer
,EntityDelayedFetchInitializer
,EntityJoinedFetchInitializer
,EntityResultInitializer
,EntitySelectFetchByUniqueKeyInitializer
,EntitySelectFetchInitializer
,NonAggregatedIdentifierMappingFetchInitializer
,NonAggregatedIdentifierMappingResultInitializer
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FetchParentAccess
findFirstEntityDescriptorAccess()
Find the first entity access up the fetch parent graphdefault EntityInitializer
findFirstEntityInitializer()
default FetchParentAccess
getFetchParentAccess()
NavigablePath
getNavigablePath()
Object
getParentKey()
void
registerResolutionListener(Consumer<Object> resolvedParentConsumer)
Register a listener to be notified when the parent is "resolved"-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asEmbeddableInitializer, asEntityInitializer, endLoading, finishUpRow, getInitializedInstance, getInitializedPart, initializeInstance, isAttributeAssignableToConcreteDescriptor, isCollectionInitializer, isEmbeddableInitializer, isEntityInitializer, resolveInstance, resolveKey
-
-
-
-
Method Detail
-
findFirstEntityDescriptorAccess
FetchParentAccess findFirstEntityDescriptorAccess()
Find the first entity access up the fetch parent graph
-
findFirstEntityInitializer
default EntityInitializer findFirstEntityInitializer()
-
getParentKey
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 FetchParentAccess getFetchParentAccess()
-
-