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 voidclearResolutionListeners()voidendLoading(ExecutionContext executionContext)Lifecycle method called at the very end of the result values processingprotected booleanisParentShallowCached()voidmarkShallowCached()protected voidnotifyResolutionListeners(Object resolvedInstance)voidregisterResolutionListener(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:FetchParentAccessRegister a listener to be notified when the parent is "resolved"- Specified by:
registerResolutionListenerin interfaceFetchParentAccess
-
clearResolutionListeners
protected void clearResolutionListeners()
-
notifyResolutionListeners
protected void notifyResolutionListeners(Object resolvedInstance)
-
isParentShallowCached
protected boolean isParentShallowCached()
-
markShallowCached
public void markShallowCached()
- Specified by:
markShallowCachedin interfaceInitializer
-
endLoading
public void endLoading(ExecutionContext executionContext)
Description copied from interface:InitializerLifecycle method called at the very end of the result values processing- Specified by:
endLoadingin interfaceInitializer
-
-