Class BatchEntitySelectFetchInitializer
- java.lang.Object
-
- org.hibernate.sql.results.graph.AbstractFetchParentAccess
-
- org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer
-
- org.hibernate.sql.results.graph.entity.internal.BatchEntitySelectFetchInitializer
-
- All Implemented Interfaces:
EntityInitializer,FetchParentAccess,Initializer
public class BatchEntitySelectFetchInitializer extends AbstractBatchEntitySelectFetchInitializer
-
-
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 BatchEntitySelectFetchInitializer(FetchParentAccess parentAccess, ToOneAttributeMapping referencedModelPart, NavigablePath fetchedNavigable, EntityPersister concreteDescriptor, DomainResultAssembler<?> identifierAssembler)
-
Method Summary
All Methods Static 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.protected static voidsetInstance(EntityInitializer entityInitializer, ToOneAttributeMapping referencedModelPart, String propertyName, int propertyIndex, SharedSessionContractImplementor session, Object instance, Object parentInstance, EntityEntry entry)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
-
BatchEntitySelectFetchInitializer
public BatchEntitySelectFetchInitializer(FetchParentAccess parentAccess, ToOneAttributeMapping referencedModelPart, NavigablePath fetchedNavigable, EntityPersister concreteDescriptor, DomainResultAssembler<?> identifierAssembler)
-
-
Method Detail
-
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..
-
registerResolutionListener
protected void registerResolutionListener()
- Specified by:
registerResolutionListenerin classAbstractBatchEntitySelectFetchInitializer
-
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
-
setInstance
protected static void setInstance(EntityInitializer entityInitializer, ToOneAttributeMapping referencedModelPart, String propertyName, int propertyIndex, SharedSessionContractImplementor session, Object instance, Object parentInstance, EntityEntry entry)
-
-