Class BatchInitializeEntitySelectFetchInitializer
- java.lang.Object
-
- org.hibernate.sql.results.graph.AbstractFetchParentAccess
-
- org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer
-
- org.hibernate.sql.results.graph.entity.internal.BatchInitializeEntitySelectFetchInitializer
-
- All Implemented Interfaces:
EntityInitializer,FetchParentAccess,Initializer
public class BatchInitializeEntitySelectFetchInitializer extends AbstractBatchEntitySelectFetchInitializer
Loads entities from the persistence context or creates proxies if not found there, and initializes all proxies in a batch.
-
-
Field Summary
-
Fields inherited from class org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer
concreteDescriptor, entityKey, firstEntityInitializer, identifierAssembler, initializedEntityInstance, parentAccess, referencedModelPart, state
-
-
Constructor Summary
Constructors Constructor Description BatchInitializeEntitySelectFetchInitializer(FetchParentAccess parentAccess, ToOneAttributeMapping referencedModelPart, NavigablePath fetchedNavigable, EntityPersister concreteDescriptor, DomainResultAssembler<?> identifierAssembler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendLoading(ExecutionContext context)Lifecycle method called at the very end of the result values processingbooleanisEntityInitialized()protected voidregisterResolutionListener()voidresolveInstance(RowProcessingState rowProcessingState)Step 2 - Using the key resolved inInitializer.resolveKey(org.hibernate.sql.results.jdbc.spi.RowProcessingState), resolve the instance (of the thing initialized) to use for the current row.StringtoString()-
Methods inherited from class org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer
finishUpRow, getConcreteDescriptor, getEntityDescriptor, getEntityInstance, getEntityKey, getExistingInitializedInstance, getFetchParentAccess, getInitializedPart, getNavigablePath, getParentEntityAttribute, getParentKey, initializeInstance, loadInstance, registerResolutionListener, registerToBatchFetchQueue, resolveKey, resolveKey
-
Methods inherited from class org.hibernate.sql.results.graph.AbstractFetchParentAccess
clearResolutionListeners, notifyResolutionListeners
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.results.graph.entity.EntityInitializer
asEntityInitializer, findFirstEntityDescriptorAccess, findFirstEntityInitializer, getInitializedInstance, isEntityInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asEmbeddableInitializer, isAttributeAssignableToConcreteDescriptor, isCollectionInitializer, isEmbeddableInitializer
-
-
-
-
Constructor Detail
-
BatchInitializeEntitySelectFetchInitializer
public BatchInitializeEntitySelectFetchInitializer(FetchParentAccess parentAccess, ToOneAttributeMapping referencedModelPart, NavigablePath fetchedNavigable, EntityPersister concreteDescriptor, DomainResultAssembler<?> identifierAssembler)
-
-
Method Detail
-
registerResolutionListener
protected void registerResolutionListener()
- Specified by:
registerResolutionListenerin classAbstractBatchEntitySelectFetchInitializer
-
resolveInstance
public void resolveInstance(RowProcessingState rowProcessingState)
Description copied from interface:InitializerStep 2 - Using the key resolved inInitializer.resolveKey(org.hibernate.sql.results.jdbc.spi.RowProcessingState), resolve the instance (of the thing initialized) to use for the current row. After this point, the initializer knows the entity/collection/component instance for the current row based on the resolved key todo (6.0) : much of the various implementations of this are similar enough to handle in a common base implementation (templating?) things like resolving as managed (Session cache), from second-level cache, from LoadContext, etc..
-
isEntityInitialized
public boolean isEntityInitialized()
- Returns:
- true if the current entity associated to this EntityInitializer has been initialized
-
endLoading
public void endLoading(ExecutionContext context)
Description copied from interface:InitializerLifecycle method called at the very end of the result values processing
-
-