Package org.hibernate.sql.results.graph
Class AbstractFetchParentAccess
- java.lang.Object
-
- org.hibernate.sql.results.graph.AbstractFetchParentAccess
-
- All Implemented Interfaces:
FetchParentAccess
,Initializer
- Direct Known Subclasses:
AbstractEmbeddableInitializer
,AbstractEntityInitializer
,AbstractNonAggregatedIdentifierMappingInitializer
public abstract class AbstractFetchParentAccess extends Object implements FetchParentAccess
Base support for FetchParentAccess implementations. Mainly adds support for registering and managing resolution listeners
-
-
Constructor Summary
Constructors Constructor Description AbstractFetchParentAccess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearResolutionListeners()
void
endLoading(ExecutionContext executionContext)
Lifecycle method called at the very end of the result values processingprotected boolean
isParentShallowCached()
void
markShallowCached()
protected void
notifyResolutionListeners(Object resolvedInstance)
void
registerResolutionListener(Consumer<Object> listener)
Register a listener to be notified when the parent is "resolved"-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParentAccess
findFirstEntityDescriptorAccess, findFirstEntityInitializer, getFetchParentAccess, getNavigablePath, getOwnedModelPartDeclaringType, getOwningParent, getParentKey, shouldSkipInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asCollectionInitializer, asEmbeddableInitializer, asEntityInitializer, finishUpRow, getInitializedInstance, getInitializedPart, initializeInstance, initializeInstanceFromParent, isCollectionInitializer, isEmbeddableInitializer, isEntityInitializer, isPartOfKey, isResultInitializer, resolveInstance, resolveKey, startLoading
-
-
-
-
Method Detail
-
registerResolutionListener
public void registerResolutionListener(Consumer<Object> listener)
Description copied from interface:FetchParentAccess
Register a listener to be notified when the parent is "resolved"- Specified by:
registerResolutionListener
in interfaceFetchParentAccess
-
clearResolutionListeners
protected void clearResolutionListeners()
-
notifyResolutionListeners
protected void notifyResolutionListeners(Object resolvedInstance)
-
isParentShallowCached
protected boolean isParentShallowCached()
-
markShallowCached
public void markShallowCached()
- Specified by:
markShallowCached
in interfaceInitializer
-
endLoading
public void endLoading(ExecutionContext executionContext)
Description copied from interface:Initializer
Lifecycle method called at the very end of the result values processing- Specified by:
endLoading
in interfaceInitializer
-
-