Class BatchInitializeEntitySelectFetchInitializer
- java.lang.Object
-
- 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer
AbstractBatchEntitySelectFetchInitializer.State
-
-
Field Summary
-
Fields inherited from class org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer
concreteDescriptor, entityKey, firstEntityInitializer, identifierAssembler, initializedEntityInstance, parentAccess, parentShallowCached, 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 void
endLoading(ExecutionContext context)
Lifecycle method called at the very end of the result values processingboolean
isEntityInitialized()
protected void
registerResolutionListener()
void
resolveInstance(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.String
toString()
-
Methods inherited from class org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer
finishUpRow, getConcreteDescriptor, getEntityDescriptor, getEntityInstance, getEntityKey, getExistingInitializedInstance, getFetchParentAccess, getInitializedPart, getNavigablePath, getOwnedModelPartDeclaringType, getOwningParent, getParentEntityAttribute, getParentKey, initializeInstance, initializeInstanceFromParent, isPartOfKey, isResultInitializer, loadInstance, markShallowCached, registerResolutionListener, registerToBatchFetchQueue, resolveKey
-
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.FetchParentAccess
shouldSkipInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asCollectionInitializer, asEmbeddableInitializer, isCollectionInitializer, isEmbeddableInitializer, startLoading
-
-
-
-
Constructor Detail
-
BatchInitializeEntitySelectFetchInitializer
public BatchInitializeEntitySelectFetchInitializer(FetchParentAccess parentAccess, ToOneAttributeMapping referencedModelPart, NavigablePath fetchedNavigable, EntityPersister concreteDescriptor, DomainResultAssembler<?> identifierAssembler)
-
-
Method Detail
-
registerResolutionListener
protected void registerResolutionListener()
- Specified by:
registerResolutionListener
in classAbstractBatchEntitySelectFetchInitializer
-
resolveInstance
public void resolveInstance(RowProcessingState rowProcessingState)
Description copied from interface:Initializer
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. After this point, the initializer knows the entity/collection/component instance for the current row based on the resolved key
-
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:Initializer
Lifecycle method called at the very end of the result values processing- Specified by:
endLoading
in interfaceInitializer
- Overrides:
endLoading
in classAbstractBatchEntitySelectFetchInitializer
-
-